[GRASS5] [bug #856] (grass) fft unresolved at link time

this bug's URL: http://intevation.de/rt/webrt?serial_num=856
-------------------------------------------------------------------------

Subject: fft unresolved at link time

Platform: Linux/Intel
Linux distro: SuSe
linux cpu: AMD (K6, ...)
Xwindows version: X Accellerated Server
Xwindows manager: KDE 2.x
TclTk version: tcl/tk 8.3
grass downloaded at: Baylor site
grass sources source: no, I got a source code package from the server, 5.0.0pre2
c compiler name: gcc

fft reference is unresolved at link time resulting in i.fft, i.zc, i.surf.fractal and i.shape not created. Below is the linker output:

make[1]: Entering directory `/opt/grass5.0.0pre2/src/imagery/i.fft/cmd'
gcc -s -o /opt/grass5.0.0pre2/dist.i686-pc-linux-gnu/etc/bin/cmd/i.fft OBJ.i686-pc-linux-gnu/fftmain.o OBJ.i686-pc-linux-gnu/orig_wind.o OBJ.i686-pc-linux-gnu/save_fft.o OBJ.i686-pc-linux-gnu/fft_colors.o /opt/grass5.0.0pre2/src/libes/LIB.i686-pc-linux-gnu/libgis.a /opt/grass5.0.0pre2/src/libes/LIB.i686-pc-linux-gnu/libgmath.a -lz -lm
OBJ.i686-pc-linux-gnu/fftmain.o: In function `main':
/opt/grass5.0.0pre2/src/imagery/i.fft/cmd/fftmain.c:174: undefined reference to `fft'
collect2: ld returned 1 exit status
make[1]: *** [/opt/grass5.0.0pre2/dist.i686-pc-linux-gnu/etc/bin/cmd/i.fft] Error 1
make[1]: Leaving directory `/opt/grass5.0.0pre2/src/imagery/i.fft/cmd'
make: *** [all] Error 1
tbird:/opt/grass5.0.0pre2/src/imagery/i.fft #

-------------------------------------------- Managed by Request Tracker

Request Tracker wrote:

grass sources source: no, I got a source code package from the server, 5.0.0pre2

fft reference is unresolved at link time resulting in i.fft, i.zc,
i.surf.fractal and i.shape not created. Below is the linker output:

You need the FFTW library, from www.fftw.org.

The current (CVS) version of the "configure" script will report an
error if FFTW cannot be found.

I guess that we should release a -pre3 version. The current configure
script is (or, at least, should be) a lot more robust than the -pre2
version.

--
Glynn Clements <glynn.clements@virgin.net>