From: Richard T. <ric...@ht...> - 2003-04-18 12:26:58
|
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? According to xmlsoft's own code example http://xmlsoft.org/tutorial/apb.html it should be placed here: #include <libxml/xmlmemory.h> #include <libxml/parser.h> In that case the above patch should look 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 <libxml/parser.h> +#include <libxml/tree.h> And on Red Hat 9 a symlink needs to be made in /usr/include: cd /usr/include && ln -s libxml2/libxml . I also checked The Linux Standard Base but they do not mention libxml[1-2] AFAICT. Any input guys? Happy Easter! /Richard |