Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 595098

Summary: dev-perl/XML-LibXML-2.12.800: missing -lpthread (or -pthread) while linking shared library
Product: Gentoo Linux Reporter: Michał Górny <mgorny>
Component: Current packagesAssignee: Gentoo Perl team <perl>
Status: RESOLVED FIXED    
Severity: normal CC: kentnl
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://rt.cpan.org/Ticket/Display.html?id=119715
Whiteboard: tracking upstream
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 593674    
Attachments: dev-perl:XML-LibXML-2.12.800:20160925-123556.log

Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-09-25 13:44:49 UTC
Created attachment 447848 [details]
dev-perl:XML-LibXML-2.12.800:20160925-123556.log

When building with -Wl,-z,defs:

LD_RUN_PATH="/usr/lib64:/lib64" x86_64-pc-linux-gnu-gcc-5.4.0  -shared -march=k8-sse3 -mcx16 -msahf --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -O2 -pipe -frecord-gcc-switches -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu Av_CharPtrPtr.o Devel.o LibXML.o dom.o perl-libxml-mm.o perl-libxml-sax.o xpath.o -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,-z,defs -Wl,--no-allow-shlib-undefined -o blib/arch/auto/XML/LibXML/LibXML.so 	\
   -lxml2 -lz -llzma -licui18n -licuuc -licudata -lm -ldl  	\
  
/usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: Av_CharPtrPtr.o: undefined reference to symbol 'pthread_getspecific@@GLIBC_2.2.5'
/lib64/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status


While this isn't strictly required, it would be nice not to rely on some other executable linking in libpthread implicitly. dev-perl/XML-LibXSLT seems to get this right.
Comment 1 Andreas K. Hüttel archtester gentoo-dev 2017-01-05 20:20:57 UTC
Upstream bug created, see $URL
Comment 2 Larry the Git Cow gentoo-dev 2019-07-17 11:21:47 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7f7c9e9e80b830a7a5f30ffc9fa5ef3215e92c5a

commit 7f7c9e9e80b830a7a5f30ffc9fa5ef3215e92c5a
Author:     Kent Fredric <kentnl@gentoo.org>
AuthorDate: 2019-07-17 11:20:52 +0000
Commit:     Kent Fredric <kentnl@gentoo.org>
CommitDate: 2019-07-17 11:21:24 +0000

    dev-perl/XML-LibXML: Bump to version 2.20.100 re bug #595098
    
    - Bumping because upstream have done some splitting, and now deem
      the problems in bug #595098 to be potentially a problem in one of
      these new dependencies. Whether or not its actually fixed is to be
      seen, but if it isn't, it has to be updated before they'll look at it.
    
    Upstream:
    - Mark as working with libxml2 2.9.9 and lower
    - Allow LibParser to be provided for all methods
    - Portability fixes
    - Convert to Alien::Libxml2
    
    Keywords:
    - Due to new dependencies, all the following keywords are dropped:
      alpha, {amd64,x86}-{fbsd,linux}, arm{,64}, hppa ia64, m68k-mint, mips
      ppc{,-aix,-macos,64}, riscv s390, sparc{,-solaris,64-solaris}
      {x64,x86}-{macos,solaris}
    
    Bug: https://bugs.gentoo.org/595098
    Bug: https://rt.cpan.org/Ticket/Display.html?id=119715
    Package-Manager: Portage-2.3.66, Repoman-2.3.16
    Signed-off-by: Kent Fredric <kentnl@gentoo.org>

 dev-perl/XML-LibXML/Manifest                   |  1 +
 dev-perl/XML-LibXML/XML-LibXML-2.20.100.ebuild | 78 ++++++++++++++++++++++++++
 2 files changed, 79 insertions(+)
Comment 3 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2019-07-17 11:22:34 UTC
^ please re-test with latest version, thanks. Then maybe we can go harass upstream again.
Comment 4 Andreas K. Hüttel archtester gentoo-dev 2019-10-25 11:58:36 UTC
(In reply to Kent Fredric (IRC: kent\n) from comment #3)
> ^ please re-test with latest version, thanks. Then maybe we can go harass
> upstream again.

(and since it's likely fixed...)