Re: [xml] Problems compiling libxml2-2.4.20
- From: Gary Pennington <Gary Pennington sun com>
- To: Ivens Porto <ivens ose com br>
- Cc: xml gnome org
- Subject: Re: [xml] Problems compiling libxml2-2.4.20
- Date: Mon, 22 Apr 2002 08:55:55 +0100
Ivens Porto wrote:
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,
I sent out a mail about this last week, but it didn't seem to get
delivered to the list.
So I've attached it to this reply.
Gary
--
Gary Pennington
Solaris Kernel Development,
Sun Microsystems
Gary Pennington sun com
--- Begin Message ---
- From: Gary Pennington <Gary Pennington sun com>
- To: veillard redhat com
- Cc: xml gnome org
- Subject: Re: [xml] Release of libxml2-2.4.20
- Date: Tue, 16 Apr 2002 08:32:28 +0100
Daniel Veillard wrote:
Available from:
ftp://xmlsoft.org/ and Gnome FTP mirrors
http://xmlsoft.org/
This is a bugfix release, the next version is expected to have the
first shot at the XML Schemas support which I may commit in CVS in the
next week.
- bug fixes: file descriptor leak, XPath, HTML ouput, DTD validation
- XPath conformance testing and fixes by Richard Jinks
- Portability fixes: Solaris, MPE/iX, Windows, OSF/1, python bindings,
libxml.m4
Daniel
A typo introduced in xpath.c in 2.4.40.
This patch fixes it.
bash-2.03# diff -c xpath.c.ORIG xpath.c
*** xpath.c.ORIG Tue Apr 16 08:18:38 2002
--- xpath.c Tue Apr 16 08:18:49 2002
***************
*** 392,398 ****
xmlXPathCompSwap(xmlXPathStepOpPtr op) {
int tmp;
! #ifdef LIBXML_THREAD_ENABLED
/*
* Since this manipulates possibly shared variables, this is
* disable if one detects that the library is used in a multithreaded
--- 392,398 ----
xmlXPathCompSwap(xmlXPathStepOpPtr op) {
int tmp;
! #ifndef LIBXML_THREAD_ENABLED
/*
* Since this manipulates possibly shared variables, this is
* disable if one detects that the library is used in a multithreaded
bash-2.03#
Gary
--- End Message ---
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]