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 319504 - configure fails with $LDFLAGS -Wl,--as-needed
configure fails with $LDFLAGS -Wl,--as-needed
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: general
2.4.x (obsolete)
Other Linux
: Normal normal
: ---
Assigned To: Karsten Bräckelmann
Evolution QA team
: 305660 396536 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-10-22 23:19 UTC by Karsten Bräckelmann
Modified: 2007-04-23 21:36 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch against configure.in (430 bytes, patch)
2005-10-22 23:22 UTC, Karsten Bräckelmann
committed Details | Review

Description Karsten Bräckelmann 2005-10-22 23:19:57 UTC
Running configure fails, if -Wl,--as-needed is set in $LD_FLAGS.

In particular the test if pilot-link handles UTF-8 conversion fails.
Comment 1 Karsten Bräckelmann 2005-10-22 23:22:53 UTC
Created attachment 53779 [details] [review]
patch against configure.in

Changing the order of $LFFLAGS fixes this.
Comment 2 Harish Krishnaswamy 2005-10-27 10:38:43 UTC
Can reproduce the problem on machines w/o pilot-link-devel packages. What is the
pilot-link-devel version on your system, if it is installed? Installing the
package lets configure to go through successfully.

I do not see how swapping the order of LD_FLAGS fixes the problem - perhaps we
should probe deeper for the actual issue.
Comment 3 Karsten Bräckelmann 2006-01-09 03:08:53 UTC
Going to dig deeper into this soon. Sorry for the delay.
Comment 4 Karsten Bräckelmann 2006-01-14 02:07:05 UTC
*** Bug 305660 has been marked as a duplicate of this bug. ***
Comment 5 André Klapper 2006-05-03 14:14:53 UTC
guenther: ping?
Comment 6 Karsten Bräckelmann 2006-07-23 14:17:57 UTC
pong.  Still on my ever growing todo list... :/
Comment 7 André Klapper 2006-09-29 20:19:37 UTC
guenther: ping, again. or shall i close this as incomplete, dude? ;-)
Comment 8 Karsten Bräckelmann 2006-10-13 23:21:51 UTC
Reassigning to me...
Comment 9 Gilles Dartiguelongue 2007-01-18 00:14:40 UTC
please take care of this bug, it's a really small fix, and I made a duplicate because there is so many open bugs about evolution that it is hard to find. (bug #396536)
Comment 10 Gilles Dartiguelongue 2007-01-18 00:15:05 UTC
*** Bug 396536 has been marked as a duplicate of this bug. ***
Comment 11 Mart Raudsepp 2007-02-08 08:26:22 UTC
Reopening as bug 396536 has an identical patch and this should be the proper way to fix this.
Reordering libraries in the link command fixes this because the ordering of arguments (object file listing, static libraries and shared libraries) matters to the linker, despite popular misconception that it doesn't.
See the section "Importance of linking order" in the following documentation for example: http://www.gentoo.org/proj/en/qa/asneeded.xml
Comment 12 Daniel Gryniewicz 2007-03-05 23:21:31 UTC
This patch has been applied to all 2.8.x and 2.9.x versions in Gentoo, and is working great.
Comment 13 Karsten Bräckelmann 2007-04-23 21:33:00 UTC
Thanks, guys, for the additional comments and info. :)
Comment 14 Karsten Bräckelmann 2007-04-23 21:36:13 UTC
Committed to trunk and gnome-2-18 branch.