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 618979 - [patch] balsa-2.4.7 fails to build with --as-needed
[patch] balsa-2.4.7 fails to build with --as-needed
Status: RESOLVED FIXED
Product: balsa
Classification: Other
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Balsa Maintainers
Balsa Maintainers
Depends on:
Blocks:
 
 
Reported: 2010-05-18 12:58 UTC by Kacper Kowalik
Modified: 2011-02-27 15:44 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
adding missing dependency on gthread-2.0 (216 bytes, patch)
2010-05-18 12:58 UTC, Kacper Kowalik
none Details | Review

Description Kacper Kowalik 2010-05-18 12:58:23 UTC
Created attachment 161351 [details] [review]
adding missing dependency on gthread-2.0

Steps to reproduce:
1. export LDFLAGS="-Wl,--as-needed"
2. configure --enable-threads --with-unique --without-canberra --without-gnome --without-gtksourceview --with-gtkspell --without-gss --without-ldap --without-libnotify --without-nm --without-rubrica --without-sqlite --with-ssl --without-compface
3. make

Error:
  CCLD   balsa
main.o: In function `main':
main.c:(.text+0xac3): undefined reference to `g_thread_init'
collect2: ld returned 1 exit status

Downstream bug: http://bugs.gentoo.org/show_bug.cgi?id=320349

Best regards,
Kacper Kowalik
Comment 1 Peter Bloomfield 2010-05-19 00:54:44 UTC
Hi Kacper!

Thanks for the report.  I've no objection to the patch, as it doesn't seem to break anything.  But I couldn't reproduce the error, with the precise steps you gave.  Is it dependent on specific versions of gcc or glib?

Peter
Comment 2 Kacper Kowalik 2010-05-19 06:00:49 UTC
(In reply to comment #1)
> Hi Kacper!
> 
> Thanks for the report.  I've no objection to the patch, as it doesn't seem to
> break anything.  But I couldn't reproduce the error, with the precise steps you
> gave.  Is it dependent on specific versions of gcc or glib?
> 
> Peter
No it's not dependant on version of gcc nor glib. Problems in reproducibility may arise from the fact that on non "as-needed" system gthreads might be already brought in by some package from balsa's dependency set.
Best regards,
Kacper Kowalik
Comment 3 Peter Bloomfield 2010-05-21 01:01:22 UTC
OK--your patch has been pushed to git master, along with another change adding libz to the linker command.

Thanks again for the report and the patch!

Peter
Comment 4 Gilles Dartiguelongue 2011-02-27 15:44:32 UTC
as gentoo maintainer, confirming this now works fine in 2.4.8 and 2.4.9. Thanks for your work.