Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 349635 - sys-devel/binutils-2.21: linker failure when attempting to link -ldl
Summary: sys-devel/binutils-2.21: linker failure when attempting to link -ldl
Status: RESOLVED DUPLICATE of bug 347931
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: x86 FreeBSD
: High major (vote)
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-24 19:00 UTC by Richard
Modified: 2011-05-22 05:48 UTC (History)
2 users (show)

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


Attachments
build.log (309397.txt,247.23 KB, text/plain)
2010-12-24 21:15 UTC, Richard
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Richard 2010-12-24 19:00:47 UTC
The sys-devel/binutils-2.21 ebuild does not patch out the build system when building on Gentoo/FreeBSD, which means that it will attempt to link to the non-existant libdl.so.

Reproducible: Always

Steps to Reproduce:
1. emerge -1v =sys-devel/binutils-2.21
Actual Results:  
http://paste.pocoo.org/show/309397/

Expected Results:  
It should have worked.

A workaround for this is to mask sys-devel/binutils-2.21. The ebuild for sys-devel/binutils-2.20.1-r1 works on Gentoo/FreeBSD.
Comment 1 Rafał Mużyło 2010-12-24 19:43:53 UTC
First of all, attach instead of using a pastebin.
Now, while I don't have FreeBSD and it may not be related to this particular problem, I've noticed an interesting line:
find: -printf: unknown option
Even if irrelevant here, it still may need to be addressed.
Comment 2 Richard 2010-12-24 21:15:38 UTC
Created attachment 257988 [details]
build.log

(In reply to comment #1)
> First of all, attach instead of using a pastebin.
> Now, while I don't have FreeBSD and it may not be related to this particular
> problem, I've noticed an interesting line:
> find: -printf: unknown option
> Even if irrelevant here, it still may need to be addressed.
> 

I have made several unsuccessful attempts at installing Gentoo/FreeBSD in a virtual machine over the past few days. This time I managed to get to the point of rebuilding the tool chain and I encountered this issue. The problem is that the BSD libraries put the libdl.so functions into libc.so and the GNU libraries expect those functions to be in libdl.so, so they try to link libdl.so and this linker error occurs.

Anyway, I have attached the build log from the pastebin.
Comment 3 Fabian Groffen gentoo-dev 2011-05-01 19:43:17 UTC
I can confirm this issue.  Hints are that --enable-plugins is the culprit.

I tried 2.21.51.0.6.
Comment 4 Fabian Groffen gentoo-dev 2011-05-01 19:45:47 UTC
@FreeBSD team: I think this bug is a dup of bug #347931
Comment 5 Naohiro Aota gentoo-dev 2011-05-22 05:48:56 UTC

*** This bug has been marked as a duplicate of bug 347931 ***