Can't compile g-warp-1.3.2

Nathan A. Smith nasa000@attbi.com
28 Oct 2002 22:05:48 -0700


On Mon, 2002-10-28 at 13:25, David Hampton wrote:
> On Mon, 2002-10-28 at 11:58, Nathan A. Smith wrote:
> > Hi, 
> > 
> > When I try to compile g-wrap I am getting the following output:
> > 
> > 
> > gcc -DHAVE_CONFIG_H -I. -I. -I.. -O2 -g -Wall -Wno-uninitialized
> > -Wno-unused -Werror -I/usr/include/glib-1.2 -I/usr/lib/glib/include
> > -I/usr/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2
> > -I/usr/lib/glib/include -D_REENTRANT -I/usr/X11R6/include
> > -I/usr/include/glib-1.2 -I/usr/lib/glib/include -g -O2 -I/usr/include -c
> > gw-standard.c -MT gw-standard.lo -MD -MP -MF .deps/gw-standard.TPlo    
> > -fPIC -DPIC -o .libs/gw-standard.lo
> > cc1: changing search order for system directory "/usr/include"
> > cc1:   as it has already been specified as a non-system directory
> > make[2]: *** [gw-standard.lo] Error 1
> > make[2]: Leaving directory
> > `/usr/local/development/Gnucash/g-wrap-1.3.2/g-wrap'
> > make[1]: *** [all-recursive] Error 1
> > make[1]: Leaving directory `/usr/local/development/Gnucash/g-wrap-1.3.2'
> > make: *** [all] Error 2
> > 
> > 
> > What is going wrong?  I am using Mandrake 9.0.  Thanks a lot
> 
> GCC 3.x is extremely picky.  Edit g-wrap/Makefile.am and
> test/Makefile.am and remove all instances of the '-Werror' flag.
Thanks for the hint -- it also turns out that you have to remove the 
-Werror flags from the Makefile.in files as well.

> 
> David
>