[Expat-discuss] Re: possible build issue fix

Carlos Pereira carlos@pehoe.civil.ist.utl.pt
Thu Nov 8 12:53:03 2001


>One of the build problems that keeps coming up is that some versions
>of GCC don't support the -fexceptions option.  If you are using GCC on
>a platform for which this is the case, could you please try building
>Expat using the configure script at this URL and let me know how it
>works for you?  I think I've added the right thing to get this
>auto-detected, but I don't have a GCC without -fexceptions support.

>http://starship.python.net/crew/fdrake/patches/configure

This is Red Hat Linux 5.2 on Intel hardware, 
I tried to compile expat-1.95.2 with your script

1) running the new config is fine, but
make fails with this message:

cd lib && make
make[1]: Entering directory `/tmp/expat-1.95.2/lib'
make[1]: *** No rule to make target `expat.h', needed by `xmlparse.lo'.  Stop.
make[1]: Leaving directory `/tmp/expat-1.95.2/lib'
make: *** [lib] Error 2

2) running then the old config, it runs well,
but make fails with this message:

cd lib && make
make[1]: Entering directory `/tmp/expat-1.95.2/lib'
/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -DPACKAGE='"expat"' -DVERSION='"expat_1.95.2"' -I. -I. -I..  -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -c xmlparse.c
mkdir .libs
gcc -DHAVE_CONFIG_H -DPACKAGE=\"expat\" -DVERSION=\"expat_1.95.2\" -I. -I. -I.. -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -c xmlparse.c  -fPIC -DPIC -o .libs/xmlparse.lo
cc1: Invalid option `-fexceptions'
make[1]: *** [xmlparse.lo] Error 1
make[1]: Leaving directory `/tmp/expat-1.95.2/lib'
make: *** [lib] Error 2

3) running again the new config, it runs well,
and make runs well too, no problems at all!

So it seems that new_config works but
something is missing, which is handled
only by the old config...

Hope this helps!

Carlos Pereira