[xml] Compilation errors for rngparser.c



Dear All,

When compiling rngparser.c (libxml2-2.6.5) I get the following errors:

1)
"rngparser.c", line 1441: Error: <function argument 1>: implicit cast of pointer to non-equal pointer
"rngparser.c", line 1445: Error: '=': implicit cast of pointer to non-equal pointer
"rngparser.c", line 1446: Error: '=': implicit cast of pointer to non-equal pointer
"rngparser.c", line 1447: Error: '=': implicit cast of pointer to non-equal pointer

Casting to (const unsigned char *) stops the compiler from generating
the above errors (char defaults to signed here and I guess that's what
causing the problem). Patch attached.

5)
"rngparser.c", line 1494: Error: undeclared name, inventing 'extern int xmlConvertCRNG_topLevel()'

6)
"rngparser.c", line 1513: Error: type disagreement for 'xmlConvertCRNG'
"rngparser.c", line 1513: Serious error: duplicate definition of 'xmlConvertCRNG'

My text editor tells me that xmlConvertCRNG is defined twice:
  xmlConvertCRNG(const char *schemas, int len, const char *encoding) {
   (line 1436)
  xmlConvertCRNG(const char *URL, const char *encoding) {
   (line 1513)


In case it matters I don't use autoconf and the like here to build
libxml2.

Yours,

Phil L.
-- 
http://www.philipnet.com | http://director.sourceforge.net

Attachment: out
Description: Text document



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