Bug 41042 - flac xmms plugin does not install correctly on amd64
Bug#: 41042 Product:  Gentoo Linux Version: 1.4 Platform: AMD64
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: eradicator@gentoo.org Reported By: bcs26@cornell.edu
Component: Applications
URL: 
Summary: flac xmms plugin does not install correctly on amd64
Keywords:  
Status Whiteboard: 
Opened: 2004-02-09 16:31 0000
Description:   Opened: 2004-02-09 16:31 0000
On amd64, emerging flac-1.1.0 with the xmms USE flag does not appear to
correctly install the flac xmms plugin (it is not available in the xmms plugin
menu, and xmms will not play flac files). libxmms-flac.a and libxmms-flac.la
seem to be the only flac-related files present in /usr/lib/xmms/Input/. All
other plugins install a shared object (.so) file in addition to the .la file,
and no .a archive. Other plugins _are_ present in the xmms menu, so xmms plugin
functionality works.

On x86, the flac-1.1.0 ebuild _does_ install a libxmms-flac.so shared object
into /usr/lib/xmms/Input/, and the plugin works correctly and appears in the
menu.

------- Comment #1 From Dylan Carlson (RETIRED) 2004-03-09 19:26:42 0000 -------
It appears that the plugin needs the stuff in src/plugin_common,
src/share/grabbag, src/share/gain_analysis, src/share/utf8 ... but that stuff
isn't getting installed so naturally the plugin fails when xmms tries to load
it.

------- Comment #2 From Jason Huebel (RETIRED) 2004-04-01 09:54:55 0000 -------
Created an attachment (id=28514) [details]
log of flac emerge

Looks like plugin_common is being skipped for some reason... Then you get this
when building plugin_xmms:

*** Warning: This library needs some functionality provided by
../../src/plugin_common/l
ibplugin_common.a.
*** I have the capability to make that library automatically link in when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have.

*** Warning: This library needs some functionality provided by
../../src/share/grabbag/l
ibgrabbag.a.
*** I have the capability to make that library automatically link in when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have.

*** Warning: This library needs some functionality provided by
../../src/share/gain_anal
ysis/libgain_analysis.a.
*** I have the capability to make that library automatically link in when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have.

*** Warning: This library needs some functionality provided by
../../src/share/utf8/libu
tf8.a.
*** I have the capability to make that library automatically link in when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have.
rm -fr .libs/libxmms-flac.la .libs/libxmms-flac.* .libs/libxmms-flac.*

*** Warning: This library needs some functionality provided by -lstdc++.
*** I have the capability to make that library automatically link in when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have.

*** Warning: libtool could not satisfy all declared inter-library
*** dependencies of module libxmms-flac.  Therefore, libtool will create
*** a static module, that should work as long as the dlopening
*** application is linked with the -dlopen flag.

------- Comment #3 From Jason Huebel (RETIRED) 2004-04-01 10:19:04 0000 -------
Running autogen.sh before compiling now gives this error, but libplugin_common
is compiling now:

*** Warning: Linking the shared library libxmms-flac.la against the
*** static library ../../src/plugin_common/libplugin_common.a is not portable!

*** Warning: Linking the shared library libxmms-flac.la against the
*** static library ../../src/share/grabbag/libgrabbag.a is not portable!

*** Warning: Linking the shared library libxmms-flac.la against the
*** static library ../../src/share/gain_analysis/libgain_analysis.a is not
portable!

*** Warning: Linking the shared library libxmms-flac.la against the
*** static library ../../src/share/utf8/libutf8.a is not portable!

------- Comment #4 From Stefan Briesenick 2004-05-22 06:22:42 0000 -------
well, building works perfectly here (CFLAGS="-O2 -fPIC -pipe"), but have a
look:

/usr/lib/xmms/Input/libxmms-flac.a
/usr/lib/xmms/Input/libxmms-flac.la

huh? where's the .so and why do we have .a at all? Yes, USE="-static" was used!

------- Comment #5 From Karl-Johan Karlsson 2004-06-10 09:36:34 0000 -------
Applying the patches from Fedora mentioned at
<URL:http://sourceforge.net/tracker/index.php?func=detail&aid=913238&group_id=13478&atid=113478>
(and added as attachments here) solves this problem too.

------- Comment #6 From Karl-Johan Karlsson 2004-06-10 09:37:21 0000 -------
Created an attachment (id=33032) [details]
Patch 1 of 2 from Fedora

------- Comment #7 From Karl-Johan Karlsson 2004-06-10 09:37:56 0000 -------
Created an attachment (id=33033) [details]
Patch 2 of 2 from Fedora

------- Comment #8 From Karl-Johan Karlsson 2004-06-10 09:40:11 0000 -------
Created an attachment (id=33035) [details]
Ebuild using the Fedora patches

------- Comment #9 From Jeremy Huddleston (RETIRED) 2004-06-14 14:19:28 0000 -------
fixed in cvs. thanks.