Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 220351 - net-misc/whois-4.7.26 fails to compile with "--as-needed" LDFLAG
Summary: net-misc/whois-4.7.26 fails to compile with "--as-needed" LDFLAG
Status: RESOLVED FIXED
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
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: as-needed
  Show dependency tree
 
Reported: 2008-05-05 12:09 UTC by Lars Wendler (Polynomial-C) (RETIRED)
Modified: 2008-05-05 13:56 UTC (History)
1 user (show)

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


Attachments
emerge --info (emerge--info.txt,3.37 KB, text/plain)
2008-05-05 12:09 UTC, Lars Wendler (Polynomial-C) (RETIRED)
Details
patch to fix ld ordering (patch,506 bytes, patch)
2008-05-05 12:41 UTC, Rémi Cardona (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2008-05-05 12:09:02 UTC
Hi,

${Summary}
Here's the output:

i686-pc-linux-gnu-gcc -march=athlon-xp -mtune=athlon-xp -O2 -pipe -fomit-frame-pointer -finline-functions -DHAVE_LIBIDN -march=athlon-xp -mtune=athlon-xp -O2 -pipe -fomit-frame-pointer -finline-functions -c utils.c
i686-pc-linux-gnu-gcc -Wl,--as-needed -lidn -o whois whois.o utils.o
whois.o: In function `normalize_domain':
whois.c:(.text+0x5e0): undefined reference to `idna_to_ascii_lz'
whois.c:(.text+0x67e): undefined reference to `idna_to_ascii_lz'
collect2: ld returned 1 exit status
make: *** [whois] Error 1

removing "-Wl,--as-needed" from LDFLAGS makes whois-4.7.26 compile without problems.

Cheers
Poly-C

Reproducible: Always

Steps to Reproduce:
1. echo 'LDFLAGS="-Wl,--as-needed"' >> /etc/make.conf
2. emerge =whois-4.7.26
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2008-05-05 12:09:59 UTC
Created attachment 151903 [details]
emerge --info
Comment 2 Rémi Cardona (RETIRED) gentoo-dev 2008-05-05 12:41:14 UTC
Created attachment 151905 [details, diff]
patch to fix ld ordering

I have the patch in my cvs checkout, ready to be committed. Can I commit?
Comment 3 SpanKY gentoo-dev 2008-05-05 13:29:18 UTC
if you e-mail it upstream as you commit it, then yes, please do ;)
Comment 4 Rémi Cardona (RETIRED) gentoo-dev 2008-05-05 13:56:49 UTC
(In reply to comment #3)
> if you e-mail it upstream as you commit it, then yes, please do ;)

Bleh, slacker ;)

Patch committed without revbump and mail sent to md@linux.it with system-base as CC.