xca-0.9.0 fails because of underlinking (GNU gold linker)
Brought to you by:
chris2511
Original bug: http://bugs.gentoo.org/show_bug.cgi?id=371887
Build log: http://bugs.gentoo.org/attachment.cgi?id=277205
With GNU gold linker, and propably also with normal GNU linker using -Wl,--no-add-needed (untested), xca-0.9.0 fails to link with undefined symbols.
The patch is simple. Just add search_lib for QtCore in configure file as well.
--- configure
+++ configure
@@ -121,6 +121,7 @@
######################### QT
subdirs="/qt /qt4"
search_includes QtCore/QObject || err "The QT Library headerfiles were not found. Set QTDIR appropriately."
+search_lib QtCore4 QtCore || err "The QT library was not found."
search_lib QtGui4 QtGui || err "The QT library was not found."
search_lib ltdl || err "Libtool ltdl not found."
search_lib c_r || true
Thanks for the report. I used "-Wl,--no-add-needed" to reproduce this issue, and kept it in the CFLAGS.
Fixed in:
http://xca.git.sourceforge.net/git/gitweb.cgi?p=xca/xca;a=commit;h=6b114e81ef5da8a00bed14de72c91d43e532d158
You may try the current snapshot whether it builds in your environment:
http://xca.git.sourceforge.net/git/gitweb.cgi?p=xca/xca;a=snapshot;h=6b114e81ef5da8a00bed14de72c91d43e532d158;sf=tgz
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).