[CLAM] Failure to build CLAM on Gentoo Linux

Pau Arumi parumi at iua.upf.edu
Mon Dec 18 07:28:19 PST 2006


The easiest thing is to go one without using xerces but libxml. See the 
scons options doing scons --help :
scons xmlbackend=xmlpp

If you want to investigate further on the problem, I'd start checking 
that you have libxerces-c.so at paths: -L/usr/local/lib -L/opt/lib
However, this "collect2: ld returned 1 exit status" error you got is not 
the typical error about not finding a library, but I'm not sure.

Please keep us informed on your progress, it would be greate to add 
gentoo specific comments in the INSTALL file or wiki.

  Pau



En/na Fredrik Karlsson ha escrit:
> 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
>
>
>


-- 
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