Re: [xml] Re: Bug#2022: libxml throws away attribute namespaces

Date view Thread view Subject view Author view

From: Stephane Conversy (Stephane.Conversy@lri.fr)
Date: Mon Aug 30 1999 - 05:16:02 EDT


Daniel Veillard wrote:

>
> I commited a new version in the CVS bases, it include the necessary
> changes to support namespaces on attributes, better validation, support
> for IDs, improvements on XPath, lots of cleanup.
> I have put this version 1.6 at:
> ftp://rpmfind.net/pub/veillard/
>
> Sources and RPMs,
>
> Daniel
>

compiling the lib on sgi gives the warnings I quoted at the end of the mail
(just to mention them).
A problem: when compiling something that uses libxml with a c++ compiler, I
get these errors:

cc-1311 CC: ERROR File = /u/conversy/local/include/gnome-xml/xml-error.h, Line
= 12
  The indicated linkage specification is incompatible with previous
          "xmlParserValidityError" (declared at line 27 of
          "/u/conversy/local/include/gnome-xml/valid.h").

  void xmlParserValidityError (void *ctx,
        ^

cc-1311 CC: ERROR File = /u/conversy/local/include/gnome-xml/xml-error.h, Line
= 15
  The indicated linkage specification is incompatible with previous
          "xmlParserValidityWarning" (declared at line 28 of
          "/u/conversy/local/include/gnome-xml/valid.h").

  void xmlParserValidityWarning(void *ctx,

by surronding valid.h with:

#ifdef __cplusplus
extern "C" {
#endif

...

#ifdef __cplusplus
}
#endif

, the errors vanish.

WARNINGS:

cc -DHAVE_CONFIG_H -I. -I. -I. -I. -DLIBXML_VERSION=\"1.6.0\" -g -c -DPIC
parser.c -o .libs/parser.lo
cc-1552 cc: WARNING File = parser.c, Line = 4649
  The variable "cons" is set but never used.

            int cons = ctxt->input->consumed;
                ^

cc-1552 cc: WARNING File = parser.c, Line = 5148
  The variable "node_info" is set but never used.

      xmlParserNodeInfo node_info;
                        ^

cc -DHAVE_CONFIG_H -I. -I. -I. -I. -DLIBXML_VERSION=\"1.6.0\" -g -c -DPIC
HTMLparser.c -o
.libs/HTMLparser.lo
cc-1552 cc: WARNING File = HTMLparser.c, Line = 2222
  The variable "node_info" is set but never used.

      htmlParserNodeInfo node_info;
                         ^

cc -DHAVE_CONFIG_H -I. -I. -I. -I. -DLIBXML_VERSION=\"1.6.0\" -g -c -DPIC
xpath.c -o .libs/xpath.lo
cc-1552 cc: WARNING File = xpath.c, Line = 3933
  The variable "attribute" is set but never used.

      int attribute = 0;
          ^

cc -DHAVE_CONFIG_H -I. -I. -I. -I. -DLIBXML_VERSION=\"1.6.0\" -g -c -DPIC
valid.c -o .libs/valid.lo
cc-1185 cc: WARNING File = valid.c, Line = 71
  An enumerated type is mixed with another type.

      ret->type = type;
                ^

cc-1185 cc: WARNING File = valid.c, Line = 397
  An enumerated type is mixed with another type.

      ret->type = type;
                ^

cc-1185 cc: WARNING File = valid.c, Line = 792
  An enumerated type is mixed with another type.

          (!xmlValidateAttributeValue(type, defaultValue))) {
                                      ^

cc-1185 cc: WARNING File = valid.c, Line = 850
  An enumerated type is mixed with another type.

      ret->type = type;
                ^

cc-1185 cc: WARNING File = valid.c, Line = 853
  An enumerated type is mixed with another type.

      ret->def = def;

--
Stéphane Conversy
http://www-ihm.lri.fr/~conversy/
mailto:conversy@lri.fr

---- Message from the list xml@rufus.w3.org Archived at : http://rufus.w3.org/veillard/XML/messages to unsubscribe: echo "unsubscribe xml" | mail majordomo@rufus.w3.org


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Aug 02 2000 - 12:29:46 EDT