GNU bug report logs - #9852
24.0.90; pthread_sigmask() check is bogus when HAVE_PTHREAD is defined

Previous Next

Package: emacs;

Reported by: Nali Toja <nalitoja <at> gmail.com>

Date: Sun, 23 Oct 2011 21:27:01 UTC

Severity: normal

Found in version 24.0.90

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 9852 in the body.
You can then email your comments to 9852 AT debbugs.gnu.org in the normal way.

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

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


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#9852; Package emacs. (Sun, 23 Oct 2011 21:27:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Nali Toja <nalitoja <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 23 Oct 2011 21:27:02 GMT) Full text and rfc822 format available.

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

From: Nali Toja <nalitoja <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.0.90; pthread_sigmask() check is bogus when HAVE_PTHREAD is defined
Date: Sun, 23 Oct 2011 21:24:52 +0000
emacs configure detects (via gnulib) pthread_sigmask even when there is
a stub in libc, marks it broken with

  PTHREAD_SIGMASK_INEFFECTIVE
  PTHREAD_SIGMASK_UNBLOCK_BUG

and links with LIB_PTHREAD during build. What if the version in
LIB_PTHREAD is not broken? gnulib would still wrap it with code
that may not work as expected.
  
forwarding http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/161911
it adds -lpthread to LDFLAGS as a workaround
--
In GNU Emacs 24.0.90.9 (amd64-unknown-freebsd9.9)
 of 2011-10-23 on hidden
configured using `configure  '--without-x'




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#9852; Package emacs. (Mon, 24 Oct 2011 02:47:01 GMT) Full text and rfc822 format available.

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

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Nali Toja <nalitoja <at> gmail.com>
Cc: 9852 <at> debbugs.gnu.org
Subject: Re: pthread_sigmask() check is bogus when HAVE_PTHREAD is defined
Date: Sun, 23 Oct 2011 19:44:46 -0700
Thanks for reporting that.  I think the bug is that configure.in is
invoking AC_CHECK_LIB in such a way that LIBS is not affected.
This would be a problem regardless of the FreeBSD issue, but
I expect it's causing the FreeBSD issue as well.  I committed a fix
into the trunk as bzr 106173; could you please give it a try
and let us know how it goes?  Thanks.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#9852; Package emacs. (Mon, 24 Oct 2011 03:33:01 GMT) Full text and rfc822 format available.

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

From: Nali Toja <nalitoja <at> gmail.com>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 9852 <at> debbugs.gnu.org
Subject: Re: pthread_sigmask() check is bogus when HAVE_PTHREAD is defined
Date: Mon, 24 Oct 2011 03:30:31 +0000
Paul Eggert <eggert <at> cs.ucla.edu> writes:

> Thanks for reporting that.  I think the bug is that configure.in is
> invoking AC_CHECK_LIB in such a way that LIBS is not affected.
> This would be a problem regardless of the FreeBSD issue, but
> I expect it's causing the FreeBSD issue as well.  I committed a fix
> into the trunk as bzr 106173; could you please give it a try
> and let us know how it goes?  Thanks.

Yep, 106173 fixes the issue. Both the FreeBSD port's snapshot with the
patch from the commit and emacs trunk detect pthread_sigmask() correctly.




Reply sent to Paul Eggert <eggert <at> cs.ucla.edu>:
You have taken responsibility. (Mon, 24 Oct 2011 03:36:02 GMT) Full text and rfc822 format available.

Notification sent to Nali Toja <nalitoja <at> gmail.com>:
bug acknowledged by developer. (Mon, 24 Oct 2011 03:36:02 GMT) Full text and rfc822 format available.

Message #16 received at 9852-done <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Nali Toja <nalitoja <at> gmail.com>
Cc: 9852-done <at> debbugs.gnu.org
Subject: Re: pthread_sigmask() check is bogus when HAVE_PTHREAD is defined
Date: Sun, 23 Oct 2011 20:33:32 -0700
Thanks for checking; I'm marking this as done.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 21 Nov 2011 12:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 13 years and 220 days ago.

Previous Next


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