Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 273018 - =media-video/gnome-mplayer-0.9.6 with USE="gnome" and LDFLAGS="-Wl,--as-needed" fails to compile
Summary: =media-video/gnome-mplayer-0.9.6 with USE="gnome" and LDFLAGS="-Wl,--as-neede...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords: REGRESSION
Depends on:
Blocks: as-needed
  Show dependency tree
 
Reported: 2009-06-07 11:32 UTC by BedOS_Gui
Modified: 2009-06-07 19:15 UTC (History)
3 users (show)

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


Attachments
emerge --info (emerge--info,11.95 KB, text/plain)
2009-06-07 11:33 UTC, BedOS_Gui
Details
Patch from the issue on c.g.c (gnome-mplayer-0.9.6-as-needed.patch,1016 bytes, patch)
2009-06-07 14:59 UTC, Sander Sweers
Details | Diff
Ebuild patch (gnome-mplayer-0.9.6.ebuild.patch,681 bytes, patch)
2009-06-07 15:01 UTC, Sander Sweers
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description BedOS_Gui 2009-06-07 11:32:53 UTC
When emerging gnome-mplayer-0.9.6, this error occurs :

x86_64-pc-linux-gnu-gcc -Wall -g -DGTK2_12_ENABLED -DGLIB2_14_ENABLED -DGIO_ENABLED -DHAVE_ASOUNDLIB -DHAVE_GCONF -DNOTIFY_ENABLED -DHAVE_MUSICBRAINZ -march=native -O2 -pipe -msse3 -O1 -Wl,--enable-new-dtags -Wl,--hash-style=gnu -Wl,-zdynsort -Wl,--sort-common -z combreloc -o gnome-mplayer gui.o playlist.o support.o mntent_compat.o main.o dbus-interface.o thread.o -pthread  -Wl,--as-needed /usr/lib64/libgconf-2.so /usr/lib64/libORBit-2.so /usr/lib64/libgthread-2.0.so /usr/lib64/libasound.so /usr/lib64/libnotify.so -L/usr/lib64 /usr/lib64/libgtk-x11-2.0.so /usr/lib64/libdbus-glib-1.so /usr/lib64/libgdk-x11-2.0.so /usr/lib64/libatk-1.0.so /usr/lib64/libgdk_pixbuf-2.0.so /usr/lib64/libgio-2.0.so /usr/lib64/libpangocairo-1.0.so /usr/lib64/libpangoft2-1.0.so /usr/lib64/libcairo.so /usr/lib64/libpixman-1.so /usr/lib64/libdirectfb.so /usr/lib64/libfusion.so /usr/lib64/libdirect.so /usr/lib64/libglitz-glx.so /usr/lib64/libGL.so /usr/lib64/libXmu.so /usr/lib64/libXt.so /usr/lib64/libSM.so -luuid /usr/lib64/libICE.so /usr/lib64/libXi.so /usr/lib64/libXext.so -lpthread /usr/lib64/libglitz.so /usr/lib64/libpng12.so /usr/lib64/libxcb-render-util.so /usr/lib64/libxcb-render.so /usr/lib64/libXrender.so /usr/lib64/libX11.so /usr/lib64/libxcb-xlib.so /usr/lib64/libxcb.so /usr/lib64/libXau.so /usr/lib64/libXdmcp.so /usr/lib64/libpango-1.0.so -lm /usr/lib64/libfontconfig.so /usr/lib64/libfreetype.so /usr/lib64/libgmodule-2.0.so /usr/lib64/libdbus-1.so /usr/lib64/libgobject-2.0.so /usr/lib64/libglib-2.0.so -lmusicbrainz3 /usr/lib64/libneon.so /usr/lib64/libsocks.so -lnsl -lcrypt -ldl /usr/lib64/libexpat.so /usr/lib64/libdiscid.so /usr/lib64/libcurl.so /usr/lib64/libcares.so /usr/lib64/libidn.so /usr/lib64/libssh2.so -lrt /usr/lib64/libgnutls.so /usr/lib64/libtasn1.so -lz /usr/lib64/libgcrypt.so /usr/lib64/libgpg-error.so libgmtk/.libs/libgmtk.a libgmlib/.libs/libgmlib.a  
libgmlib/.libs/libgmlib.a(libgmlib_la-gm_pref_store.o): In function `gm_pref_store_unset':
gm_pref_store.c:(.text+0x36): undefined reference to `gconf_client_unset'
libgmlib/.libs/libgmlib.a(libgmlib_la-gm_pref_store.o): In function `gm_pref_store_set_string':
gm_pref_store.c:(.text+0x8e): undefined reference to `gconf_client_unset'
gm_pref_store.c:(.text+0xd5): undefined reference to `gconf_client_set_string'
libgmlib/.libs/libgmlib.a(libgmlib_la-gm_pref_store.o): In function `gm_pref_store_get_string':
gm_pref_store.c:(.text+0x115): undefined reference to `gconf_client_get_string'
libgmlib/.libs/libgmlib.a(libgmlib_la-gm_pref_store.o): In function `gm_pref_store_set_float':
gm_pref_store.c:(.text+0x182): undefined reference to `gconf_client_set_float'
libgmlib/.libs/libgmlib.a(libgmlib_la-gm_pref_store.o): In function `gm_pref_store_get_float':
gm_pref_store.c:(.text+0x1d6): undefined reference to `gconf_client_get_float'
libgmlib/.libs/libgmlib.a(libgmlib_la-gm_pref_store.o): In function `gm_pref_store_set_int':
gm_pref_store.c:(.text+0x241): undefined reference to `gconf_client_set_int'
libgmlib/.libs/libgmlib.a(libgmlib_la-gm_pref_store.o): In function `gm_pref_store_get_int':
gm_pref_store.c:(.text+0x295): undefined reference to `gconf_client_get_int'
libgmlib/.libs/libgmlib.a(libgmlib_la-gm_pref_store.o): In function `gm_pref_store_get_int_with_default':
gm_pref_store.c:(.text+0x302): undefined reference to `gconf_client_get_without_default'
gm_pref_store.c:(.text+0x318): undefined reference to `gconf_client_get_int'
gm_pref_store.c:(.text+0x322): undefined reference to `gconf_value_free'
libgmlib/.libs/libgmlib.a(libgmlib_la-gm_pref_store.o): In function `gm_pref_store_set_boolean':
gm_pref_store.c:(.text+0x391): undefined reference to `gconf_client_set_bool'
libgmlib/.libs/libgmlib.a(libgmlib_la-gm_pref_store.o): In function `gm_pref_store_get_boolean_with_default':
gm_pref_store.c:(.text+0x3f2): undefined reference to `gconf_client_get_without_default'
gm_pref_store.c:(.text+0x408): undefined reference to `gconf_client_get_bool'
gm_pref_store.c:(.text+0x412): undefined reference to `gconf_value_free'
libgmlib/.libs/libgmlib.a(libgmlib_la-gm_pref_store.o): In function `gm_pref_store_get_boolean':
gm_pref_store.c:(.text+0x475): undefined reference to `gconf_client_get_bool'
libgmlib/.libs/libgmlib.a(libgmlib_la-gm_pref_store.o): In function `gm_pref_store_new':
gm_pref_store.c:(.text+0x53b): undefined reference to `gconf_client_get_default'
collect2: ld returned 1 exit status
make[3]: *** [gnome-mplayer] Erreur 1
make[3]: quittant le répertoire « /var/tmp/portage/media-video/gnome-mplayer-0.9.6/work/gnome-mplayer-0.9.6/src »
make[2]: *** [all-recursive] Erreur 1
make[2]: quittant le répertoire « /var/tmp/portage/media-video/gnome-mplayer-0.9.6/work/gnome-mplayer-0.9.6/src »
make[1]: *** [all-recursive] Erreur 1
make[1]: quittant le répertoire « /var/tmp/portage/media-video/gnome-mplayer-0.9.6/work/gnome-mplayer-0.9.6 »
make: *** [all] Erreur 2
 * 
 * ERROR: media-video/gnome-mplayer-0.9.6 failed.

Reproducible: Always




Without "gnome" USE flag, the compilation runs fine.

Emerge --info is following.
Comment 1 BedOS_Gui 2009-06-07 11:33:24 UTC
Created attachment 193785 [details]
emerge --info
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2009-06-07 11:43:02 UTC
I've had this same today, this is because of -Wl,--hash-style=gnu in LDFLAGS, try removing it.

I don't know what has changed from 0.9.5 to 0.9.6 but this is definately a REGRESSION.
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2009-06-07 11:52:40 UTC
Kevin, would you look at this, please?
Comment 4 Kevin DeKorte 2009-06-07 13:39:52 UTC
My compilation looks nothing like that. What options are you using to compile this code...

Does 
./configure --prefix=/usr 
make clean
make

build it correctly? It looks like something in the linker (perhaps the --as-needed) flag isn't working right?
Comment 5 Kevin DeKorte 2009-06-07 13:40:13 UTC
Also someone sent in a patch that should fix this.
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2009-06-07 13:54:45 UTC
(In reply to comment #5)
> Also someone sent in a patch that should fix this.
> 

Weird, I could have sworn it was the hash-style, but you are right, it's the -Wl,--as-needed

Dunno how I mistested it. :/

Could you attach the patch here please?
Comment 7 Samuli Suominen (RETIRED) gentoo-dev 2009-06-07 14:01:48 UTC
(In reply to comment #4)
> My compilation looks nothing like that. What options are you using to compile
> this code...
> 
> Does 
> ./configure --prefix=/usr 
> make clean
> make
> 
> build it correctly? It looks like something in the linker (perhaps the
> --as-needed) flag isn't working right?
> 

Also no, "make clean" doesn't help here. It's the -Wl,--as-needed.
Comment 8 Sander Sweers 2009-06-07 14:59:45 UTC
Created attachment 193805 [details, diff]
Patch from the issue on c.g.c

Link to the patch. http://code.google.com/p/gnome-mplayer/issues/detail?id=193
Comment 9 Sander Sweers 2009-06-07 15:01:25 UTC
Created attachment 193807 [details, diff]
Ebuild patch

I put in a WANT_AUTOMAKE as it was complaining that "WANT_AUTOMAKE latest" was not correct.
Comment 10 Sander Sweers 2009-06-07 15:02:17 UTC
Can someone add http://code.google.com/p/gnome-mplayer/issues/detail?id=193 to the url field?
Comment 11 Kevin DeKorte 2009-06-07 17:17:24 UTC
gnome-mplayer has been patched today to remove the need for libtool. So perhaps someone from the Gentoo team could check SVN. I had this code in freeze for a couple of weeks and the day after it gets released I get these bugs. So perhaps some involvement in the project by a someone using gentoo would help prevent issues like this.
Comment 12 Samuli Suominen (RETIRED) gentoo-dev 2009-06-07 19:15:07 UTC
(In reply to comment #9)
> Created an attachment (id=193807) [edit]
> Ebuild patch
> 
> I put in a WANT_AUTOMAKE as it was complaining that "WANT_AUTOMAKE latest" was
> not correct.
> 

Because latest is the default, it's not valid to add default's to the ebuilds. :)
Also because this pkg is using autoconf, I've added full eautoreconf instead of eautomake to avoid future cases where running only automake might trigger maintainer-mode..

Thanks guys, patch works and is applied in Portage.