From: Javier O'H. <j....@ti...> - 2003-04-19 09:10:31
|
On Friday 18 April 2003 14:25, Richard Torkar wrote: > Hi everyone. > > In dia2code.h line 29 and 30 we reference libxml2 headers like this: > > /* libxml[2] headers */ > #include <parser.h> > #include <tree.h> > > > The thing is that on a standard Red Hat 9 system they are placed as > default in: > /usr/include/libxml2/libxml > by the libxml2-devel rpm. > > I propose a change like this: > > > --- dia2code.h.orig 2003-04-18 14:14:46.000000000 +0200 > +++ dia2code.h 2003-04-18 14:13:34.000000000 +0200 > @@ -26,8 +26,8 @@ > #include <stdarg.h> > > /* libxml[2] headers */ > -#include <parser.h> > -#include <tree.h> > +#include <libxml2/libxml/parser.h> > +#include <libxml2/libxml/tree.h> > > #define VERSION "0.8.1" > > > But before I commit I was wondering where libxml2 places its headers on > different distributions? The configure script in Dia2Code already finds out on its own, with 'xml2-config --cflags'. In a RH8 system it gives me: $ xml2-config --cflags -I/usr/include/libxml2 So, I think xmlsoft's example is accurate. After doing 'configure', indeed, the Makefile reads: XML_INCLUDES = -I/usr/include/libxml2 The solution should be changing the lines in dia2code.h to: #include <libxml/parser.h> #include <libxml/tree.h> Otherwise, it won't even compile on RH8 :-( Cheers, Xav |