Re: [code] [textadept] RPM package for Textadept

From: Mitchell <m.att.foicica.com>
Date: Sun, 12 Feb 2017 14:55:41 -0500 (EST)

Hi Brenton,

On Sun, 12 Feb 2017, Brenton Horne wrote:

> You's seem to have ignored my question relating to the openSUSE
> Tumbleweed error. It's the one error I haven't been able to resolve.
> Namely this error message:
>
> [ 357s] g++ -c -Os -std=c++0x -pedantic -DCURSES
> -D_XOPEN_SOURCE_EXTENDED -DSCI_LEXER -DNDEBUG -DNO_CXX11_REGEX
> -DSCI_OWNREGEX -Iscintilla/include -Iscintilla/src -Iscintilla/lexlib
> -Itre/lib -Wall scintilla/term/ScintillaTerm.cxx -o ScintillaTerm.o
> [ 359s] scintilla/term/ScintillaTerm.cxx: In member function 'virtual
> void SurfaceImpl::AlphaRectangle(PRectangle, int, ColourDesired, int,
> ColourDesired, int, int)':
> [ 359s] scintilla/term/ScintillaTerm.cxx:77:30: error: invalid use of
> incomplete type 'WINDOW {aka struct _win_st}'
> [ 359s] #define wattrget(w, y, x) (w)->_line[(y)].text[(x)].attr
> [ 359s] ^
> [ 359s] scintilla/term/ScintillaTerm.cxx:372:22: note: in expansion
> of macro 'wattrget'
> [ 359s] attr_t attrs = wattrget(win, y, x);
> [ 359s] ^~~~~~~~
> [ 359s] In file included from scintilla/term/ScintillaTerm.h:8:0,
> [ 359s] from scintilla/term/ScintillaTerm.cxx:50:
> [ 359s] /usr/include/curses.h:384:16: note: forward declaration of
> 'WINDOW {aka struct _win_st}'
> [ 359s] typedef struct _win_st WINDOW;
> [ 359s] ^~~~~~~
> [ 359s] scintilla/term/ScintillaTerm.cxx: In member function 'virtual
> void SurfaceImpl::DrawTextTransparent(PRectangle, Font&, XYPOSITION,
> const char*, int, ColourDesired)':
> [ 359s] scintilla/term/ScintillaTerm.cxx:77:30: error: invalid use of
> incomplete type 'WINDOW {aka struct _win_st}'
> [ 359s] #define wattrget(w, y, x) (w)->_line[(y)].text[(x)].attr
> [ 359s] ^
> [ 359s] scintilla/term/ScintillaTerm.cxx:455:20: note: in expansion
> of macro 'wattrget'
> [ 359s] attr_t attrs = wattrget(win, (int)rc.top, (int)rc.left);
> [ 359s] ^~~~~~~~
> [ 359s] In file included from scintilla/term/ScintillaTerm.h:8:0,
> [ 359s] from scintilla/term/ScintillaTerm.cxx:50:
> [ 359s] /usr/include/curses.h:384:16: note: forward declaration of
> 'WINDOW {aka struct _win_st}'
> [ 359s] typedef struct _win_st WINDOW;
> [ 359s] ^~~~~~~
> [ 359s] make: *** [Makefile:173: ScintillaTerm.o] Error 1
> [ 359s] error: Bad exit status from /var/tmp/rpm-tmp.ImqNQw (%build)

Sorry that did not give an explicit answer. I originally asked what
version of ncurses you were compiling against, since I've only tested with
5.7 and 5.9, not the newer 6.x. You responded that you're using 6.0.
Since I do not build against 6.x, I cannot provide a solution.

That said, according to the compiler error, it would seem that `_win_st`
may no longer be declared in ncurses.h (ScintillaTerm.h #defines
`NCURSES_OPAQUE 0` in order to get at internal structures). I'll accept a
patch if you manage to find and #ifdef the correct symbol.

Cheers,
Mitchell

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Sun 12 Feb 2017 - 14:55:41 EST

This archive was generated by hypermail 2.2.0 : Mon 13 Feb 2017 - 06:35:38 EST