[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/14773] ld --as-needed reports undefined reference in the wrong l
From: |
ats-sourceware at offog dot org |
Subject: |
[Bug ld/14773] ld --as-needed reports undefined reference in the wrong library |
Date: |
Thu, 01 Nov 2012 09:47:28 +0000 |
http://sourceware.org/bugzilla/show_bug.cgi?id=14773
--- Comment #3 from Adam Sampson <ats-sourceware at offog dot org> 2012-11-01
09:47:28 UTC ---
Thanks very much for your explanation -- I understand what ld's doing better
now.
Yes, sorry, I'm not saying that it's wrong to give an error -- I'm saying that
the error message is unhelpful in terms of identifying the cause of the
problem.
>From my perspective, I've done everything necessary for libshared.so's
reference to XFillRectangle to be resolved -- if I wasn't using libstatic.a,
it'd work fine -- but ld is effectively indicating that the fault is with
libshared.so. So I guess my wishlist item is for it to report all the places
where an undefined reference has been seen, rather than just the first.
"This doesn't happen if ld has already decided the library isn't needed" is a
bit surprising, but it makes sense, since otherwise you wouldn't get an error
in this case. Would it be worth mentioning this in the documentation for
--as-needed?
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.