From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Dec 14 19:20:09 2011 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2AFC91065670 for ; Wed, 14 Dec 2011 19:20:09 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id F12C08FC0A for ; Wed, 14 Dec 2011 19:20:08 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id pBEJK84F030504 for ; Wed, 14 Dec 2011 19:20:08 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id pBEJK8iK030503; Wed, 14 Dec 2011 19:20:08 GMT (envelope-from gnats) Resent-Date: Wed, 14 Dec 2011 19:20:08 GMT Resent-Message-Id: <201112141920.pBEJK8iK030503@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Jan Beich Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E5BFC106564A for ; Wed, 14 Dec 2011 19:10:19 +0000 (UTC) (envelope-from jbeich@tormail.net) Received: from server2.hudsonvalleyhost.com (server2.hudsonvalleyhost.com [66.7.195.77]) by mx1.freebsd.org (Postfix) with ESMTP id 988488FC0C for ; Wed, 14 Dec 2011 19:10:19 +0000 (UTC) Received: from [194.150.168.79] (port=38980 helo=internal.tormail.net) by server2.hudsonvalleyhost.com with esmtpsa (TLSv1:RC4-SHA:128) (Exim 4.69) (envelope-from ) id 1RauDY-002HE9-NX for FreeBSD-gnats-submit@freebsd.org; Wed, 14 Dec 2011 14:10:18 -0500 Received: from jbeich by internal.tormail.net with local (Exim 4.63) (envelope-from ) id 1RauD3-00052B-Hl for FreeBSD-gnats-submit@freebsd.org; Wed, 14 Dec 2011 19:09:49 +0000 Message-Id: <1RauD3-00052B-Hl@internal.tormail.net> Date: Thu, 15 Dec 2011 06:09:02 +1100 From: Jan Beich To: FreeBSD-gnats-submit@FreeBSD.org Cc: Subject: ports/163293: [patch] net/lambdamoo: unbreak build with clang X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Dec 2011 19:20:09 -0000 >Number: 163293 >Category: ports >Synopsis: [patch] net/lambdamoo: unbreak build with clang >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Dec 14 19:20:08 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Jan Beich >Release: FreeBSD 10.0-CURRENT amd64 >Organization: >Environment: >Description: >How-To-Repeat: http://pointyhat.freebsd.org/errorlogs/amd64-errorlogs/e.9-exp.20110723205754/lambdamoo-1.8.1_1.log $ echo 'int main(int argc, char *argv) { void *ptr; exit(0); }' | clang -xc - :1:5: error: second parameter of 'main' (argument array) must be of type 'char **' int main(int argc, char *argv) { void *ptr; exit(0); } ^ :1:45: warning: implicitly declaring C library function 'exit' with type 'void (int) __attribute__((noreturn))' int main(int argc, char *argv) { void *ptr; exit(0); } ^ :1:45: note: please include the header or explicitly provide a declaration for 'exit' 1 warning and 1 error generated. >Fix: --- clang.diff begins here --- Index: net/lambdamoo/files/patch-configure =================================================================== RCS file: /a/.csup/ports/net/lambdamoo/files/patch-configure,v retrieving revision 1.1 diff -u -p -r1.1 patch-configure --- net/lambdamoo/files/patch-configure 9 Apr 2002 06:08:40 -0000 1.1 +++ net/lambdamoo/files/patch-configure 14 Dec 2011 18:52:42 -0000 @@ -1,5 +1,14 @@ --- configure.orig Mon Apr 8 22:32:10 2002 +++ configure Mon Apr 8 22:51:13 2002 +@@ -599,7 +599,7 @@ + cat > conftest.c < +@@ -260,7 +260,7 @@ + SAVECC="$CC" + CC="$CC $opt" + AC_TEST_PROGRAM([ +-int main(int argc, char *argv) { void *ptr; exit(0); } ++int main(int argc, char **argv) { void *ptr; exit(0); } + ], + [have_ansi=1 + break], --- clang.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: