Hello Stuart

Sorry, I forgot that I'd already patched the libxml++ package.

Attached are the following:

libxml++-1.0.5-parser.patch - this fixes the following error:

parser.cc: In member function 'virtual void 
xmlpp::Parser::check_for_exception()':
parser.cc:197: error: 'auto_ptr' is not a member of 'std'
parser.cc:197: error: expected primary-expression before '>' token
parser.cc:197: error: 'tmp' was not declared in this scope

See here for details:
http://www.mail-archive.com/[email protected]/msg169694.html

libxml++-spec.patch - this updates libxml++.spec to aply both my original 
'grep' patch and the 'parser' patch. Other than the contents of this patch, my 
spec file is identical to the the latest CVS version. All of my files 
originally came from the CVS repository rather than a BSP.

Regards

Mark


On Tuesday 12 Jul 2011 20:40:31 Stuart Hughes wrote:
> Hi Mark,
> 
> Thanks for the patch. However I tried to apply this and it doesn't match
> the current .spec file in the public LTIB CVS.  Specifically, the
> current .spec file does not include libxml++-1.0.5-grep.patch and that
> patch has not been pushed out to the GPP (assuming this is something
> Freescale did).
> 
> If you have that patch and believe it's not restricted (I doubt it),
> then I can try to update the .spec file to include both patches.
> 
> Could you also send the full .spec file as there may be other changes
> that I'm not aware of.  Could you also say which BSP this came from
> (just for administrative recording purposes).
> 
> Regards, Stuart
> 
> On 05/07/11 14:30, Mark wrote:
> > Hello
> > 
> > Building of libxml++ fails on systems with grep 2.7 as per my previous
> > post regarding PCRE.
> > 
> > See http://lists.gnu.org/archive/html/ltib/2011-06/msg00016.html for
> > details.
> > 
> > The attached patches are as follows:
> > 
> > libxml++-1.0.5-grep.patch - changes the grep command in configure.
> > libxml++-spec-grep.patch - updates the spec file to apply the above
> > patch.
> > 
> > Regards
> > 
> > Mark
--- dist/lfs-5.1/libxml++/libxml++.spec.bak	2011-07-13 14:51:26.419748167 +0100
+++ dist/lfs-5.1/libxml++/libxml++.spec	2011-07-05 14:14:38.000000000 +0100
@@ -10,6 +10,8 @@
 Group           : Developmet/Libraries
 URL             : http://libxmlplusplus.sourceforge.net/
 Source          : %{name}-%{version}.tar.gz
+Patch1          : libxml++-1.0.5-parser.patch
+Patch2          : libxml++-1.0.5-grep.patch
 BuildRoot       : %{_tmppath}/%{name}
 Prefix          : %{pfx}
 Requires        : libxml2
@@ -19,6 +21,8 @@
 
 %Prep
 %setup
+%patch1 -p1
+%patch2 -p1
 
 %Build
 ./configure --prefix=%{_prefix} --host=$CFGHOST --build=%{_build}
diff --exclude CVS --exclude .git -uNr libxml++-1.0.5/libxml++/parsers/parser.cc libxml++-1.0.5.modified/libxml++/parsers/parser.cc
--- libxml++-1.0.5/libxml++/parsers/parser.cc	2004-08-13 22:08:43.000000000 +0100
+++ libxml++-1.0.5.modified/libxml++/parsers/parser.cc	2011-06-23 15:37:39.631158624 +0100
@@ -9,6 +9,7 @@
 #include <libxml/parser.h>
 
 #include <cstdarg> //For va_list.
+#include <memory> //For auto_ptr
 
 namespace xmlpp {
 
_______________________________________________
LTIB home page: http://ltib.org

Ltib mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/ltib

Reply via email to