[CLAM] building CLAM with xerces3.0.1

David García Garzón david.garcia at barcelonamedia.org
Mon Jul 26 05:17:55 PDT 2010


Hi Ryan,

It looks like something is wrong with your setup. You might have conflicting 
xerces-c installations. Official xerces-c version in karmic is 3.0.1. The 
compiler complaints about a xerces header in the official location 
(/usr/include) but then it complaints about bad redefinition of a symbol in 
xercesc_3_1 namespace, and this means that compiler included a 3.1.x header 
before incluiding that official 3.0.x one.

So, either uninstall the xerces you installed by hand or remove the official 
libxerces-c-dev package. Sticking with the official is recommended unless clam 
were required 3.1, i don't remember right now. If 3.1 is required, the option 
is removing the official '-dev' package and defining properly PKG_CONFIG_PATH 
to 'xercesinstallprefix'/lib/pkgconfig.

A cleaner solution would be building a backport package from lucid to karmic 
by changing just the 'deb-src' sources from karmic to lucid running for 
example:
$ sudo sed -i 's/[# ]*\(deb-src.*\)karmic\(.*\)/\1lucid\2/' 
/etc/apt/sources.list

and then running:
$ sudo apt-get install debhelper libicu-dev cdbs autotools-dev
$ apt-get source -b xerces-c

Regards.


On Monday 26 July 2010 10:32:07 Ryan Stables wrote:
> Hi David,
> 
> Thanks for the fast reply,
> 
> I'm running Ubuntu 9.04. I've attempted to install locally using xerces
> 3.1.1.
> 
> I've tried compiling xerces from source and by linking the /lib/ and /bin/
> directories using the aforementioned env. variables. I'm confused as I've
> built CLAM on linux before and I've never had this problem. Is there
> another way to install xerces possibly? I've also tried changing the
> PKG_CONFIG_PATH and I've had no success.
> 
> > From: david.garcia at upf.edu
> > To: clam-users at lists.clam-project.org
> > Subject: Re: [CLAM] building CLAM with xerces3.0.1
> > Date: Mon, 26 Jul 2010 01:55:50 +0200
> > CC: ryanstables at live.com
> > 
> > Maybe some more data would be usefull to help you. Which distro? Are you
> > trying a locally installed xerces? It seems that you have a system wide
> > xerces installation that should be working out of the box but it is not
> > 3.0.1 but 3.1.x. Anyway PATH is about binaries and we don't need any
> > xerces binary for building and LD_LIBRARY_PATH is about run time library
> > location. If you are using a local install what you have to redefine is
> > PKG_CONFIG_PATH. See the man page for pkg-config.
> > 
> > A Dilluns 26 Juliol 2010 00:51:35, Ryan Stables va escriure:
> > > Hello,
> > > 
> > > I'm having trouble building CLAM with Xerces3.0.1.
> > > 
> > > I've recently built Xerces and added the /bin/ directory to $PATH and
> > > the /lib/ directory to $LD_LIBRARY_PATH. When i run 'scons configure'
> > > in the CLAM directory, everything is fine. When i try and build using
> > > 'scons', I get the following error message:
> > > 
> > > 
> > > == Compiling shared scons/libs/core/src/XercesDomWriter.cxx
> > > In file included from /usr/include/xercesc/dom/DOMWriter.hpp:246,
> > > from scons/libs/core/src/XercesDomWriter.cxx:29:
> > > /usr/include/xercesc/dom/DOMWriterFilter.hpp:90: error: conflicting
> > > return type specified for ‘virtual short int
> > > xercesc_3_1::DOMWriterFilter::acceptNode(const xercesc_3_1::DOMNode*)
> > > const’ /usr/local/include/xercesc/dom/DOMNodeFilter.hpp:214: error:
> > > overriding ‘virtual xercesc_3_1::DOMNodeFilter::FilterAction
> > > xercesc_3_1::DOMNodeFilter::acceptNode(const xercesc_3_1::DOMNode*)
> > 
> > const’
> > 
> > > scons/libs/core/src/XercesDomWriter.cxx: In member function ‘void
> > > CLAM::XercesDomWriter::write(std::ostream&, xercesc_3_1::DOMNode*)’:
> > > scons/libs/core/src/XercesDomWriter.cxx:44: error: ‘class
> > > xercesc_3_1::DOMImplementationLS’ has no member named
> > 
> > ‘createDOMWriter’
> > 
> > > scons: *** [scons/libs/core/src/XercesDomWriter.os] Error 1
> > > scons: building terminated because of errors.
> > > 
> > > 
> > > Can anyone suggest where I'm going wrong?
> > > 
> > > Many thanks,
> > > Ryan
> > > 
> > > ________________________________
> > > Get a new e-mail account with Hotmail – Free. Sign-up
> > > now.<http://clk.atdmt.com/UKM/go/197222280/direct/01/>
> > 
> > --
> > David García Garzón
> > (Work) david dot garcia at upf anotherdot edu
> > http://www.iua.upf.edu/~dgarcia
> 
> ________________________________
> Get a new e-mail account with Hotmail – Free. Sign-up
> now.<http://clk.atdmt.com/UKM/go/197222280/direct/01/>



More information about the clam-users mailing list