Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 369973 - net-p2p/rtorrent - libsub_root.a(thread_base.o):thread_base.cc:function ThreadBase::start_thread(): error: undefined reference to 'pthread_create'
Summary: net-p2p/rtorrent - libsub_root.a(thread_base.o):thread_base.cc:function Threa...
Status: RESOLVED DUPLICATE of bug 364913
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jason Zaman
URL:
Whiteboard:
Keywords:
Depends on: 522706
Blocks: underlinking
  Show dependency tree
 
Reported: 2011-06-03 21:37 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2016-08-18 08:38 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Build log (rtorrent-0.8.7-r3:20110603-193845.log,33.41 KB, text/plain)
2011-06-03 21:37 UTC, Diego Elio Pettenò (RETIRED)
Details
proposed patch (rtorrent-0.8.7-pthread.patch,408 bytes, patch)
2011-09-06 05:13 UTC, Naohiro Aota
Details | Diff
ebuild patch (rtorrent-0.8.7.patch,956 bytes, patch)
2011-09-06 05:18 UTC, Naohiro Aota
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2011-06-03 21:37:09 UTC
Created attachment 275741 [details]
Build log

Hello there!

You're getting this bug because the package in Summary failed to build in my tinderbox using the gold link editor from binutils. Before closing the bug as INVALID let me explain why this is still important!

The gold link editor does not support underlinking of shared objects, which is something I have described in my blog post:

http://blog.flameeyes.eu/2010/11/26/it-s-not-all-gold-that-shines-why-underlinking-is-a-bad-thing

Even the basic link editor (ld.bfd) has an option to support this but it is a heck to enable and get passed, so linking with gold is simply quicker.

Fixing underlinking provides optimized --as-needed builds (because the "softer" version no longer need to recover libraries that are underlinked), so it is a Good Thing To Do.

Thank you very much for the attention!
Comment 1 Naohiro Aota gentoo-dev 2011-09-06 05:13:30 UTC
Created attachment 285685 [details, diff]
proposed patch

This patch detect pthread and set CXXFLAGS and LIBS accordingly. The patch depends on /usr/share/aclocal/ax_pthread.m4 from sys-devel/autoconf-archive
Comment 2 Naohiro Aota gentoo-dev 2011-09-06 05:18:27 UTC
Created attachment 285687 [details, diff]
ebuild patch
Comment 3 Pacho Ramos gentoo-dev 2016-08-18 08:38:39 UTC

*** This bug has been marked as a duplicate of bug 364913 ***