[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [xml] Problems of compilation in libxml-2.5.0 with threads and without debug...
- From: Daniel Veillard <veillard redhat com>
- To: "Christophe Merlet (RedFox)" <redfox redfoxcenter org>
- Cc: xml gnome org
- Subject: Re: [xml] Problems of compilation in libxml-2.5.0 with threads and without debug...
- Date: Mon, 6 Jan 2003 18:43:41 -0500
On Mon, Jan 06, 2003 at 11:03:12PM +0100, Christophe Merlet (RedFox) wrote:
>
> Don't use --with-threads options else compilation fails with the
> following message:
>
> 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
Okay fixed, the patch just forgot the #undef for the new global
variables.
> Don't use --without-debug configure option else compilation fail on
> undefined variable'debug' or apply this patch:
Well the debug option should be made available since --stream --debug
can be used without requiring the debugXML.c stuff.
Fixed in CVS, patch enclosed,
thanks,
Daniel
--
Daniel Veillard | Red Hat Network https://rhn.redhat.com/
veillard redhat com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
Index: globals.c
===================================================================
RCS file: /cvs/gnome/gnome-xml/globals.c,v
retrieving revision 1.19
diff -c -r1.19 globals.c
*** globals.c 6 Jan 2003 13:11:07 -0000 1.19
--- globals.c 6 Jan 2003 23:31:37 -0000
***************
*** 115,120 ****
--- 115,122 ----
#undef xmlPedanticParserDefaultValue
#undef xmlSaveNoEmptyTags
#undef xmlSubstituteEntitiesDefaultValue
+ #undef xmlRegisterNodeDefaultValue
+ #undef xmlDeregisterNodeDefaultValue
#undef xmlFree
#undef xmlMalloc
Index: xmllint.c
===================================================================
RCS file: /cvs/gnome/gnome-xml/xmllint.c,v
retrieving revision 1.67
diff -c -r1.67 xmllint.c
*** xmllint.c 5 Jan 2003 22:37:17 -0000 1.67
--- xmllint.c 6 Jan 2003 23:31:38 -0000
***************
*** 86,95 ****
#include <libxml/xmlreader.h>
#ifdef LIBXML_DEBUG_ENABLED
- static int debug = 0;
static int shell = 0;
static int debugent = 0;
#endif
static int copy = 0;
static int recovery = 0;
static int noent = 0;
--- 86,95 ----
#include <libxml/xmlreader.h>
#ifdef LIBXML_DEBUG_ENABLED
static int shell = 0;
static int debugent = 0;
#endif
+ static int debug = 0;
static int copy = 0;
static int recovery = 0;
static int noent = 0;
***************
*** 1132,1137 ****
--- 1132,1139 ----
printf("\t--debug : dump a debug tree of the in-memory document\n");
printf("\t--shell : run a navigating shell\n");
printf("\t--debugent : debug the entities defined in the document\n");
+ #else
+ printf("\t--debug : dump the nodes content when using --stream\n");
#endif
printf("\t--copy : used to test the internal copy implementation\n");
printf("\t--recover : output what was parsable on broken XML documents\n");
Index: include/libxml/schemasInternals.h
===================================================================
RCS file: /cvs/gnome/gnome-xml/include/libxml/schemasInternals.h,v
retrieving revision 1.7
diff -c -r1.7 schemasInternals.h
*** include/libxml/schemasInternals.h 11 Dec 2002 14:23:48 -0000 1.7
--- include/libxml/schemasInternals.h 6 Jan 2003 23:31:45 -0000
***************
*** 16,21 ****
--- 16,22 ----
#ifdef LIBXML_SCHEMAS_ENABLED
#include <libxml/xmlregexp.h>
+ #include <libxml/hash.h>
#ifdef __cplusplus
extern "C" {
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]