From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Michal Nowak Newsgroups: gmane.lisp.guile.bugs Subject: bug#36342: accept4 detection on illumos needs -lsocket -lnsl Date: Sun, 23 Jun 2019 14:18:10 +0200 Message-ID: <2f3c5921-d3e9-4c06-4a21-826d7ba58bcf@startmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="44085"; mail-complaints-to="usenet@blaine.gmane.org" To: 36342@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Sun Jun 23 17:19:25 2019 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hf4H6-000BEJ-5m for guile-bugs@m.gmane.org; Sun, 23 Jun 2019 17:19:24 +0200 Original-Received: from localhost ([::1]:45200 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hf4H4-0006IF-FW for guile-bugs@m.gmane.org; Sun, 23 Jun 2019 11:19:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43663) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hf4Gl-0006I3-CI for bug-guile@gnu.org; Sun, 23 Jun 2019 11:19:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hf4Gk-0005z7-57 for bug-guile@gnu.org; Sun, 23 Jun 2019 11:19:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40559) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hf4Gj-0005yd-Vn for bug-guile@gnu.org; Sun, 23 Jun 2019 11:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hf4Gj-0000UB-QZ for bug-guile@gnu.org; Sun, 23 Jun 2019 11:19:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michal Nowak Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Sun, 23 Jun 2019 15:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 36342 X-GNU-PR-Package: guile X-Debbugs-Original-To: bug-guile@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15613030831799 (code B ref -1); Sun, 23 Jun 2019 15:19:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 23 Jun 2019 15:18:03 +0000 Original-Received: from localhost ([127.0.0.1]:54103 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hf4Fn-0000Sv-4W for submit@debbugs.gnu.org; Sun, 23 Jun 2019 11:18:03 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:38174) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hf1S2-00009b-1n for submit@debbugs.gnu.org; Sun, 23 Jun 2019 08:18:30 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42379) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hf1Rz-0005kb-B3 for bug-guile@gnu.org; Sun, 23 Jun 2019 08:18:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hf1Rp-00053Z-Ke for bug-guile@gnu.org; Sun, 23 Jun 2019 08:18:20 -0400 Original-Received: from mx-out2.startmail.com ([145.131.90.155]:44681) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hf1Rl-0004pW-OB for bug-guile@gnu.org; Sun, 23 Jun 2019 08:18:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=startmail.com; s=2017-11; t=1561292291; bh=rWnxGV30hiw5SPMDXxPF0Tq/fkH7hG44Bde2k2n+xOk=; h=To:From:Subject:Date:From; b=ML6Y6p+2c8m//n07J/zCD/v2stqghL0oNz2lDhMUd8PqRKTxi+GfK3WgPzy+44/+C BC1yapketMcMtMSPYYZY1DcQEFixYU8vbENQuVY2F7IXH/JC9qEc1BW/dMQV6PEQ6U XWUP3CfGKAkcB+Zl8JdfJvhoJ7BVy8HBIcH6Zk+bNNdQ0ykxLEM8GINHKh8oNgwgUD 2xskoalX0VcadkJ3qP+iMm0YnDR6bijIBag87fr8vvmkhLAdy75kliHYIFoxRwzFk8 JvRN1U2kNu9rBe9ERDKp078aRpEdZoaQ+0XITTpOhFBkJOOWpZBqyoc8pUseL/qZ89 b8EKjpalpC0OQ== Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Mailman-Approved-At: Sun, 23 Jun 2019 11:18:01 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.org gmane.lisp.guile.bugs:9356 Archived-At: Hello, GNU Guile 2.2.5 build fails because accept4 detection on OpenIndiana 2019.04 (illumos distribution) [1] fails due to "-lsocket -lnsl" not being part of the linking process and the build system then tries to build it's vendored accept4: CC accept4.lo In file included from /usr/include/sys/time.h:462:0, from ./sys/time.h:39, from /usr/include/sys/select.h:53, from ./sys/select.h:36, from /usr/include/sys/types.h:640, from ./sys/types.h:28, from ./sys/socket.h:51, from accept4.c:20: ./sys/socket.h:1034:1: error: conflicting types for 'accept4' _GL_FUNCDECL_SYS (accept4, int, ^ In file included from ./sys/socket.h:58:0, from accept4.c:20: /usr/include/sys/socket.h:540:12: note: previous declaration of 'accept4' was here extern int accept4(int, struct sockaddr *_RESTRICT_KYWD, Psocklen_t, int); ^~~~~~~ accept4.c:32:1: error: conflicting types for 'accept4' accept4 (int sockfd, struct sockaddr *addr, socklen_t *addrlen, int flags) ^~~~~~~ In file included from ./sys/socket.h:58:0, from accept4.c:20: /usr/include/sys/socket.h:540:12: note: previous declaration of 'accept4' was here extern int accept4(int, struct sockaddr *_RESTRICT_KYWD, Psocklen_t, int); ^~~~~~~ This is fixed by LIBS="-lsocket -lnsl" in the build environment. This was in the past reported both on the guile-user [2] and openindiana-discuss [3] mailing lists, where you also can see the build error in full. Thanks, Michal [1] https://illumos.org/man/3socket/accept4 [2] https://lists.gnu.org/archive/html/guile-user/2018-03/msg00006.html [3] https://openindiana.org/pipermail/openindiana-discuss/2018-March/021931.html