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

From: Mitchell <m.att.foicica.com>
Date: Fri, 20 Jan 2017 09:19:34 -0500 (EST)

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.
Received on Fri 20 Jan 2017 - 09:19:34 EST

This archive was generated by hypermail 2.2.0 : Sat 21 Jan 2017 - 06:42:49 EST