From unknown Mon Aug 18 17:55:35 2025 X-Loop: help-debbugs@gnu.org Subject: bug#10201: emacs-24.0.92 problem on MirBSD 10 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: To: 10201@debbugs.gnu.org Cc: "Nelson H. F. Beebe" X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.132289113023204 (code B ref -1); Sat, 03 Dec 2011 05:46:01 +0000 Received: (at submit) by debbugs.gnu.org; 3 Dec 2011 05:45:30 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=unavailable version=3.3.1 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 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 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 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 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 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) 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) Message-ID: <4ED9B758.7080903@cs.ucla.edu> Date: Fri, 02 Dec 2011 21:44:56 -0800 From: Paul Eggert Organization: UCLA Computer Science Department User-Agent: Mozilla/5.0 (X11; Linux i686; rv:8.0) Gecko/20111124 Thunderbird/8.0 MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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-Received-From: 140.186.70.17 X-Spam-Score: -4.6 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.6 (----) [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 From unknown Mon Aug 18 17:55:35 2025 X-Loop: help-debbugs@gnu.org Subject: bug#10201: emacs-24.0.92 problem on MirBSD 10 Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Dec 2011 23:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10201 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch moreinfo To: Paul Eggert Cc: 10201@debbugs.gnu.org, "Nelson H. F. Beebe" Received: via spool by 10201-submit@debbugs.gnu.org id=B10201.13240794666535 (code B ref 10201); Fri, 16 Dec 2011 23:52:01 +0000 Received: (at 10201) by debbugs.gnu.org; 16 Dec 2011 23:51:06 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RbhYQ-0001hM-HI for submit@debbugs.gnu.org; Fri, 16 Dec 2011 18:51:06 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RbhYO-0001hF-43 for 10201@debbugs.gnu.org; Fri, 16 Dec 2011 18:51:04 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RbhWn-0001yf-NI; Fri, 16 Dec 2011 18:49:25 -0500 From: Glenn Morris References: <4ED9B758.7080903@cs.ucla.edu> X-Spook: dictionary colonel radar Serbian cybercash assassination X-Ran: mFs`.4e]Z>*E?>q;mv\QHPY~ (Paul Eggert's message of "Fri, 02 Dec 2011 21:44:56 -0800") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.4 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.4 (------) Paul Eggert wrote: > Does the following patch fix things for you? The OP tends not to reply to requests for more information. If you think your patch fixes the issue, I suggest installing it and closing this report. From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 16 18:51:27 2011 Received: (at control) by debbugs.gnu.org; 16 Dec 2011 23:51:27 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RbhYk-0001hr-QO for submit@debbugs.gnu.org; Fri, 16 Dec 2011 18:51:27 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RbhYj-0001hl-AG for control@debbugs.gnu.org; Fri, 16 Dec 2011 18:51:25 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RbhX9-0001zk-AP for control@debbugs.gnu.org; Fri, 16 Dec 2011 18:49:47 -0500 Date: Fri, 16 Dec 2011 18:49:47 -0500 Message-Id: Subject: control message for bug 10201 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -6.4 (------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.4 (------) submitter 10201 beebe@math.utah.edu From unknown Mon Aug 18 17:55:35 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: beebe@math.utah.edu Subject: bug#10201: closed (Re: bug#10201: emacs-24.0.92 problem on MirBSD 10) Message-ID: References: <4EEBE80D.2070109@cs.ucla.edu> <4ED9B758.7080903@cs.ucla.edu> X-Gnu-PR-Message: they-closed 10201 X-Gnu-PR-Package: emacs X-Gnu-PR-Keywords: patch moreinfo Reply-To: 10201@debbugs.gnu.org Date: Sat, 17 Dec 2011 00:56:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1324083363-15233-1" This is a multi-part message in MIME format... ------------=_1324083363-15233-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #10201: emacs-24.0.92 problem on MirBSD 10 which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 10201@debbugs.gnu.org. --=20 10201: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D10201 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1324083363-15233-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 10201-done) by debbugs.gnu.org; 17 Dec 2011 00:55:14 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RbiYS-0003wk-SG for submit@debbugs.gnu.org; Fri, 16 Dec 2011 19:55:13 -0500 Received: from smtp.cs.ucla.edu ([131.179.128.62]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RbiYQ-0003wc-4d for 10201-done@debbugs.gnu.org; Fri, 16 Dec 2011 19:55:11 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 44FB3A60001; Fri, 16 Dec 2011 16:53:31 -0800 (PST) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu 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 Cf1iR9jsXsnf; Fri, 16 Dec 2011 16:53:31 -0800 (PST) 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 E1FFC39E8010; Fri, 16 Dec 2011 16:53:30 -0800 (PST) Message-ID: <4EEBE80D.2070109@cs.ucla.edu> Date: Fri, 16 Dec 2011 16:53:33 -0800 From: Paul Eggert Organization: UCLA Computer Science Department User-Agent: Mozilla/5.0 (X11; Linux i686; rv:8.0) Gecko/20111124 Thunderbird/8.0 MIME-Version: 1.0 To: Glenn Morris Subject: Re: bug#10201: emacs-24.0.92 problem on MirBSD 10 References: <4ED9B758.7080903@cs.ucla.edu> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: 10201-done Cc: "Nelson H. F. Beebe" , 10201-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.9 (--) On 12/16/11 15:49, Glenn Morris wrote: > If you think your patch fixes the issue, I suggest installing it and > closing this report. Thanks, I did that, as bzr 106688. ------------=_1324083363-15233-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 3 Dec 2011 05:45:30 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=unavailable version=3.3.1 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 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 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 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 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 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) 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) Message-ID: <4ED9B758.7080903@cs.ucla.edu> Date: Fri, 02 Dec 2011 21:44:56 -0800 From: Paul Eggert Organization: UCLA Computer Science Department User-Agent: Mozilla/5.0 (X11; Linux i686; rv:8.0) Gecko/20111124 Thunderbird/8.0 MIME-Version: 1.0 To: bug-gnu-emacs@gnu.org Subject: Re: emacs-24.0.92 problem on MirBSD 10 References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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-Received-From: 140.186.70.17 X-Spam-Score: -4.6 (----) X-Debbugs-Envelope-To: submit Cc: "Nelson H. F. Beebe" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.6 (----) [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 ------------=_1324083363-15233-1--