[CLAM] Clam compilation problems

Bad Data djr4g3 at yahoo.com
Sun Jan 21 22:11:12 PST 2007


I am having problems getting CLAM working properly. I think. one problem I am having has to do with the fftw libraries.

During 'scons configure' the following is output:

###############################################
### CLAM PROCESSING DEPENDENCIES CHECKING   ###
###############################################
Checking for C header file sfftw.h... yes
Checking for C header file srfftw.h... yes
Checking for fftw_sizeof_fftw_real() in C library sfftw... yes
Checking for rfftw_create_plan() in C library srfftw... no
Could not find libsrfftw
Please check that fftw is properly installed

config.log contains the following:
gcc -O2 -fomit-frame-pointer -Wall -DCLAM_FLOAT -DUSE_PTHREADS=1 -DUSE_XERCES_TRUE -DCLAM_USE_XML -DUSE_LADSPA=1 -I/usr/qt/3/include -I/usr/
local/include -I/usr/include/qt4/Qt -I/usr/include/qt4 -c -o .sconf_temp/conftest_17.o .sconf_temp/conftest_17.c
gcc -o .sconf_temp/conftest_17 .sconf_temp/conftest_17.o -L/usr/qt/3/lib -L/usr/local/lib -L/opt/lib -L/usr/qt/3/lib -L/usr/lib/qt4 -lpthrea
d -lxerces-c -lsfftw -lsrfftw
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../libsrfftw.a(rplanner.o): In function `rfftw_measure_runtime':
rplanner.c:(.text+0x93): undefined reference to `fftw_gettimeofday_get_time'
rplanner.c:(.text+0xdb): undefined reference to `fftw_gettimeofday_get_time'
rplanner.c:(.text+0x15c): undefined reference to `fftw_gettimeofday_get_time'
rplanner.c:(.text+0x191): undefined reference to `fftw_gettimeofday_time_diff'
rplanner.c:(.text+0x1c0): undefined reference to `fftw_gettimeofday_time_diff'
rplanner.c:(.text+0x208): undefined reference to `fftw_gettimeofday_time_diff'
rplanner.c:(.text+0x237): undefined reference to `fftw_gettimeofday_time_diff'
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../libsrfftw.a(rplanner.o): In function `rfftw_print_plan':
rplanner.c:(.text+0x2b4): undefined reference to `fftw_fprint_plan'
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../libsrfftw.a(rplanner.o): In function `rplanner':
rplanner.c:(.text+0x30f): undefined reference to `fftw_lookup'


I looked around the internet for problems like this and noticed something in the fftw faq (Question 3.7) that mentioned that the order that srfftw and sfftw are linked matters. If I invoke 
gcc -o .sconf_temp/conftest_17 .sconf_temp/conftest_17.o -L/usr/qt/3/lib -L/usr/local/lib -L/opt/lib -L/usr/qt/3/lib -L/usr/lib/qt4 -lpthread -lxerces-c  -lsrfftw -lsfftw

I do not get the errors (note that -lsfftw and -lsrfftw have been switched from what happens during 'scons configure')

I am on a gentoo box and have installed fftw from source myself (ie not emerge). My first idea is to switch the order that they are linked in the test, but I don't know scons very well, and that seems like a hack that might not address the actual problem.

Can anyone help?

James




 
---------------------------------
Want to start your own business? Learn how on Yahoo! Small Business.
-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clam-project.org/pipermail/clam-users-clam-project.org/attachments/20070121/b2a22acc/attachment-0001.htm>


More information about the clam-users mailing list