I cann't compile xmlwrapp under CentOS6.2

18 views
Skip to first unread message

szw

unread,
Aug 23, 2013, 11:23:51 AM8/23/13
to xmlwrapp
 
The error message is:
 
make[1]: Entering directory `/home/szw/tool/xmlwrapp-0.7.0/src'
  CXX      libxmlwrapp_la-schema.lo
In file included from libxml/schema.cxx:38:
libxml/errors_impl.h:66: error: 'va_list' has not been declared
libxml/errors_impl.h:67: error: 'va_list' has not been declared
 
Centos6.2
libxml2.so.2.7.6
libxslt.so.1.1.26
gcc 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC) 
 
help me please !

szw

Vadim Zeitlin

unread,
Aug 23, 2013, 12:28:33 PM8/23/13
to xmlw...@googlegroups.com
On Fri, 23 Aug 2013 23:23:51 +0800 szw <s...@yesdata.cn> wrote:

s> The error message is:
s>
s> make[1]: Entering directory `/home/szw/tool/xmlwrapp-0.7.0/src'
s> CXX libxmlwrapp_la-schema.lo
s> In file included from libxml/schema.cxx:38:
s> libxml/errors_impl.h:66: error: 'va_list' has not been declared
s> libxml/errors_impl.h:67: error: 'va_list' has not been declared
s>
s> Centos6.2
s> libxml2.so.2.7.6
s> libxslt.so.1.1.26
s> gcc 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC)
s>
s> help me please !

This has already been fixed in the Git repository so you could get the fix
from there or just apply it yourself as it's just one line to add:

diff --git a/src/libxml/errors_impl.h b/src/libxml/errors_impl.h
index 5901511..1c98acb 100644
--- a/src/libxml/errors_impl.h
+++ b/src/libxml/errors_impl.h
@@ -33,6 +33,7 @@
#ifndef _xmlwrapp_errors_impl_h_
#define _xmlwrapp_errors_impl_h_

+#include <stdarg.h>
#include <xmlwrapp/errors.h>

namespace xml


Hope this helps,
VZ

Václav Slavík

unread,
Aug 28, 2013, 11:02:06 AM8/28/13
to xmlw...@googlegroups.com

On 23 Aug 2013, at 18:28, Vadim Zeitlin <va...@zeitlins.org> wrote:
> This has already been fixed in the Git repository so you could get the fix
> from there or just apply it yourself as it's just one line to add:

...and I just released 0.7.1 with these fixes:
https://github.com/vslavik/xmlwrapp/releases

Regards,
Vaclav
Reply all
Reply to author
Forward
0 new messages