The pkg-config files for parallel flavours of fftw-3 instruct to link just the parallel library, like -lfftw3_threads, not the main library of common code (-lfftw3). According to http://www.fftw.org/fftw3_doc/Usage-of-Multi_002dthreaded-FFTW.html#Usage-of-Multi_002dthreaded-FFTW both libraries are needed. Up to sci-libs/fftw-3.2.2-r1 that was compensated for by the .la files; sci-libs/fftw-3.3 still installs .la files, but libfftw3_threads.la no longer states the dependency on -lfftw3. For me it was manifested by sci-physics/abinit::science crashing in the configure phase when testing fftw support, linker complaining about a lot of undefined fftw functions. Reproducible: Always Steps to Reproduce: Linking any testing program against fftw-3.3 using linker flags given by pkg-config --libs fftw3_threads pkg-config --libs fftw3_omp or pkg-config --libs fftw3_mpi is likely to fail.
Created attachment 287919 [details, diff] fftw-3.3.ebuild.patch A simple patch to the sci-libs/fftw-3.3.ebuild to include -lfftw3 in the pkg-config files of its parallel implementations.
+*fftw-3.3-r1 (09 Oct 2011) + + 09 Oct 2011; Kacper Kowalik <xarthisius@gentoo.org> -fftw-3.3.ebuild, + +fftw-3.3-r1.ebuild: + Fix .pc files wrt #384645 by Honza Macháček <Hloupy.Honza@centrum.cz> +