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

From: Brenton Horne <brentonhorne77.att.gmail.com>
Date: Sun, 12 Feb 2017 23:54:57 +1000

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)

On 21 January 2017 at 00:19, Mitchell <m.att.foicica.com> wrote:
> Hi Brenton,
>
>
> On Fri, 20 Jan 2017, Brenton Horne wrote:
>
>> Yep my build under openSUSE Tumbleweed uses ncurses 6.0 so it's possible
>> you're right about why that error occurred. My RHEL 6 build machine was
>> using GTK 2.20, reverting to Textadept 9.0 causes the build fail with the
>> error:
>>
>> go-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include
>> -I/usr/include/pixman-1 -I/usr/inclu
>> de/freetype2 -I/usr/include/libpng12 textadept.c -o textadept.o
>> [ 158s] textadept.c:292: error: expected ')' before '*' token
>> [ 158s] textadept.c: In function 'main':
>> [ 158s] textadept.c:2513: error: 'GApplication' undeclared (first use in
>> this function)
>> [ 158s] textadept.c:2513: error: (Each undeclared identifier is reported
>> only once
>> [ 158s] textadept.c:2513: error: for each function it appears in.)
>> [ 158s] textadept.c:2513: error: 'app' undeclared (first use in this
>> function)
>> [ 158s] textadept.c:2513: warning: implicit declaration of function
>> 'g_application_new'
>> [ 158s] textadept.c:2514: error: 'G_APPLICATION_HANDLES_COMMAND_LINE'
>> undeclared (first use in t
>> his function)
>> [ 158s] textadept.c:2515: error: 'a_command_line' undeclared (first use
>> in
>> this function)
>> [ 158s] textadept.c:2516: warning: implicit declaration of function
>> 'g_application_register'
>> [ 158s] textadept.c:2517: warning: implicit declaration of function
>> 'g_application_get_is_remote
>> '
>> [ 158s] textadept.c:2534: warning: implicit declaration of function
>> 'g_application_run'
>> [ 158s] make: *** [textadept.o] Error 1
>> [ 158s] error: Bad exit status from /var/tmp/rpm-tmp.6Ob584 (%build)
>> [ 158s]
>
>
> Ah, while Textadept only needs GTK 2.18, it requires GLib 2.22 (ah, the joy
> of dependencies for older OSes). This[1] changeset removed some the #ifdefs
> around the GLib-2.22-specific code, so you'd have to patch *src/textadept.c*
> if you want to compile against pre-2.22.
>
>> not sure if the GCC under CentOS 5 supports C++ 0x, but it is version
>> 4.1.2.
>
>
> I see, well I don't know my GCC versions, so I cannot help much. If you
> check its man page or --help, it may offer what -std flags it supports.
>
> Cheers,
> Mitchell
>
> [1]: https://foicica.com/hg/textadept/rev/832af084b4b2#l4.1
>
> --
> 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.
>

-- 
Thanks for your time,
Brenton
-- 
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 - 08:54:57 EST

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