[CLAM] Clam compilation problems

Pau Arumi parumi at iua.upf.edu
Wed Jan 24 05:16:08 PST 2007


we have spent some time looking at the problem, though we couldn't 
reproduce it.
it would be nice that you could check whether the standard gentoo 
packages works.

however you can try this hack to get  -lsrfftw before -lsfftw :
in CLAM/scons/libs/modconf/processing.py line 69, add this line
conf.env.AppendUnique(LIBS="srfftw")

hope that helps



Bad Data wrote:
> 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. 
> <http://us.rd.yahoo.com/evt=41244/*http://smallbusiness.yahoo.com/r-index>
> -- 
> This message has been scanned for viruses and
> dangerous content by *MailScanner* <http://www.mailscanner.info/>, 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