From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#10201: emacs-24.0.92 problem on MirBSD 10 Date: Fri, 02 Dec 2011 21:44:56 -0800 Organization: UCLA Computer Science Department Message-ID: <4ED9B758.7080903@cs.ucla.edu> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1322891158 7102 80.91.229.12 (3 Dec 2011 05:45:58 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 3 Dec 2011 05:45:58 +0000 (UTC) Cc: "Nelson H. F. Beebe" To: 10201@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Dec 03 06:45:51 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RWiQ2-0003t1-3r for geb-bug-gnu-emacs@m.gmane.org; Sat, 03 Dec 2011 06:45:50 +0100 Original-Received: from localhost ([::1]:59658 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RWiQ0-0000Ef-Pq for geb-bug-gnu-emacs@m.gmane.org; Sat, 03 Dec 2011 00:45:48 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:37889) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RWiPx-0000EY-6c for bug-gnu-emacs@gnu.org; Sat, 03 Dec 2011 00:45:46 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RWiPw-0000xa-3I for bug-gnu-emacs@gnu.org; Sat, 03 Dec 2011 00:45:45 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49854) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RWiPv-0000xU-UU for bug-gnu-emacs@gnu.org; Sat, 03 Dec 2011 00:45:44 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RWiQE-000634-5L for bug-gnu-emacs@gnu.org; Sat, 03 Dec 2011 00:46:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 03 Dec 2011 05:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 10201 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.132289113023204 (code B ref -1); Sat, 03 Dec 2011 05:46:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 3 Dec 2011 05:45:30 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RWiPg-00062C-Ob for submit@debbugs.gnu.org; Sat, 03 Dec 2011 00:45:29 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RWiPd-000622-3G for submit@debbugs.gnu.org; Sat, 03 Dec 2011 00:45:27 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RWiPJ-0000sl-1D for submit@debbugs.gnu.org; Sat, 03 Dec 2011 00:45:06 -0500 Original-Received: from lists.gnu.org ([140.186.70.17]:46783) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RWiPI-0000sN-UY for submit@debbugs.gnu.org; Sat, 03 Dec 2011 00:45:04 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:37842) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RWiPH-00009h-LW for bug-gnu-emacs@gnu.org; Sat, 03 Dec 2011 00:45:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RWiPF-0000rT-9R for bug-gnu-emacs@gnu.org; Sat, 03 Dec 2011 00:45:03 -0500 Original-Received: from smtp.cs.ucla.edu ([131.179.128.62]:57012) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RWiPE-0000rN-V3 for bug-gnu-emacs@gnu.org; Sat, 03 Dec 2011 00:45:01 -0500 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 8651639E800A; Fri, 2 Dec 2011 21:44:58 -0800 (PST) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Original-Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nmlQP+-zD0c9; Fri, 2 Dec 2011 21:44:55 -0800 (PST) Original-Received: from [192.168.1.10] (pool-71-189-109-235.lsanca.fios.verizon.net [71.189.109.235]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 9125F39E8006; Fri, 2 Dec 2011 21:44:55 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux i686; rv:8.0) Gecko/20111124 Thunderbird/8.0 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 03 Dec 2011 00:46:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:54638 Archived-At: [Following up on bug-gnu-emacs, so that this gets a Bug#.] In on 12/02/11 18:01, Nelson H. F. Beebe wrote: > 599c599 > < #define HAVE_PTHREAD_SIGMASK 1 > --- > /* #define HAVE_PTHREAD_SIGMASK 1 */ Thanks for the bug report. Why was this HAVE_PTHREAD_SIGMASK patch needed? Your email doesn't say. MirBSD has pthread_sigmask, according to , so pthread_sigmask should work. > This resulted in link failure becaue gmalloc.c assumes that > pthread_atfork() is available when HAVE_PTHREAD is defined,=20 > but it is not in the MirBSD /usr/lib/libpthread.a library: Thanks. Does the following patch fix things for you? If you don't have the autotools installed you can simulate it by substituting "pthread_atfork" for every instance of "pthread_self" in the file "configure". =3D=3D=3D modified file 'ChangeLog' --- ChangeLog 2011-12-03 04:06:45 +0000 +++ ChangeLog 2011-12-03 05:37:32 +0000 @@ -1,5 +1,10 @@ 2011-12-03 Paul Eggert =20 + * configure.in (HAVE_PTHREAD): Check for pthread_atfork + if linking to gmalloc.c. This should prevents a build failure on + MirBSD 10 reported by Nelson H. F. Beebe in + . + * .bzrignore: Add config.cache. =20 2011-11-27 Jan Dj=C3=A4rv =3D=3D=3D modified file 'configure.in' --- configure.in 2011-11-30 16:23:05 +0000 +++ configure.in 2011-12-03 05:18:33 +0000 @@ -1717,7 +1717,15 @@ LIB_PTHREAD=3D AC_CHECK_HEADERS(pthread.h) if test "$ac_cv_header_pthread_h"; then - AC_CHECK_LIB(pthread, pthread_self, HAVE_PTHREAD=3Dyes) + dnl gmalloc.c uses pthread_atfork, which is not available on older-sty= le + dnl hosts such as MirBSD 10, so test for pthread_atfork instead of mer= ely + dnl testing for pthread_self if Emacs uses gmalloc.c. + if test "$GMALLOC_OBJ" =3D gmalloc.o; then + emacs_pthread_function=3Dpthread_atfork + else + emacs_pthread_function=3Dpthread_self + fi + AC_CHECK_LIB(pthread, $emacs_pthread_function, HAVE_PTHREAD=3Dyes) fi if test "$HAVE_PTHREAD" =3D yes; then case "${canonical}" in