Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 384645 - sci-libs/fftw-3.3 needs -lfftw3 in fftw3_{threads,mpi,omp}.pc pkg-config files
Summary: sci-libs/fftw-3.3 needs -lfftw3 in fftw3_{threads,mpi,omp}.pc pkg-config files
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-27 12:07 UTC by Honza Macháček
Modified: 2011-10-09 11:56 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
fftw-3.3.ebuild.patch (fftw-3.3.ebuild.patch,465 bytes, patch)
2011-09-27 12:11 UTC, Honza Macháček
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Honza Macháček 2011-09-27 12:07:38 UTC
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.
Comment 1 Honza Macháček 2011-09-27 12:11:15 UTC
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.
Comment 2 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2011-10-09 11:56:41 UTC
+*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>
+