[redland-dev] Raptor 1.4.2 compile error on SuSE 9.0

Dave Beckett dave.beckett at bristol.ac.uk
Sun Dec 19 11:09:34 PST 2004


On Sat, 18 Dec 2004 12:59:29 +0100 "Rainer Volz" <mail at vrtprj.com>
wrote:

> >>>>> "Sean McCune" == Sean McCune <sean at redhandsoftware.com> writes:
> 
>     Sean McCune> Hi all,
> 
>     Sean McCune> I'm having a problem compiling raptor 1.4.2 on SuSE
>     9.0. I Sean McCune> get the following error message:
> 
>     Sean McCune> gcc -g -O2 -g -O2 -o .libs/rapper rdfdump.o
>     Sean McCune> ./.libs/libraptor.so -L/usr/lib /usr/lib/libxml2.so
>     -lz Sean McCune> -lpthread -lm ./.libs/libraptor.so: undefined
>     reference to Sean McCune> `xmlTextReaderConstNamespaceUri'
>     ./.libs/libraptor.so: Sean McCune> undefined reference to
>     `xmlTextReaderConstLocalName'
> 
>     Sean McCune> Any ideas?  I can't find these symbols anywhere.
> 
> They seem to be defined in libxml2 -- maybe you have an old version?
> libxml 2.6.7 (SuSE 9.1) provides the symbols. See ftp://xmlsoft.org/.

Yes, they are in 2.6.0 and newer.  CVS raptor has fixes for this of
the form:

#if LIBXML_VERSION > 20511
  name = (xmlChar *)xmlTextReaderConstLocalName(reader);
#else
  name = xmlTextReaderLocalName(reader);
  free_name = 1;
#endif

and then optional frees.  Same thing for the other call.

Dave



More information about the redland-dev mailing list