bug-commoncpp
[Top][All Lists]
Advanced

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

Re: [Bayonne-devel]Compiling Bayonne 1.0.8 gives "XML support is not ava


From: Federico Montesino Pouzols
Subject: Re: [Bayonne-devel]Compiling Bayonne 1.0.8 gives "XML support is not available".
Date: Wed, 20 Nov 2002 22:24:42 +0100
User-agent: Mutt/1.4i

        From c++ 1.0.6, xml.h will give this error when you do
"#include <cc++/xml.h>" but COMMON_XML_PARSING is not defined in
cc++/config.h (xml was not compiled when building cc++). This is
because we thought that an error should be reported in order to
prevent people from including xml.h when xml related classes are not
really there.

        Unfortunately, this change may break some applications based
on cc++ when xml support is not compiled, and I am afraid that bayonne
may be one of those. From a quick look, I see that no xml related
stuff is compiled in bayonne when COMMON_XML_PARSING is not defined
(everything is inside a "#ifdef COMMON_XML_PARSING" or a "#ifdef
XML_SCRIPTS"). However, in bayonne.h, the following lines:

#ifndef __CCXX_XML_H__
#include <cc++/xml.h>
#endif

        include xml.h without checking for COMMON_XML_PARSING, which
triggers the #error.

On Wed, Nov 20, 2002 at 10:12:55AM -0500, David Sugar wrote:
> 
> This is because Common C++ was built with XML support enabled, but libxml2
> was not present when Common C++ was being built.
> 
> On 20 Nov 2002, Erik Enge wrote:
> 
> > I'm trying to compile bayonne 1.0.8 on Debian (testing/unstable).  I
> > have the libxml2 and libxml2-dev packages installed.  I'm running a
> > 2.4.18 kernel.
> > 
> > Compiling ccscript (2.3.3), ccrtp (1.0pre0), commoncpp2 (1.0.6) and
> > ccaudio (1.0.4) all succeeds.
> > 
> > However, when I try to compile Bayonne with the folling configure,
> > 
> >   ./configure --without-vpb --without-pika --without-dialogic \
> >               --without-phonedev --prefix=/share/sys/bayonne/bayonne-$ver \
> >               --without-xml
> > 
> > It fails with
> > 
> >   creating freebsd/pkg-plist
> >   creating server/bayonne_install
> >   creating server/ivrconfig.h
> >   Making all in server
> >   make[1]: Entering directory `/share/pak/bayonne/bayonne-1.0.8/server'
> >   c++ -DHAVE_CONFIG_H -I. -I. -I.     -g -O2 
> > -I/share/sys/commoncpp2/commoncpp2-1.0.6/include/cc++2 -g -O2 -D_GNU_SOURCE 
> > -DVERPATH=\"1.0.8\"  -c wrapper.cpp
> >   In file included from bayonne.h:25,
> >                    from server.h:18,
> >                    from wrapper.cpp:23:
> >   /share/sys/commoncpp2/commoncpp2-1.0.6/include/cc++2/cc++/xml.h:323: 
> > #error "XML support is not available."
> >   make[1]: *** [wrapper.o] Error 1
> >   make[1]: Leaving directory `/share/pak/bayonne/bayonne-1.0.8/server'
> >   make: *** [all-recursive] Error 1
> > 
> > I've tried removing --without-xml but that didn't change the error
> > message.  Would anybody know what I'm missing?
> > 
> > Thanks,
> > 
> > Erik.
> > 
> > 
> > -------------------------------------------------------
> > This sf.net email is sponsored by: To learn the basics of securing 
> > your web site with SSL, click here to get a FREE TRIAL of a Thawte 
> > Server Certificate: http://www.gothawte.com/rd524.html
> > _______________________________________________
> > Bayonne-devel mailing list
> > address@hidden
> > https://lists.sourceforge.net/lists/listinfo/bayonne-devel
> > 
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by: To learn the basics of securing 
> your web site with SSL, click here to get a FREE TRIAL of a Thawte 
> Server Certificate: http://www.gothawte.com/rd524.html
> _______________________________________________
> Bayonne-devel mailing list
> address@hidden
> https://lists.sourceforge.net/lists/listinfo/bayonne-devel




reply via email to

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