[xml] AIX 4.3.2 compile error with 2.4.2



gmake[2]: Entering directory `/opt/build/libxml2-2.4.2'
/bin/sh ./libtool --mode=compile xlc -DHAVE_CONFIG_H -I. -I. -I.
-I./include -I./include -I/opt/TWWfsw/zlib11/include
-I/opt/TWWfsw/readline4/include -I/opt/TWWfsw/libiconv16/include  -O2
-qmaxmem=-1 -qarch=com -c SAX.c
mkdir .libs
xlc -DHAVE_CONFIG_H -I. -I. -I. -I./include -I./include
-I/opt/TWWfsw/zlib11/include -I/opt/TWWfsw/readline4/include
-I/opt/TWWfsw/libiconv16/include -O2 -qmaxmem=-1 -qarch=com -c SAX.c
-DPIC
"./include/libxml/HTMLparser.h", line 61.25: 1506-120 (S) Function
cannot return a const qualified type.
"./include/libxml/HTMLparser.h", line 62.25: 1506-120 (S) Function
cannot return a const qualified type.
"./include/libxml/HTMLparser.h", line 63.25: 1506-120 (S) Function
cannot return a const qualified type.

include/libxml/HTMLparser.h has:
const htmlElemDescPtr   htmlTagLookup   (const xmlChar *tag);
const htmlEntityDescPtr htmlEntityLookup(const xmlChar *name);
const htmlEntityDescPtr htmlEntityValueLookup(unsigned int value);

Is this valid C89 code? I passed this through GCC 2.95.3 and 3.0 with
-ansi -pedantic and it worked.

-- 
albert chin (china thewrittenword com)




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