Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 131896 - sys-fs/e2fsprogs fails with LDFLAGS="-Wl,--as-needed"
Summary: sys-fs/e2fsprogs fails with LDFLAGS="-Wl,--as-needed"
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
Depends on:
Blocks: as-needed
  Show dependency tree
Reported: 2006-05-01 06:15 UTC by Hanno Böck
Modified: 2006-06-04 06:22 UTC (History)
2 users (show)

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

files/e2fsprogs-1.38-as-needed.patch (e2fsprogs-1.38-as-needed.patch,298 bytes, patch)
2006-05-01 09:06 UTC, TGL
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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:, needed by ../lib/, not found (try using -rpath or -rpath-link)
../lib/ undefined reference to `uuid_unparse'
../lib/ undefined reference to `uuid_is_null'
Comment 1 TGL 2006-05-01 09:06:58 UTC
Created attachment 85940 [details, diff]

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: