From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 08 11:46:34 2014 Received: (at submit) by debbugs.gnu.org; 8 Oct 2014 15:46:34 +0000 Received: from localhost ([127.0.0.1]:38193 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XbtRh-0003gP-Ph for submit@debbugs.gnu.org; Wed, 08 Oct 2014 11:46:34 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:43110) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XbtRf-0003gG-Ld for submit@debbugs.gnu.org; Wed, 08 Oct 2014 11:46:32 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1XbtRf-0000b0-8l for submit@debbugs.gnu.org; Wed, 08 Oct 2014 11:46:31 -0400 From: "Nelson H. F. Beebe" To: submit@debbugs.gnu.org Subject: emacs-24.3.94: Debian GNU/kFreeBSD 7 (wheezy) build issue Date: Wed, 8 Oct 2014 05:53:10 -0600 (MDT) Lines: 42 X-From-Line: emacs-devel-bounces+rgm=gnu.org@gnu.org Wed Oct 8 08:50:59 2014 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43149) by fencepost.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1Xbqhn-00087n-Lr for rgm@gnu.org; Wed, 08 Oct 2014 08:50:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xbqhi-0000uV-DP for rgm@gnu.org; Wed, 08 Oct 2014 08:50:59 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:45423) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xbqhi-0000uR-BU for rgm@gnu.org; Wed, 08 Oct 2014 08:50:54 -0400 Received: from localhost ([::1]:36017 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xbqhi-0008FK-9v for rgm@gnu.org; Wed, 08 Oct 2014 08:50:54 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46984) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XbqhL-0008Da-PP for emacs-devel@gnu.org; Wed, 08 Oct 2014 08:50:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XbqhG-0000gj-Nm for emacs-devel@gnu.org; Wed, 08 Oct 2014 08:50:31 -0400 Received: from mail.math.utah.edu ([155.101.98.135]:43600) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XbqhG-0000dM-BK for emacs-devel@gnu.org; Wed, 08 Oct 2014 08:50:26 -0400 Received: from psi.math.utah.edu (psi.math.utah.edu [155.101.96.19]) by mail.math.utah.edu (8.14.8/8.14.8) with ESMTP id s98BrAHu005163; Wed, 8 Oct 2014 05:53:15 -0600 (MDT) Received: from psi.math.utah.edu (localhost [127.0.0.1]) by psi.math.utah.edu (8.14.8/8.14.8) with ESMTP id s98BrAYl026485; Wed, 8 Oct 2014 05:53:10 -0600 (MDT) Received: (from beebe@localhost) by psi.math.utah.edu (8.14.8/8.14.8/Submit) id s98BrACA026484; Wed, 8 Oct 2014 05:53:10 -0600 (MDT) X-US-Mail: "Department of Mathematics, 110 LCB, University of Utah, 155 S 1400 E RM 233, Salt Lake City, UT 84112-0090, USA" X-Telephone: +1 801 581 5254 X-FAX: +1 801 581 4148 X-URL: http://www.math.utah.edu/~beebe X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.8 (mail.math.utah.edu [155.101.98.135]); Wed, 08 Oct 2014 05:53:15 -0600 (MDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 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: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Package: emacs Version: 24.3.94 Severity: important An emacs-24.3.94 build on Debian GNU/kFreeBSD 7 (wheezy) x86-64 with CC=c99 fails with this error: /usr/bin/c99 -c -Demacs -I. -I. -I../lib -I./../lib \ -I/usr/include/freetype2 \ -I/usr/include/freetype2 -MMD -MF deps/process.d -MP \ -I/usr/uumath/include process.c process.c:177:1: error: static declaration of `accept4' follows non-static declarationmake[1]: Leaving directory `/local/build/c99/emacs-24.3.94/src' The problem is this code in the indicated system header file: #ifdef __USE_GNU /* Similar to 'accept' but takes an additional parameter to specify flags. This function is a cancellation point and therefore not marked with __THROW. */ extern int accept4 (int __fd, __SOCKADDR_ARG __addr, socklen_t *__restrict __addr_len, int __flags); #endif The solution was simple: % diff src/process.c.~1~ src/process.c 176c176 < static int --- > /* static */ int I restarted the build, and it completed successfully, as did the final "make install" step. ------------------------------------------------------------------------------- - Nelson H. F. Beebe Tel: +1 801 581 5254 - - University of Utah FAX: +1 801 581 4148 - - Department of Mathematics, 110 LCB Internet e-mail: beebe@math.utah.edu - - 155 S 1400 E RM 233 beebe@acm.org beebe@computer.org - - Salt Lake City, UT 84112-0090, USA URL: http://www.math.utah.edu/~beebe/ - ------------------------------------------------------------------------------- From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 08 12:52:28 2014 Received: (at 18666) by debbugs.gnu.org; 8 Oct 2014 16:52:28 +0000 Received: from localhost ([127.0.0.1]:38216 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XbuTT-0005MS-I4 for submit@debbugs.gnu.org; Wed, 08 Oct 2014 12:52:27 -0400 Received: from smtp.cs.ucla.edu ([131.179.128.62]:35748) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XbuTQ-0005MH-Qy for 18666@debbugs.gnu.org; Wed, 08 Oct 2014 12:52:25 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id C7BAF39E8011; Wed, 8 Oct 2014 09:52:23 -0700 (PDT) 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 uYpVJ8U38HGZ; Wed, 8 Oct 2014 09:52:15 -0700 (PDT) Received: from penguin.cs.ucla.edu (Penguin.CS.UCLA.EDU [131.179.64.200]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 2275339E8014; Wed, 8 Oct 2014 09:52:15 -0700 (PDT) Message-ID: <54356BBB.4030002@cs.ucla.edu> Date: Wed, 08 Oct 2014 09:52:11 -0700 From: Paul Eggert Organization: UCLA Computer Science Department User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.1 MIME-Version: 1.0 To: "Nelson H. F. Beebe" , 18666@debbugs.gnu.org Subject: Re: emacs-24.3.94: Debian GNU/kFreeBSD 7 (wheezy) build issue References: In-Reply-To: Content-Type: multipart/mixed; boundary="------------020507030208070008010903" X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 18666 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) This is a multi-part message in MIME format. --------------020507030208070008010903 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit On 10/08/2014 04:53 AM, Nelson H. F. Beebe wrote: > The solution was simple: > > % diff src/process.c.~1~ src/process.c > 176c176 > < static int > --- > > /* static */ int > Thanks, but I'd rather not do that, as it might override some system's accept4 function which other parts of that system's library might depend on. Does the attached alternative patch work for you? Or, to save you some time, since I can log into the Utah VMs perhaps you can give me the current list of VMs so that I can try it out myself? I don't know which VM is the one that illustrates the problem. Thanks. --------------020507030208070008010903 Content-Type: text/x-patch; name="kfreebsd.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="kfreebsd.diff" === modified file 'src/process.c' --- src/process.c 2014-05-03 20:13:10 +0000 +++ src/process.c 2014-10-08 16:42:40 +0000 @@ -173,6 +173,9 @@ return fd; } +#undef accept4 +#define accept4 process_accept4 + static int accept4 (int sockfd, struct sockaddr *addr, socklen_t *addrlen, int flags) { --------------020507030208070008010903-- From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 08 13:10:21 2014 Received: (at 18666) by debbugs.gnu.org; 8 Oct 2014 17:10:21 +0000 Received: from localhost ([127.0.0.1]:38223 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xbukm-0005nr-DF for submit@debbugs.gnu.org; Wed, 08 Oct 2014 13:10:20 -0400 Received: from b2bfep12.mx.upcmail.net ([62.179.121.57]:52935) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xbuki-0005nd-Op for 18666@debbugs.gnu.org; Wed, 08 Oct 2014 13:10:18 -0400 Received: from edge12.upcmail.net ([192.168.13.82]) by b2bfep12-int.chello.at (InterMail vM.8.01.05.11 201-2260-151-128-20120928) with ESMTP id <20141008171015.OSXT11692.b2bfep12-int.chello.at@edge12.upcmail.net> for <18666@debbugs.gnu.org>; Wed, 8 Oct 2014 19:10:15 +0200 Received: from iznogoud.viz ([91.119.143.138]) by edge12.upcmail.net with edge id 0hAE1p00K2zNJLB0ChAESZ; Wed, 08 Oct 2014 19:10:15 +0200 X-SourceIP: 91.119.143.138 Received: from wolfgang by iznogoud.viz with local (Exim 4.84 (FreeBSD)) (envelope-from ) id 1Xbukg-0000nW-3s; Wed, 08 Oct 2014 19:10:14 +0200 From: Wolfgang Jenkner To: "Nelson H. F. Beebe" Subject: Re: bug#18666: emacs-24.3.94: Debian GNU/kFreeBSD 7 (wheezy) build issue References: Date: Wed, 08 Oct 2014 19:10:13 +0200 Message-ID: <85iojusd1m.fsf@iznogoud.viz> User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 18666 Cc: 18666@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) On Wed, Oct 08 2014, Nelson H. F. Beebe wrote: > An emacs-24.3.94 build on Debian GNU/kFreeBSD 7 (wheezy) x86-64 with So it runs a FreeBSD 9 kernel[1]. > CC=c99 fails with this error: > > /usr/bin/c99 -c -Demacs -I. -I. -I../lib -I./../lib \ > -I/usr/include/freetype2 \ > -I/usr/include/freetype2 -MMD -MF deps/process.d -MP \ > -I/usr/uumath/include process.c > process.c:177:1: error: static declaration of `accept4' follows > non-static declarationmake[1]: Leaving directory > `/local/build/c99/emacs-24.3.94/src' > > The problem is this code in the indicated system header file: > > #ifdef __USE_GNU > /* Similar to 'accept' but takes an additional parameter to specify flags. > > This function is a cancellation point and therefore not marked with > __THROW. */ > extern int accept4 (int __fd, __SOCKADDR_ARG __addr, > socklen_t *__restrict __addr_len, int __flags); > #endif On FreeBSD 10, accept(2) states[2] in HISTORY The accept4() system call appeared in FreeBSD 10.0. So I guess the bug is that the declaration is nevertheless visible in the glibc header file used on your Debian system. The other possibility is that the Debian developers implemented it on their own, but it somehow fails the configure test (you could check config.log). I found a short mailing list thread about this[3]. [1] https://wiki.debian.org/Debian_GNU/kFreeBSD_FAQ#Q._What_version_of_kFreeBSD_is_supported.3F [2] https://www.freebsd.org/cgi/man.cgi?query=accept4&apropos=0&sektion=0&manpath=FreeBSD+10.0-RELEASE&arch=default&format=html [3] https://lists.debian.org/debian-bsd/2013/09/msg00157.html From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 10 12:15:24 2014 Received: (at 18666) by debbugs.gnu.org; 10 Oct 2014 16:15:24 +0000 Received: from localhost ([127.0.0.1]:40280 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xccqi-00068l-5N for submit@debbugs.gnu.org; Fri, 10 Oct 2014 12:15:24 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:51618) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xccqf-00065q-6C for 18666@debbugs.gnu.org; Fri, 10 Oct 2014 12:15:22 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1Xccqd-0001rc-Vh; Fri, 10 Oct 2014 12:15:20 -0400 From: Glenn Morris To: Paul Eggert Subject: Re: bug#18666: emacs-24.3.94: Debian GNU/kFreeBSD 7 (wheezy) build issue References: <54356BBB.4030002@cs.ucla.edu> X-Spook: TWA 9705 Samford Road Kosovo Treasury Manfurov embassy X-Ran: n0ZC'F}&4B2;,/@|yJL=7bB_e}"$Eq{t{M.zMZFF<$]K8h--~QDR,`G]K"f,h4S}y`}0@\ X-Hue: magenta X-Attribution: GM Date: Fri, 10 Oct 2014 12:15:19 -0400 Message-ID: <4qr3yf6gvc.fsf@fencepost.gnu.org> 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.0 (------) X-Debbugs-Envelope-To: 18666 Cc: 18666@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) Experience suggests there might be no answer to your question (unless you got one off-list), so if you think there is a safe way to solve this in emacs-24, I suggest you just go for it and mark this as done. From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 10 14:04:08 2014 Received: (at 18666-done) by debbugs.gnu.org; 10 Oct 2014 18:04:08 +0000 Received: from localhost ([127.0.0.1]:40352 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XceXw-0001YB-5U for submit@debbugs.gnu.org; Fri, 10 Oct 2014 14:04:08 -0400 Received: from smtp.cs.ucla.edu ([131.179.128.62]:43826) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XceXt-0001Xx-Gh for 18666-done@debbugs.gnu.org; Fri, 10 Oct 2014 14:04:06 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 293AEA60013; Fri, 10 Oct 2014 11:04:04 -0700 (PDT) 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 Uabfnj4Y9L5x; Fri, 10 Oct 2014 11:03:55 -0700 (PDT) Received: from [192.168.1.9] (pool-71-177-17-123.lsanca.dsl-w.verizon.net [71.177.17.123]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 8320039E8014; Fri, 10 Oct 2014 11:03:55 -0700 (PDT) Message-ID: <54381F88.8030103@cs.ucla.edu> Date: Fri, 10 Oct 2014 11:03:52 -0700 From: Paul Eggert Organization: UCLA Computer Science Department User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2 MIME-Version: 1.0 To: Glenn Morris Subject: Re: bug#18666: emacs-24.3.94: Debian GNU/kFreeBSD 7 (wheezy) build issue References: <54356BBB.4030002@cs.ucla.edu> <4qr3yf6gvc.fsf@fencepost.gnu.org> In-Reply-To: <4qr3yf6gvc.fsf@fencepost.gnu.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -3.3 (---) X-Debbugs-Envelope-To: 18666-done Cc: 18666-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Glenn Morris wrote: > if you think there is a safe way to solve this > in emacs-24, I suggest you just go for it and mark this as done Thanks, done as emacs-24 bzr 117570. From unknown Sun Jun 22 07:37:05 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 08 Nov 2014 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator