[Gretl-devel] compilation problem with gtksourceview on Fedora 9

Allin Cottrell cottrell at wfu.edu
Mon Apr 21 15:23:35 EDT 2008


On Mon, 21 Apr 2008, Stefan Grosse wrote:

> I recently installed Fedora 9 (preview). I cannot install the 
> rpm since it complains that libreadline.so.4 is not provided. 

Readline 4 is a bit old, but it's what's on the RHEL box where I'm 
building the rpm.

> Now with Fedora 9 the compilation of gretl 1.7.4 fails. The 
> ./configure went well with...
[snip]
>   Use installed gtksourceview:            no
> 
> Now type 'make' to build gretl.
> 
> The compilation starts but halts then at:
> 
> make -C gtksourceview
> make[2]: Entering directory `/home/sgrosse/Downloads/gretl-1.7.4/gui2/gtksourceview'
> gcc -g -O2 -I../../gui2 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -I/usr/include/libxml2   -DDATADIR=\"/usr/local/share/gretl\" -DNATIVE_GNU_REGEX   -c -o gtksourceregex.o gtksourceregex.c
> gtksourceregex.c:43: Fehler: Feld »reg« hat unvollständigen Typen
> gtksourceregex.c: In Funktion »gtk_source_regex_compile«:
> gtksourceregex.c:56: Fehler: »RE_SYNTAX_POSIX_MINIMAL_EXTENDED« nicht deklariert (erste Benutzung in dieser Funktion)

OK, you're not using an installed copy of gtksourceview, so gretl 
is building this library from the code that's bundled under gui2.
Apparently the configure check for gnu_regex passed since 
-DNATIVE_GNU_REGEX is being passed among the CFLAGS. And 
apparently regex.h is found, since there's no complaint from the 
compiler about that being missing.

Beyond that, I'm puzzled: regex.h is found, but it doesn't seem to 
have anything useful in it!  It's not defining struct re_registers 
or RE_SYNTAX_POSIX_MINIMAL_EXTENDED.  

You could work around this by installing gtksourceview.  But 
looking in this area, I see that the build process for the bundled 
gtksourceview was broken for the case where native GNU regex is 
_not_ available: this is now fixed in CVS.  Although this doesn't 
seem to be your case, it might be worth trying to build gretl from 
CVS and see if that goes OK.

Allin Cottrell.


More information about the Gretl-devel mailing list