[xml] Problems of compilation in libxml-2.5.0 with threads and without debug...
- From: "Christophe Merlet (RedFox)" <redfox redfoxcenter org>
- To: xml gnome org
- Subject: [xml] Problems of compilation in libxml-2.5.0 with threads and without debug...
- Date: Mon, 06 Jan 2003 23:03:12 +0100
Don't use --with-threads options else compilation fails with the
following message:
/bin/sh ./libtool --mode=compile ppc-redfox-linux-gnu-gcc
-DHAVE_CONFIG_H -I. -I. -I. -I./include -I./include -D_REENTRANT -pipe
-O3 -fsigned-char -fomit-frame-pointer -mcpu=750 -Wall -c globals.c
rm -f .libs/globals.lo
ppc-redfox-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I. -I./include
-I./include -D_REENTRANT -pipe -O3 -fsigned-char -fomit-frame-pointer
-mcpu=750 -Wall -c globals.c -fPIC -DPIC -o .libs/globals.lo
globals.c:222: function `__xmlRegisterNodeDefaultValue' is initialized
like a variable
globals.c:223: function `__xmlDeregisterNodeDefaultValue' is initialized
like a variable
globals.c: In function `xmlInitializeGlobalState':
globals.c:457: parse error before '(' token
globals.c:458: parse error before '(' token
globals.c: In function `__xmlRegisterNodeDefaultValue':
globals.c:696: `xmlRegisterNodeDefaultValue' undeclared (first use in
this function)
globals.c:696: (Each undeclared identifier is reported only once
globals.c:696: for each function it appears in.)
globals.c: In function `__xmlDeregisterNodeDefaultValue':
globals.c:705: `xmlDeregisterNodeDefaultValue' undeclared (first use in
this function)
make[2]: *** [globals.lo] Error 1
make[2]: Leaving directory `/home/redfox/RPM/BUILD/libxml2-2.5.0'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/redfox/RPM/BUILD/libxml2-2.5.0'
make: *** [all-recursive-am] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.81344 (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.81344 (%build)
{bash}-(lun jan 06 21:57:37)-<redfox iBox>
3 [~/RPM/SPECS]$
Don't use --without-debug configure option else compilation fail on
undefined variable'debug' or apply this patch:
diff -uNr libxml2-2.5.0.orig/xmllint.c libxml2-2.5.0/xmllint.c
--- libxml2-2.5.0.orig/xmllint.c 2003-01-05 23:22:08.000000000
+0100
+++ libxml2-2.5.0/xmllint.c 2003-01-06 22:53:11.000000000 +0100
@@ -615,8 +615,10 @@
*/
ret = xmlTextReaderRead(reader);
while (ret == 1) {
+#ifdef LIBXML_DEBUG_ENABLED
if (debug)
processNode(reader);
+#endif
ret = xmlTextReaderRead(reader);
}
Librement,
--
Christophe Merlet (RedFox)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]