bug-commoncpp
[Top][All Lists]
Advanced

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

Re: problems with 1.9.7 and libxml2-2.4.19


From: David Sugar
Subject: Re: problems with 1.9.7 and libxml2-2.4.19
Date: Thu, 11 Apr 2002 20:33:24 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8) Gecko/20020204

I suspect commoncpp2 will have the same issue. Is there a simple #if test we can do to use alternate #includes for the newer releases?

Mike Castle wrote:

Not sure if CommonC++-1.9.7 is supported with the commoncpp2 stuff out, but
just in case:

The following change in libxml2 has bitten at least one other application
(gcompris):

Fri Mar 15 19:41:25 CET 2002 Daniel Veillard <address@hidden>

       * configure,in: it was reported quite a few times that
         xml2-config --cflags should not output
         -I$includeprefix/libxml2/libxml because libxml2 header names
         clashes with existing names like list.h from C++ stl.
         Includes should be #include<libxml/xxx.h> so ...

So CommonC++ errors with the following:

c++ -DHAVE_CONFIG_H -I. -I../../CommonC++-1.9.7/src -I.  
-I../../CommonC++-1.9.7/src -I/usr/include/libxml2 -I../src -g -O2 
-D_GNU_SOURCE -D_REENTRANT -D_THREAD_
SAFE -c xml.cpp  -fPIC -DPIC -o .libs/xml.lo
xml.cpp:54: parser.h: No such file or directory
xml.cpp:55: parserInternals.h: No such file or directory
xml.cpp:56: xmlIO.h: No such file or directory
make[1]: *** [xml.lo] Error 1
make[1]: Leaving directory `/usr/src/commonc++/CommonC++-1.9.7/src'


Haven't tried yet, but I assume that simply adding libxml/ to the #includes
will fix the issue.

Also haven't yet rebuild commoncpp2 to see if it has the same issue.

mrc






reply via email to

[Prev in Thread] Current Thread [Next in Thread]