[xml] unable to build 32-bit libxml2 (Makefile problem?)



Hello, I'm trying to build libxml2-2.4.23 on sparc running solaris 8.
I'm running gcc-3.2 and binutils-2.13.
This compiler defaults to 64-bit unless I use the -m32 flag, so I do the 
following:

bash$ export CFLAGS=-m32 -O3 -fexpensive-optimizations

bash$ ./configure --prefix=/usr/local/libxml2-2.4.23 
--exec-prefix=/usr/local/libxml2-2.4.23/arch --disable-nls

...
checking host system type... sparc-sun-solaris2.8
...

bash$ make

After a while I get the following error:

gcc -shared  SAX.lo entities.lo encoding.lo error.lo parserInternals.lo 
parser.lo tree.lo hash.lo list.lo xmlIO.lo xmlmemory.lo uri.lo valid.lo 
xlink.lo HTMLparser.lo HTMLtree.lo debugXML.lo xpath.lo xpointer.lo 
xinclude.lo nanohttp.lo nanoftp.lo DOCBparser.lo catalog.lo globals.lo 
threads.lo c14n.lo xmlregexp.lo xmlschemas.lo xmlschemastypes.lo 
xmlunicode.lo  -lz -lm -lsocket -lnsl -lc  -Wl,-soname -Wl,libxml2.so.2 -o 
.libs/libxml2.so.2.4.23
collect2: ld terminated with signal 11 [Segmentation Fault], core dumped
/usr/local/bin/ld: warning: sparc architecture of input file `SAX.lo' is 
incompatible with sparc:v9 output
/usr/local/bin/ld: warning: sparc architecture of input file `entities.lo' is 
incompatible with sparc:v9 output
/usr/local/bin/ld: warning: sparc architecture of input file `encoding.lo' is 
incompatible with sparc:v9 output
/usr/local/bin/ld: warning: sparc architecture of input file `error.lo' is 
incompatible with sparc:v9 output
/usr/local/bin/ld: warning: sparc architecture of input file 
`parserInternals.lo' is incompatible with sparc:v9 output
/usr/local/bin/ld: warning: sparc architecture of input file `parser.lo' is 
incompatible with sparc:v9 output
/usr/local/bin/ld: warning: sparc architecture of input file `tree.lo' is 
incompatible with sparc:v9 output
/usr/local/bin/ld: warning: sparc architecture of input file `hash.lo' is 
incompatible with sparc:v9 output
/usr/local/bin/ld: warning: sparc architecture of input file `list.lo' is 
incompatible with sparc:v9 output
/usr/local/bin/ld: warning: sparc architecture of input file `xmlIO.lo' is 
incompatible with sparc:v9 output
/usr/local/bin/ld: warning: sparc architecture of input file `xmlmemory.lo' is 
incompatible with sparc:v9 output
/usr/local/bin/ld: warning: sparc architecture of input file `uri.lo' is 
incompatible with sparc:v9 output
/usr/local/bin/ld: warning: sparc architecture of input file `valid.lo' is 
incompatible with sparc:v9 output
/usr/local/bin/ld: warning: sparc architecture of input file `xlink.lo' is 
incompatible with sparc:v9 output
/usr/local/bin/ld: warning: sparc architecture of input file `HTMLparser.lo' 
is incompatible with sparc:v9 output
/usr/local/bin/ld: warning: sparc architecture of input file `HTMLtree.lo' is 
incompatible with sparc:v9 output
/usr/local/bin/ld: warning: sparc architecture of input file `debugXML.lo' is 
incompatible with sparc:v9 output
/usr/local/bin/ld: warning: sparc architecture of input file `xpath.lo' is 
incompatible with sparc:v9 output
/usr/local/bin/ld: warning: sparc architecture of input file `xpointer.lo' is 
incompatible with sparc:v9 output
/usr/local/bin/ld: warning: sparc architecture of input file `xinclude.lo' is 
incompatible with sparc:v9 output
/usr/local/bin/ld: warning: sparc architecture of input file `nanohttp.lo' is 
incompatible with sparc:v9 output
/usr/local/bin/ld: warning: sparc architecture of input file `nanoftp.lo' is 
incompatible with sparc:v9 output
/usr/local/bin/ld: warning: sparc architecture of input file `DOCBparser.lo' 
is incompatible with sparc:v9 output
/usr/local/bin/ld: warning: sparc architecture of input file `catalog.lo' is 
incompatible with sparc:v9 output
/usr/local/bin/ld: warning: sparc architecture of input file `globals.lo' is 
incompatible with sparc:v9 output
/usr/local/bin/ld: warning: sparc architecture of input file `threads.lo' is 
incompatible with sparc:v9 output
/usr/local/bin/ld: warning: sparc architecture of input file `c14n.lo' is 
incompatible with sparc:v9 output
/usr/local/bin/ld: warning: sparc architecture of input file `xmlregexp.lo' is 
incompatible with sparc:v9 output
/usr/local/bin/ld: warning: sparc architecture of input file `xmlschemas.lo' 
is incompatible with sparc:v9 output
/usr/local/bin/ld: warning: sparc architecture of input file 
`xmlschemastypes.lo' is incompatible with sparc:v9 output
/usr/local/bin/ld: warning: sparc architecture of input file `xmlunicode.lo' 
is incompatible with sparc:v9 output
make[2]: *** [libxml2.la] Error 1
make[2]: Leaving directory `/cesma/alan/libxml2-2.4.23'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/cesma/alan/libxml2-2.4.23'
make: *** [all-recursive-am] Error 2

I am able to build it if I don't use the -m32 CFLAGS (and I get 64-bit 
versions), so I think my CFLAGS are ignored in some places and used in other 
places in the Makefile.


Alan



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