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.
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.
Created attachment 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.
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!
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!
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.
Created attachment 33032 [details, diff] Patch 1 of 2 from Fedora
Created attachment 33033 [details, diff] Patch 2 of 2 from Fedora
Created attachment 33035 [details] Ebuild using the Fedora patches
fixed in cvs. thanks.