[xml] Problems compiling libxml2-2.4.20



Hello,

While trying to upgrade from libxml2-2.4.12 to libxml2-2.4.20 I ran into
a compile error.

I configure libxml with the following options: --without-debug
--with-threads --with-thread-alloc

When doing make I get the following error:

BEGIN ---------------------------

(lots of output removed)

mv -f .libs/debugXML.lo debugXML.lo
/bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.
-I./include -I./include  -D_REENTRANT      -g -O2 -Wall -c xpath.c
rm -f .libs/xpath.lo
gcc -DHAVE_CONFIG_H -I. -I. -I. -I./include -I./include -D_REENTRANT -g
-O2 -Wall -c xpath.c  -fPIC -DPIC -o .libs/xpath.lo
xpath.c: In function `xmlXPathCompSwap':
xpath.c:401: `xmlXPathDisableOptimizer' undeclared (first use in this
function)
xpath.c:401: (Each undeclared identifier is reported only once
xpath.c:401: for each function it appears in.)
xpath.c: At top level:
trionan.c:507: warning: `trio_isfinite' defined but not used
trionan.c:706: warning: `trio_fpclassify' defined but not used
make[2]: *** [xpath.lo] Error 1
make[2]: Leaving directory
`/home/ivens/src/develop/xml/gnome/libxml2-2.4.20'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/home/ivens/src/develop/xml/gnome/libxml2-2.4.20'
make: *** [all-recursive-am] Error 2

END ------------------------------------------------------

Taking a look at xpath.c, apparently, the error occurs because of
#ifdefs problems, but I didn't changed xpath.c because I'm not sure what
I have to do to fix it.

When compiling only with the options --without-debug --with-threads the
error repeats itself again. Compiling without threads support works
fine.

I'm using a Debug 2.2r2 (glibc 2.1.3), with gcc 2.95.2.

What do I have to do to fix this compile error? Compile without XPath
when using threads support?

Another thing I noted is that even with the option --without-debug all
gcc commands contains the -g option. Is this correct?


Thanks,


-- 
                                      _/_/_/       _/_/_/        _/_/_/
Ivens Porto                         _/     _/    _/            _/
OSE - Open Systems Engineering     _/     _/    _/            _/
http://www.ose.com.br             _/     _/      _/_/_/      _/_/_/_/
Phone: (55) 34 - 3214-5995       _/     _/            _/    _/
Fax:   (55) 34 - 3214-5994      _/     _/            _/    _/
                                 _/_/_/        _/_/_/       _/_/_/



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