After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 410806 - gnome-pilot doesn't compile when LDFLAGS="-Wl,--as-needed"
gnome-pilot doesn't compile when LDFLAGS="-Wl,--as-needed"
Status: RESOLVED DUPLICATE of bug 360191
Product: gnome-pilot
Classification: Other
Component: gpilotd
2.0.15
Other All
: Normal normal
: ---
Assigned To: gnome-pilot Maintainers
gnome-pilot Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-02-22 14:10 UTC by Gilles Dartiguelongue
Modified: 2007-02-22 16:26 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gnome-pilot-2.0.15-gpilotd-makefile.patch (389 bytes, patch)
2007-02-22 14:11 UTC, Gilles Dartiguelongue
none Details | Review

Description Gilles Dartiguelongue 2007-02-22 14:10:09 UTC
Please describe the problem:
libgpilotconduit fails to link properly when gnome-pilot is compiled with LDFLAGS="-Wl,--as-needed"

This bug was first reported in gentoo at http://bugs.gentoo.org/show_bug.cgi?id=88511

I'll attach the patch in a moment

Steps to reproduce:



Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Gilles Dartiguelongue 2007-02-22 14:11:20 UTC
Created attachment 83102 [details] [review]
gnome-pilot-2.0.15-gpilotd-makefile.patch

here is the fix.
Comment 2 Matt Davey 2007-02-22 14:21:25 UTC
Thanks for the patch. This particular bug has already been reported into our bug tracking system.  So far I've held off on applying this patch because of the apparently experimental nature of --as-needed.  However, after looking at the patch, it seems that the patch merely facilitates --as-needed rather than enabling it, so I guess there shouldn't be any risk in applying it.

*** This bug has been marked as a duplicate of 360191 ***
Comment 3 Gilles Dartiguelongue 2007-02-22 16:25:28 UTC
sorry for duplicating the bug, I should've appended ALL to my search terms :)

FYI, I think (but I might be wrong) that with binutils-2.17, --as-needed is considered "stable". In gentoo, --as-needed bugs cannot be closed until a proper fix is found since a year or so (don't remember exactly). --as-needed is a linker option, it doesn't need anything in your code to be supported apart from proper linking instructions.

I think this patch is the smallest fix possible (in the sense that you can fix the problem in other ways but this one requires the smallest possible changes). 

anyway, thanks for applying
Comment 4 Gilles Dartiguelongue 2007-02-22 16:26:43 UTC
erm, btw, the duplicated bug number is of by one (should be 360190)