Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 475022 - [patch]multilib media-plugins/swh-plugins-0.4.15-r3 fails to build
Summary: [patch]multilib media-plugins/swh-plugins-0.4.15-r3 fails to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Professional Audio Applications Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-27 19:05 UTC by Torsten Kaiser
Modified: 2013-06-27 20:25 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Torsten Kaiser 2013-06-27 19:05:39 UTC
Trying to build the new multilib enabled version of swh-plugins fails with:

ibtool: compile:  x86_64-pc-linux-gnu-gcc -m32 -DHAVE_CONFIG_H -I. -I/var/tmp/portage/media-plugins/swh-plugins-0.4.15-r3/work/swh-plugins-0.4.15 -pipe -march=amdfam10 -O3 -fomit-frame-pointer -fweb -frename-registers -ftracer -c /var/tmp/portage/media-plugins/swh-plugins-0.4.15-r3/work/swh-plugins-0.4.15/pitch_scale_1193.c  -fPIC -DPIC -o .libs/pitch_scale_1193_la-pitch_scale_1193.o
mbeq_1197.xml:22:20: fatal error: srfftw.h: No such file or directory
compilation terminated.
make[2]: *** [mbeq_1197_la-mbeq_1197.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/media-plugins/swh-plugins-0.4.15-r3/work/swh-plugins-0.4.15-x86'

The cause seems to be that mbew_1197 wants to use the fftw-2 header, but only the fftw-3 package is installed.

The cause of this wrong include is, that the source of swh-plugins seems to ship an horribly outdated config.h that points to fftw-2.

Without the multilib changes that did not matter: The config.h just got overwritten by configure and everything works.

But with multilib we get this:

thoregon work # cd /var/tmp/portage/media-plugins/swh-plugins-0.4.15-r3/work
thoregon work # ls
swh-plugins-0.4.15  swh-plugins-0.4.15-amd64  swh-plugins-0.4.15-x86
thoregon work # ls -l */config.h
-rw-r--r-- 1 root root 3165 Jun 27 20:54 swh-plugins-0.4.15-amd64/config.h
-rw-r--r-- 1 root root 2721 Aug  8  2006 swh-plugins-0.4.15/config.h
-rw-r--r-- 1 root root 3165 Jun 27 20:54 swh-plugins-0.4.15-x86/config.h
thoregon work #

Each arch gets its own correct config.h, but the old broken version still exists.

And because the broken one is in the same directory as the other source files that one gets used and breaks the build.

The fix is simple: Just kill the broken version.

--- swh-plugins-0.4.15-r3.ebuild~       2013-06-27 17:01:31.000000000 +0200
+++ swh-plugins-0.4.15-r3.ebuild        2013-06-27 20:57:01.890155204 +0200
@@ -46,6 +46,9 @@
        # it doesn't get updated otherwise
        rm -f missing
 
+       # old shipped version breaks multilib build
+       rm -f config.h
+
        # Fix build with automake 1.13
        sed -i 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/g' configure.in || die
Comment 1 tman 2013-06-27 20:23:05 UTC
i have the same problem i hope this get fix soon.
Comment 2 Alexis Ballier gentoo-dev 2013-06-27 20:25:45 UTC
applied, thanks!