GNU bug report logs - #8559
Irix: linking error due to gnulib/pthread

Previous Next

Package: coreutils;

Reported by: "Gary V. Vaughan" <gary <at> gnu.org>

Date: Tue, 26 Apr 2011 16:50:03 UTC

Severity: normal

To reply to this bug, email your comments to 8559 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org:
bug#8559; Package coreutils. (Tue, 26 Apr 2011 16:50:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Gary V. Vaughan" <gary <at> gnu.org>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Tue, 26 Apr 2011 16:50:04 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "Gary V. Vaughan" <gary <at> gnu.org>
To: bug-gnulib <at> gnu.org
Cc: bug-coreutils <at> gnu.org
Subject: [Bug Report] gnulib pthread detection prevents coreutils sort from
	linking
Date: Tue, 26 Apr 2011 23:48:59 +0700
[Message part 1 (text/plain, inline)]
When building coreutils-8.11 on Irix 6.3 and Tru64 Unix 5.1, linking
of sort always fails because LIB_PTHREAD=''.  Looking through src/
Makefile.am shows that LIBMULTITHREAD='-lpthread' in both cases,
but sort links with LIB_PTHREAD which is empty, leaving pthread
symbols unresolved.

I'm guessing that the weak_threads test in gnulib pthread.m4 and
friends finds one of the weak pthreads symbols in libc, but sort
wants a symbol not provided by libc.

I have worked around this problem on Irix with:

  ./configure ac_cv_search_pthread_create=-lpthread <rest of args>

And on Tru64 with:

  ./configure CPPFLAGS=-D_REENTRANT ac_cv_search_pthread_create=-lpthread \
  <rest of args>

If I can help track down a better fix that allows pthreads to be
detected properly on these host for coreutils sort and friends,
please don't hesitate to ask.

Cheers,
-- 
Gary V. Vaughan (gary AT gnu DOT org)
[Message part 2 (application/pgp-signature, inline)]

Changed bug title to 'Irix: linking error due to gnulib/pthread' from '[Bug Report] gnulib pthread detection prevents coreutils sort from linking' Request was from Assaf Gordon <assafgordon <at> gmail.com> to control <at> debbugs.gnu.org. (Tue, 06 Nov 2018 17:59:01 GMT) Full text and rfc822 format available.

This bug report was last modified 6 years and 227 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.