From: Albert C. <lib...@ml...> - 2004-02-16 08:56:32
|
The patches below were required to get libxml++ build using the Sun, HP, SGI, and AIX C++ compilers. Why do you add @LIBXML_LIBS@ to Libs: in libxml++-1.0.pc.in? Why not add libxml-2.0 to the Requires: line? pkg-config will do the right thing and search for libxml-2.0.pc. Also, libtool 1.5.x won't correctly build libxml++ using the Sun C++ compiler. I've submitted a patch to lib...@gn... so hopefully it'll make it into 1.5.3. The problem is that convenience libraries are not passed correctly to the linker so all the symbols from the convenience libraries don't make their way into libxml++.so. -- albert chin (ch...@th...) -- snip snip --- libxml++/nodes/node.h.orig 2004-02-15 21:46:51.285069000 -0600 +++ libxml++/nodes/node.h 2004-02-15 21:46:55.536383000 -0600 @@ -62,7 +62,7 @@ /** Discover at what line number this node occurs in the XML file. * @returns The line number. */ - int get_line() const;; + int get_line() const; /** Obtain the list of child nodes. You may optionally obtain a list of only the child nodes which have a certain name. * @param name The names of the child nodes to get. If you do not specigy a name, then the list will contain all nodes, regardless of their names. --- libxml++/nodes/node.cc.orig 2004-02-16 01:50:36.618977000 -0600 +++ libxml++/nodes/node.cc 2004-02-16 01:50:42.811534000 -0600 @@ -4,6 +4,7 @@ * included with libxml++ as the file COPYING. */ +#include <libxml++/nodes/element.h> #include <libxml++/nodes/node.h> #include <libxml++/exceptions/internal_error.h> #include <iostream> --- libxml++/parsers/parser.h.orig 2004-02-15 23:56:42.619652000 -0600 +++ libxml++/parsers/parser.h 2004-02-16 00:59:01.690901000 -0600 @@ -15,6 +15,8 @@ #include <libxml++/exceptions/validity_error.h> #include <libxml++/exceptions/internal_error.h> +#include <istream> + #ifdef WIN32 //TODO: Why do we do this? murrayc. #define vsnprintf _vsnprintf #endif |