[xml] prb building libxml



libxml has a chicken and egg #include problem - for me at least.

The functions in encoding.h changed from 2.3.9 to 2.3.10 which is why I
caught it

symptoms: gcc includes the system copy of libxml/headername rather than
the one from the source archive.

Gcc is being called with:
gcc -DHAVE_CONFIG_H -I. -I../libxml2-2.3.10 -I. -I../libxml2-2.3.10/incl
ude -I./include -g -O2 -Wall -c ../libxml2-2.3.10/xpath.c -o xpath.o

I don't know if this is a problem with my configuration...

Anyway, I'm about to remove the old installed headers as a workaround.
IMO the source for libxml should include
"libxml/foo.h" not <libxml/foo.h> as you are building a new library that
should not use the system headers if they exist.

This is particularly likely to be an issue if macros change between
versions.

Rob





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