[CLAM] Failure to build CLAM on Gentoo Linux

David García Garzón dgarcia at iua.upf.edu
Mon Dec 18 07:31:20 PST 2006


The configure test that checks your system having XercesC++ library properly installed is failing. It finds the headers and the library but not the proper library version. It may be a XercesC++ version conflict. Compiler seems to find 2.7 headers but a different version for the library. Did you installed XercesC++ in a local directory? Could you give the list more details on how did you installed XercesC++? Check link names and so-names (links on the /lib directory) related to xerces.

If problems with XercesC++ persist, try to change the xmlbackend to 
libxml++. But if you have a vanilla Gentoo install we are interested on identify any problem that could affect to other Gentoo users.

David.

On Mon, 18 Dec 2006 15:57:36 +0100
"Fredrik Karlsson" <dargosch at gmail.com> wrote:

> Dear list,
> 
> I am having problems building the CLAM framework. I get an error
> message ehwn doing a "scons configure":
> 
> ------------------------------- snip
> -----------------------------------------------
> theodor libs # scons configure
> scons: Reading SConscript files ...
> Using existing QTDIR
> Version:  0.95.0
> Package version:  0.95.0
> ############################################
> ### CLAM GLOBAL DEPENDENCIES CHECKING    ###
> ############################################
> Checking for pkg-config... ok
> include before pthread checking: $QTDIR/include
> include before pthread checking: /usr/local/include
> Checking for C header file pthread.h... yes
> Checking for pthread_join() in C library pthread... yes
> Checking that pthread sample program compiles...ok
> Checking that pthread sample program links...ok
> Checking that pthread sample program runs... ok
> #########################################
> ### CLAM CORE DEPENDENCIES CHECKING   ###
> #########################################
> Checking for C++ header file xercesc/util/PlatformUtils.hpp... yes
> path of app: /usr/local/linuxprinter/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/afsws/bin:/etc/afs/afsws:/usr/afs/bin:/usr/athena/sbin:/usr/i686-pc-linux-gnu/gcc-bin/3.3:/opt/intel/compiler70/ia32/bin:/opt/ati/bin:/opt/ati/sbin:/opt/blackdown-jdk-1.4.2.02/bin:/opt/blackdown-jdk-1.4.2.02/jre/bin:/usr/kde/3.5/sbin:/usr/kde/3.5/bin:/usr/qt/3/bin:/usr/kde/3.4/sbin:/usr/kde/3.4/bin:/usr/kde/3.3/sbin:/usr/kde/3.3/bin:/usr/kde/3.2/sbin:/usr/kde/3.2/bin:/usr/share/karamba/bin
> Checking that xerces-c sample program compiles...ok
> Checking that xerces-c sample program links...failed
> xerces c code compile/link/run test failed! Check config.log for details...
> 
> ------------------------------- snip
> -----------------------------------------------
> 
> At the end of the config.log I get:
> 
> ------------------------------- snip
> -----------------------------------------------
> 
> ++ -O2 -fomit-frame-pointer -Wall -DCLAM_FLOAT -DUSE_PTHREADS=1
> -I/usr/qt/3/include -I/usr/local/include -c -o
> .sconf_temp/conftest_6.o .sconf_temp/conftest_6.cpp
> yes
> Checking that xerces-c sample program compiles...
> .sconf_temp/conftest_7.cxx <-
>   |
>   |#include <xercesc/util/PlatformUtils.hpp>
>   |
>   |int main( int argc, char** argv )
>   |{
>   |     namespace xercesc=XERCES_CPP_NAMESPACE;
>   |
>   |     xercesc::XMLPlatformUtils::Initialize();
>   |
>   |     return 0;
>   |}
>   |
> g++ -O2 -fomit-frame-pointer -Wall -DCLAM_FLOAT -DUSE_PTHREADS=1
> -I/usr/qt/3/include -I/usr/local/include -c -o
> .sconf_temp/conftest_7.o .sconf_temp/conftest_7.cxx
> Result: ok
> 
> Checking that xerces-c sample program links...
> .sconf_temp/conftest_8.cxx <-
>   |
>   |#include <xercesc/util/PlatformUtils.hpp>
>   |
>   |int main( int argc, char** argv )
>   |{
>   |     namespace xercesc=XERCES_CPP_NAMESPACE;
>   |
>   |     xercesc::XMLPlatformUtils::Initialize();
>   |
>   |     return 0;
>   |}
>   |
> g++ -O2 -fomit-frame-pointer -Wall -DCLAM_FLOAT -DUSE_PTHREADS=1
> -I/usr/qt/3/include -I/usr/local/include -c -o
> .sconf_temp/conftest_8.o .sconf_temp/conftest_8.cxx
> g++ -o .sconf_temp/conftest_8 .sconf_temp/conftest_8.o -L/usr/qt/3/lib
> -L/usr/local/lib -L/opt/lib -lpthread -lxerces-c
> .sconf_temp/conftest_8.o: In function `main':
> conftest_8.cxx:(.text+0x24): undefined reference to
> `xercesc_2_7::XMLUni::fgXercescDefaultLocale'
> conftest_8.cxx:(.text+0x29): undefined reference to
> `xercesc_2_7::XMLPlatformUtils::Initialize(char const*, char const*,
> xercesc_2_7::PanicHandler*, xercesc_2_7::MemoryMana
> ger*, bool)'
> collect2: ld returned 1 exit status
> scons: *** [.sconf_temp/conftest_8] Error 1
> Result: failed
> 
> ------------------------------- snip
> -----------------------------------------------
> 
> Has anyone seen this before? How do I fix it?
> 
> /Fredrik
> 
> 
> 
> -- 
> 
> "Give up learning, and put an end to your troubles."
> 
> My Gentoo + PVR-350 + IVTV + MythTV blog is on http://gentoomythtv.blogspot.com/
> 
> -- 
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
> 
> 
> _______________________________________________
> CLAM mailing list
> CLAM at iua.upf.es
> http://www.iua.upf.es/mtg/clam

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.





More information about the clam-users mailing list