From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Wolfgang Jenkner Newsgroups: gmane.emacs.bugs Subject: bug#18666: emacs-24.3.94: Debian GNU/kFreeBSD 7 (wheezy) build issue Date: Wed, 08 Oct 2014 19:10:13 +0200 Message-ID: <85iojusd1m.fsf@iznogoud.viz> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1412788289 22624 80.91.229.3 (8 Oct 2014 17:11:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 8 Oct 2014 17:11:29 +0000 (UTC) Cc: 18666@debbugs.gnu.org To: "Nelson H. F. Beebe" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 08 19:11:22 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Xbull-00058V-VA for geb-bug-gnu-emacs@m.gmane.org; Wed, 08 Oct 2014 19:11:22 +0200 Original-Received: from localhost ([::1]:37541 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xbull-0000EL-6F for geb-bug-gnu-emacs@m.gmane.org; Wed, 08 Oct 2014 13:11:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49535) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xbula-0000Dr-9w for bug-gnu-emacs@gnu.org; Wed, 08 Oct 2014 13:11:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XbulS-0002yt-PT for bug-gnu-emacs@gnu.org; Wed, 08 Oct 2014 13:11:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46659) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XbulS-0002yp-Lb for bug-gnu-emacs@gnu.org; Wed, 08 Oct 2014 13:11:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XbulS-0005oq-4z for bug-gnu-emacs@gnu.org; Wed, 08 Oct 2014 13:11:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Wolfgang Jenkner Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 08 Oct 2014 17:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18666 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18666-submit@debbugs.gnu.org id=B18666.141278822122316 (code B ref 18666); Wed, 08 Oct 2014 17:11:02 +0000 Original-Received: (at 18666) by debbugs.gnu.org; 8 Oct 2014 17:10:21 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4.50 (berkeley-unix) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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:94309 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