<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Hi David, <br><br>I've fixed the problem, i removed the -dev package and redefined PKG_CONFIG_PATH. <br>Thanks for the help, it is much appreciated.<br><br>Ryan <br><br><br>> From: david.garcia@barcelonamedia.org<br>> To: clam-users@lists.clam-project.org<br>> Subject: Re: [CLAM] building  CLAM with xerces3.0.1<br>> Date: Mon, 26 Jul 2010 14:17:55 +0200<br>> CC: ryanstables@live.com<br>> <br>> Hi Ryan,<br>> <br>> It looks like something is wrong with your setup. You might have conflicting <br>> xerces-c installations. Official xerces-c version in karmic is 3.0.1. The <br>> compiler complaints about a xerces header in the official location <br>> (/usr/include) but then it complaints about bad redefinition of a symbol in <br>> xercesc_3_1 namespace, and this means that compiler included a 3.1.x header <br>> before incluiding that official 3.0.x one.<br>> <br>> So, either uninstall the xerces you installed by hand or remove the official <br>> libxerces-c-dev package. Sticking with the official is recommended unless clam <br>> were required 3.1, i don't remember right now. If 3.1 is required, the option <br>> is removing the official '-dev' package and defining properly PKG_CONFIG_PATH <br>> to 'xercesinstallprefix'/lib/pkgconfig.<br>> <br>> A cleaner solution would be building a backport package from lucid to karmic <br>> by changing just the 'deb-src' sources from karmic to lucid running for <br>> example:<br>> $ sudo sed -i 's/[# ]*\(deb-src.*\)karmic\(.*\)/\1lucid\2/' <br>> /etc/apt/sources.list<br>> <br>> and then running:<br>> $ sudo apt-get install debhelper libicu-dev cdbs autotools-dev<br>> $ apt-get source -b xerces-c<br>> <br>> Regards.<br>> <br>> <br>> On Monday 26 July 2010 10:32:07 Ryan Stables wrote:<br>> > Hi David,<br>> > <br>> > Thanks for the fast reply,<br>> > <br>> > I'm running Ubuntu 9.04. I've attempted to install locally using xerces<br>> > 3.1.1.<br>> > <br>> > I've tried compiling xerces from source and by linking the /lib/ and /bin/<br>> > directories using the aforementioned env. variables. I'm confused as I've<br>> > built CLAM on linux before and I've never had this problem. Is there<br>> > another way to install xerces possibly? I've also tried changing the<br>> > PKG_CONFIG_PATH and I've had no success.<br>> > <br>> > > From: david.garcia@upf.edu<br>> > > To: clam-users@lists.clam-project.org<br>> > > Subject: Re: [CLAM] building CLAM with xerces3.0.1<br>> > > Date: Mon, 26 Jul 2010 01:55:50 +0200<br>> > > CC: ryanstables@live.com<br>> > > <br>> > > Maybe some more data would be usefull to help you. Which distro? Are you<br>> > > trying a locally installed xerces? It seems that you have a system wide<br>> > > xerces installation that should be working out of the box but it is not<br>> > > 3.0.1 but 3.1.x. Anyway PATH is about binaries and we don't need any<br>> > > xerces binary for building and LD_LIBRARY_PATH is about run time library<br>> > > location. If you are using a local install what you have to redefine is<br>> > > PKG_CONFIG_PATH. See the man page for pkg-config.<br>> > > <br>> > > A Dilluns 26 Juliol 2010 00:51:35, Ryan Stables va escriure:<br>> > > > Hello,<br>> > > > <br>> > > > I'm having trouble building CLAM with Xerces3.0.1.<br>> > > > <br>> > > > I've recently built Xerces and added the /bin/ directory to $PATH and<br>> > > > the /lib/ directory to $LD_LIBRARY_PATH. When i run 'scons configure'<br>> > > > in the CLAM directory, everything is fine. When i try and build using<br>> > > > 'scons', I get the following error message:<br>> > > > <br>> > > > <br>> > > > == Compiling shared scons/libs/core/src/XercesDomWriter.cxx<br>> > > > In file included from /usr/include/xercesc/dom/DOMWriter.hpp:246,<br>> > > > from scons/libs/core/src/XercesDomWriter.cxx:29:<br>> > > > /usr/include/xercesc/dom/DOMWriterFilter.hpp:90: error: conflicting<br>> > > > return type specified for ‘virtual short int<br>> > > > xercesc_3_1::DOMWriterFilter::acceptNode(const xercesc_3_1::DOMNode*)<br>> > > > const’ /usr/local/include/xercesc/dom/DOMNodeFilter.hpp:214: error:<br>> > > > overriding ‘virtual xercesc_3_1::DOMNodeFilter::FilterAction<br>> > > > xercesc_3_1::DOMNodeFilter::acceptNode(const xercesc_3_1::DOMNode*)<br>> > > <br>> > > const’<br>> > > <br>> > > > scons/libs/core/src/XercesDomWriter.cxx: In member function ‘void<br>> > > > CLAM::XercesDomWriter::write(std::ostream&, xercesc_3_1::DOMNode*)’:<br>> > > > scons/libs/core/src/XercesDomWriter.cxx:44: error: ‘class<br>> > > > xercesc_3_1::DOMImplementationLS’ has no member named<br>> > > <br>> > > ‘createDOMWriter’<br>> > > <br>> > > > scons: *** [scons/libs/core/src/XercesDomWriter.os] Error 1<br>> > > > scons: building terminated because of errors.<br>> > > > <br>> > > > <br>> > > > Can anyone suggest where I'm going wrong?<br>> > > > <br>> > > > Many thanks,<br>> > > > Ryan<br>> > > > <br>> > > > ________________________________<br>> > > > Get a new e-mail account with Hotmail – Free. Sign-up<br>> > > > now.<http://clk.atdmt.com/UKM/go/197222280/direct/01/><br>> > > <br>> > > --<br>> > > David García Garzón<br>> > > (Work) david dot garcia at upf anotherdot edu<br>> > > http://www.iua.upf.edu/~dgarcia<br>> > <br>> > ________________________________<br>> > Get a new e-mail account with Hotmail – Free. Sign-up<br>> > now.<http://clk.atdmt.com/UKM/go/197222280/direct/01/><br>                                          </body>
</html>