Re: argp.h syntax errors!



Alex Roberts <bse@dial.pipex.com> writes:
> I'm trying to compile the current gEdit...
> 
> and with the current cvs of gnome-libs/etc
> 
> i get...
> make[2]: Entering directory `/usr/src/gnome/gnome-utils/gedit'
> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include
> -DGNOMELOCALEDIR=\""/usr/local/share/locale"\"
> -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include
> -DNEED_GNOMESUPPORT_H -I/usr/local/lib/gnome-libs/include
> -I/usr/local/lib/glib/include -I/usr/X11R6/include
> -I/usr/local/lib/glib/include -I/usr/local/include
> -DBINDIR=\""/usr/local/bin"\" -DDATADIR=\""/usr/local/share"\"
> -DPLUGINDIR=\""/usr/local/share/go/plugins"\" -Wall -ansi -pedantic -g -O2
						     ^^^^^^^^^^^^^^^^^
> -c gedit.c
> In file included from /usr/local/include/libgnome/gnome-parse.h:24,
>                  from /usr/local/include/libgnome/libgnome.h:13,
>                  from /usr/local/include/gnome.h:10,
>                  from gedit.c:20:
> /usr/local/lib/gnome-libs/include/argp.h:534: syntax error before `void'
> /usr/local/lib/gnome-libs/include/argp.h:540: syntax error before `int'
> /usr/local/lib/gnome-libs/include/argp.h:552: syntax error before `int'
> gedit.c:116: warning: `argp_options' defined but not used
> make[2]: *** [gedit.o] Error 1
> make[2]: Leaving directory `/usr/src/gnome/gnome-utils/gedit'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/usr/src/gnome/gnome-utils'
> make: *** [all-recursive-am] Error 2
> amoeba:/usr/src/gnome/gnome-utils$
> 
> anyone know what is causing this error?
> it only seems to happen to gEdit...

The offending lines start with `ARGP_EI', which is defined in the
previous line as `extern inline'.  `inline' isn't a valid keyword in
GCC's `-ansi -pedantic' mode.  For the time being, best is not to use
this mode for compiling (`-Wall' is fine.)

- Hari
-- 
Raja R Harinath ------------------------------ harinath@cs.umn.edu
"When all else fails, read the instructions."      -- Cahn's Axiom
"Our policy is, when in doubt, do the right thing."   -- Roy L Ash



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]