<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>152393</bug_id>
          
          <creation_ts>2006-10-22 10:22 0000</creation_ts>
          <short_desc>sci-libs/fftw-2.1.5-r1 as-needed fix</short_desc>
          <delta_ts>2007-04-30 16:46:40 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>2006.1</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>129413</blocked>
          
          <everconfirmed>1</everconfirmed>
          <reporter>aballier@gentoo.org</reporter>
          <assigned_to>sci@gentoo.org</assigned_to>
          <cc>flameeyes@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>aballier@gentoo.org</who>
            <bug_when>2006-10-22 10:22:08 0000</bug_when>
            <thetext>sci-libs/fftw-2.1.5-r1 compiles fine with as-needed but rfftw has unresolved symbols :

I get the following in the configure checks for rezound : 

configure:32736: x86_64-pc-linux-gnu-g++ -o conftest -march=athlon64 -O2 -pipe -g -Wall -Wno-unused-function -Wno-unused-variable -Wno-unused -I/usr/include -I/usr/include -I/usr/include  -Wl,--as-needed -Xlinker -lpthread conftest.cpp -lrfftw -lrfftw -lfftw -lportaudio -lasound -lm -ldl -lpthread -lpthread -lpthread &gt;&amp;5
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../lib64/librfftw.so: undefined reference to `fftw_factor&apos;
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../lib64/librfftw.so: undefined reference to `fftw_gettimeofday_get_time&apos;
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../lib64/librfftw.so: undefined reference to `fftw_make_node_hc2hc&apos;

Full config.log at : 
http://www.rafb.net/paste/results/XkA1mu40.html


With the patch that will follow, everything is fine.


Alexis.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>aballier@gentoo.org</who>
            <bug_when>2006-10-22 10:25:58 0000</bug_when>
            <thetext>Created an attachment (id=100226)
as-needed fix.

diff to the current 2.1.5-r1 ebuild : 

--- fftw-2.1.5-r1.ebuild        2006-10-22 19:23:22.000000000 +0200
+++ fftw-2.1.5-r2.ebuild        2006-10-22 19:23:08.000000000 +0200
@@ -65,6 +65,7 @@
        #it might be needed if it is decided that lam is an optional dependence
 
        cd &quot;${S}-single&quot;
+       epatch &quot;${FILESDIR}/${P}-as-needed.patch&quot;
        econf \
                --enable-shared \
                --enable-threads \
@@ -76,6 +77,7 @@
 
        #the only difference here is no --enable-float
        cd &quot;${S}-double&quot;
+       epatch &quot;${FILESDIR}/${P}-as-needed.patch&quot;
        econf \
                --enable-shared \
                --enable-threads \
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ribosome@gentoo.org</who>
            <bug_when>2006-10-22 11:10:28 0000</bug_when>
            <thetext>In CVS. Thanks.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>aballier@gentoo.org</who>
            <bug_when>2007-03-30 23:26:19 0000</bug_when>
            <thetext>bah running eautoreconf made that patch useless since it&apos;s applying to makefile.in</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>aballier@gentoo.org</who>
            <bug_when>2007-03-30 23:27:09 0000</bug_when>
            <thetext>Created an attachment (id=114998)
patch to makefile.am

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>bicatali@gentoo.org</who>
            <bug_when>2007-04-30 16:46:40 0000</bug_when>
            <thetext>finally fixed in cvs.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>100226</attachid>
            <date>2006-10-22 10:25 0000</date>
            <desc>as-needed fix.</desc>
            <filename>fftw-2.1.5-as-needed.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIGZmdHctMi4xLjUtc2luZ2xlL3JmZnR3L01ha2VmaWxlLmluLm9sZAkyMDA2LTEwLTIyIDE4
OjMwOjEzLjAwMDAwMDAwMCArMDIwMAorKysgZmZ0dy0yLjEuNS1zaW5nbGUvcmZmdHcvTWFrZWZp
bGUuaW4JMjAwNi0xMC0yMiAxODo0NTo0OS4wMDAwMDAwMDAgKzAyMDAKQEAgLTE3Nyw3ICsxNzcs
NyBAQAogQ09ORklHX0NMRUFOX0ZJTEVTID0KIExUTElCUkFSSUVTID0gJChsaWJfTFRMSUJSQVJJ
RVMpCiAKLWxpYkBGRlRXX1BSRUZJWEByZmZ0d19sYV9MSUJBREQgPQorbGliQEZGVFdfUFJFRklY
QHJmZnR3X2xhX0xJQkFERCA9IC4uL2ZmdHcvbGliQEZGVFdfUFJFRklYQGZmdHcubGEKIGFtX19v
YmplY3RzXzEgPSBmcmNfMS5sbyBmcmNfMi5sbyBmcmNfMy5sbyBmcmNfNC5sbyBmcmNfNS5sbyBm
cmNfNi5sbyBcCiAJZnJjXzcubG8gZnJjXzgubG8gZnJjXzkubG8gZnJjXzEwLmxvIGZyY18xMS5s
byBmcmNfMTIubG8gXAogCWZyY18xMy5sbyBmcmNfMTQubG8gZnJjXzE1LmxvIGZyY18xNi5sbyBm
cmNfMzIubG8gZnJjXzY0LmxvIFwK
</data>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>114998</attachid>
            <date>2007-03-30 23:27 0000</date>
            <desc>patch to makefile.am</desc>
            <filename>fftw-2.1.5-as-needed.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">SW5kZXg6IGZmdHctMi4xLjUvcmZmdHcvTWFrZWZpbGUuYW0KPT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gZmZ0dy0y
LjEuNS5vcmlnL3JmZnR3L01ha2VmaWxlLmFtCisrKyBmZnR3LTIuMS41L3JmZnR3L01ha2VmaWxl
LmFtCkBAIC0xOCw2ICsxOCw3IEBAIGxpYkBGRlRXX1BSRUZJWEByZmZ0d19sYV9TT1VSQ0VTID0g
JChDT0QKIAkJCQkJIHJmZnR3LmggICAgICAgICAgICAgICAgICAgCiAKIGxpYkBGRlRXX1BSRUZJ
WEByZmZ0d19sYV9MREZMQUdTID0gLXZlcnNpb24taW5mbyBAU0hBUkVEX1ZFUlNJT05fSU5GT0AK
K2xpYkBGRlRXX1BSRUZJWEByZmZ0d19sYV9MSUJBREQgPSAuLi9mZnR3L2xpYkBGRlRXX1BSRUZJ
WEBmZnR3LmxhCiBNQUlOVEFJTkVSQ0xFQU5GSUxFUyA9ICQoQ09ERUxFVFMpIHJjb25maWcuYwog
RElTVENMRUFORklMRVMgPSBzcmZmdHcuaCBkcmZmdHcuaAogCg==
</data>        

          </attachment>
    </bug>

</bugzilla>