Olena make check results

Hello, I compiled Olena 0.9 on Intel P4 RedHat Fedora with gcc 3.3.2 compiler. But I encountered the following errors when running make check. Before I compiled Olena I installed fftw-2.1.5 and both libraries librfftw.a and libfftw.a are located in /usr/local/directory. I did not disabled fft option when configuring Olena build. I appreciate your attention. Michal g++ -O3 -finline-limit-1500 -Wall -pedantic -Werror -lz -o multiple_sources -lz -lfftw -lrfftw multiple_sources-multiple_sources_1.o multiple_sources-multiple_sources_2.o ../check/libolncheck.a multiple_sources-multiple_sources_1.o(.text+0xab1): In function `first_check()':: undefined reference to `rfftw2d_create_plan' multiple_sources-multiple_sources_1.o(.text+0xb07): In function `first_check()':: undefined reference to `rfftw2d_create_plan' multiple_sources-multiple_sources_1.o(.text+0xbd0): In function `first_check()':: undefined reference to `fftwnd_destroy_plan' multiple_sources-multiple_sources_1.o(.text+0xbdc): In function `first_check()':: undefined reference to `fftwnd_destroy_plan' multiple_sources-multiple_sources_1.o(.text+0x13ad): In function `first_check()': : undefined reference to `fftwnd_destroy_plan' multiple_sources-multiple_sources_1.o(.text+0x13b6): In function `first_check()': : undefined reference to `fftwnd_destroy_plan' multiple_sources-multiple_sources_2.o(.text+0xab1): In function `second_check()': : undefined reference to `rfftw2d_create_plan' multiple_sources-multiple_sources_2.o(.text+0xb07): In function `second_check()': : undefined reference to `rfftw2d_create_plan' multiple_sources-multiple_sources_2.o(.text+0xbd0): In function `second_check()': : undefined reference to `fftwnd_destroy_plan' multiple_sources-multiple_sources_2.o(.text+0xbdc): In function `second_check()': : undefined reference to `fftwnd_destroy_plan' multiple_sources-multiple_sources_2.o(.text+0x13ad): In function `second_check()': : undefined reference to `fftwnd_destroy_plan' multiple_sources-multiple_sources_2.o(.text+0x13b6): In function `second_check()': : undefined reference to `fftwnd_destroy_plan'

On Tuesday 09 December 2003 20:16, Michal Lijowski wrote:
Hello,
I compiled Olena 0.9 on Intel P4 RedHat Fedora with gcc 3.3.2 compiler. But I encountered the following errors when running make check. Before I compiled Olena I installed fftw-2.1.5 and both libraries librfftw.a and libfftw.a are located in /usr/local/directory. I did not disabled fft option when configuring Olena build.
I don't know why manual compilation of the fftw library does not create dynamic libraries. Since static libraries are used, the fftw flags must be located at the end of the compilation line. Here is a patch (applied on prcs, you may want to have a look at the latest snapshot on http://www.lrde.epita.fr/~burrus_n/www-lrde/olena/snapshots/). Thank you for reporting the problem! ------------------------------------------------------------------------------ Index: olena/ChangeLog from Nicolas Burrus <burrus_n@lrde.epita.fr> * tests/core/Makefile.am: Put fftw libraries in LDADD instead of LDFLAGS. * tests/transforms/Makefile.am: Likewise. Index: olena/tests/transforms/Makefile.am --- olena/tests/transforms/Makefile.am Tue, 05 Aug 2003 21:39:33 +0200 burrus_n (oln/i/40_Makefile.a 1.11 640) +++ olena/tests/transforms/Makefile.am Tue, 09 Dec 2003 21:15:26 +0100 burrus_n (oln/i/40_Makefile.a 1.11 640) @@ -1,6 +1,6 @@ include ../check/Makefile.runtests -LDFLAGS_RUNTESTS += $(FFTW_LDFLAGS) +LDADD_RUNTESTS += $(FFTW_LDFLAGS) CXXFLAGS_RUNTESTS += $(FFTW_CFLAGS) CLEANFILES += fft_trans_clipped.pgm \ Index: olena/tests/core/Makefile.am --- olena/tests/core/Makefile.am Fri, 01 Aug 2003 02:45:53 +0200 burrus_n (oln/s/10_Makefile.a 1.7.1.1 640) +++ olena/tests/core/Makefile.am Tue, 09 Dec 2003 21:14:44 +0100 burrus_n (oln/s/10_Makefile.a 1.7.1.1 640) @@ -6,7 +6,8 @@ check_PROGRAMS = multiple_sources multiple_sources_SOURCES = multiple_sources_1.cc multiple_sources_2.cc -multiple_sources_LDFLAGS = $(AM_LDFLAGS) $(FFTW_LDFLAGS) +multiple_sources_LDFLAGS = $(AM_LDFLAGS) +multiple_sources_LDADD = $(LDADD) $(FFTW_LDFLAGS) multiple_sources_CXXFLAGS = $(AM_CXXFLAGS) $(FFTW_CFLAGS) check-image-print: ------------------------------------------------------------------------------
participants (2)
-
Michal Lijowski
-
Nicolas Burrus