[redland-dev] Raptor 1.4.2 (and probably earlier) compile problem
on OS X
René Puls
rpuls+lists at kcore.de
Tue Nov 2 14:05:45 GMT 2004
Hi,
when I try to compile Raptor 1.4.2 on OS X 10.3.5, I get the following
error:
gcc -DHAVE_CONFIG_H -I. -I. -I. -DRAPTOR_INTERNAL=1
-I/usr/include/libxml2 -g -O2 -g -O2 -MT raptor_rss.lo -MD -MP -MF
.deps/raptor_rss.Tpo -c raptor_rss.c -fno-common -DPIC -o
.libs/raptor_rss.o
raptor_rss.c: In function `raptor_rss_parser_processNode':
raptor_rss.c:574: warning: assignment makes pointer from integer without
a cast
raptor_rss.c:582: error: `XML_READER_TYPE_ELEMENT' undeclared (first use
in this function)
raptor_rss.c:582: error: (Each undeclared identifier is reported only once
raptor_rss.c:582: error: for each function it appears in.)
raptor_rss.c:639: warning: initialization makes pointer from integer
without a cast
raptor_rss.c:683: warning: initialization makes pointer from integer
without a cast
raptor_rss.c:785: error: `XML_READER_TYPE_END_ELEMENT' undeclared (first
use in this function)
raptor_rss.c:803: error: `XML_READER_TYPE_TEXT' undeclared (first use in
this function)
raptor_rss.c:804: error: `XML_READER_TYPE_SIGNIFICANT_WHITESPACE'
undeclared (first use in this function)
raptor_rss.c:805: error: `XML_READER_TYPE_CDATA' undeclared (first use
in this function)
raptor_rss.c:845: error: `XML_READER_TYPE_ENTITY_REFERENCE' undeclared
(first use in this function)
raptor_rss.c:846: error: `XML_READER_TYPE_ENTITY' undeclared (first use
in this function)
raptor_rss.c:847: error: `XML_READER_TYPE_PROCESSING_INSTRUCTION'
undeclared (first use in this function)
raptor_rss.c:848: error: `XML_READER_TYPE_COMMENT' undeclared (first use
in this function)
raptor_rss.c:849: error: `XML_READER_TYPE_DOCUMENT' undeclared (first
use in this function)
raptor_rss.c:850: error: `XML_READER_TYPE_DOCUMENT_TYPE' undeclared
(first use in this function)
raptor_rss.c:851: error: `XML_READER_TYPE_DOCUMENT_FRAGMENT' undeclared
(first use in this function)
raptor_rss.c:852: error: `XML_READER_TYPE_NOTATION' undeclared (first
use in this function)
raptor_rss.c:853: error: `XML_READER_TYPE_WHITESPACE' undeclared (first
use in this function)
raptor_rss.c:854: error: `XML_READER_TYPE_END_ENTITY' undeclared (first
use in this function)
raptor_rss.c:855: error: `XML_READER_TYPE_XML_DECLARATION' undeclared
(first use in this function)
make[2]: *** [raptor_rss.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
These contants are not defined in any of the libxml2 header files on OS
X, but the configure check indicates that this version should be compatible:
checking RSS Tag Soup parser requirements... yes - libxml2 2.6.7 ok
I have encountered problems with the default libxml2 on OS X before. If
I remember correctly, the installed libxml2 is slightly crippled and is
missing some header files. But I'm not 100% sure about that.
(The reason why I haven't noticed and reported this before is that I
usually compile Raptor against a newer libxml2 version which I have
installed manually. The compile error only happens with the system
default libxml2.)
René
More information about the redland-dev
mailing list