Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 131896

Summary: sys-fs/e2fsprogs fails with LDFLAGS="-Wl,--as-needed"
Product: Gentoo Linux Reporter: Hanno Böck <hanno>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED INVALID    
Severity: normal CC: flameeyes, tom.gl
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 129413    
Attachments: files/e2fsprogs-1.38-as-needed.patch

Description Hanno Böck gentoo-dev 2006-05-01 06:15:56 UTC
Only happens if e2fsprogs is not already installed.

To reproduce:
emerge -C e2fsprogs
LDFLAGS="-Wl,--as-needed" emerge --oneshot e2fsprogs

        CC blkid.c
        LD blkid
/usr/lib/gcc/i686-pc-linux-gnu/4.1.0/../../../../i686-pc-linux-gnu/bin/ld: warning: libuuid.so.1, needed by ../lib/libblkid.so, not found (try using -rpath or -rpath-link)
../lib/libblkid.so: undefined reference to `uuid_unparse'
../lib/libblkid.so: undefined reference to `uuid_is_null'
Comment 1 TGL 2006-05-01 09:06:58 UTC
Created attachment 85940 [details, diff]
files/e2fsprogs-1.38-as-needed.patch

This patch fixed it for me.
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-05-07 21:11:24 UTC
Maybe instead of patching this time this can be injected from ebuild, as -rpath-link is GNU ld specific (most likely) so this is going to break stuff on non-GNU linkers, so it's hardly suitable for upstream.
Comment 3 SpanKY gentoo-dev 2006-05-07 21:17:56 UTC
fix it so it can be sent upstream then
Comment 4 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-05-07 21:30:08 UTC
Good call, I'm not sure how it can be fixed to be sent upstream, I'd have to check the other linkers what they do.
Comment 5 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-06-04 06:22:16 UTC
It's a binutils bug: http://farragut.flameeyes.is-a-geek.org/articles/2006/06/04/summing-up-the-binutils-trouble