From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Feb 23 21:20:01 2014 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E2288971 for ; Sun, 23 Feb 2014 21:20:00 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id BBF271698 for ; Sun, 23 Feb 2014 21:20:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id s1NLK0Nm036601 for ; Sun, 23 Feb 2014 21:20:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s1NLK02j036600; Sun, 23 Feb 2014 21:20:00 GMT (envelope-from gnats) Resent-Date: Sun, 23 Feb 2014 21:20:00 GMT Resent-Message-Id: <201402232120.s1NLK02j036600@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, Gerald Pfeifer Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4B0F83F7 for ; Sun, 23 Feb 2014 21:10:08 +0000 (UTC) Received: from ref10-i386.freebsd.org (ref10-i386.freebsd.org [IPv6:2001:1900:2254:206c::16:8a]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 27FAF15EB; Sun, 23 Feb 2014 21:10:08 +0000 (UTC) Received: from ref10-i386.freebsd.org (localhost [127.0.0.1]) by ref10-i386.freebsd.org (8.14.8/8.14.8) with ESMTP id s1NLA7m0081373; Sun, 23 Feb 2014 21:10:07 GMT (envelope-from gerald@ref10-i386.freebsd.org) Received: (from gerald@localhost) by ref10-i386.freebsd.org (8.14.8/8.14.8/Submit) id s1NLA7Lt081372; Sun, 23 Feb 2014 21:10:07 GMT (envelope-from gerald) Message-Id: <201402232110.s1NLA7Lt081372@ref10-i386.freebsd.org> Date: Sun, 23 Feb 2014 21:10:07 GMT From: Gerald Pfeifer To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.114 Subject: ports/186990: math/metis-edf fails to build on 10.x/with clang: argc must be of type int X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Feb 2014 21:20:01 -0000 >Number: 186990 >Category: ports >Synopsis: math/metis-edf fails to build on 10.x/with clang: argc must be of type int >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Feb 23 21:20:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Gerald Pfeifer >Release: >Organization: >Environment: https://redports.org/~gerald/20140223183211-37273-179149/metis-edf-4.1.2_4.log >Description: cc -O2 -pipe -fno-strict-aliasing -I../Lib -c onmetis.c onmetis.c:22:2: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] main(long argc, char *argv[]) ^~~~ onmetis.c:22:2: error: first parameter of 'main' (argument count) must be of type 'int' >How-To-Repeat: Build math/metis-edf on redports.org or locally, for 10-i386. >Fix: Apply the following patch. Index: files/patch-Programs-argc =================================================================== --- files/patch-Programs-argc (revision 0) +++ files/patch-Programs-argc (working copy) @@ -0,0 +1,99 @@ +--- Programs/graphchk.c.orig 2008-12-03 10:08:03.000000000 +0000 ++++ Programs/graphchk.c 2014-02-23 20:51:47.000000000 +0000 +@@ -19,7 +19,7 @@ + /************************************************************************* + * Let the game begin + **************************************************************************/ +- main(long argc, char *argv[]) ++ main(int argc, char *argv[]) + { + GraphType graph; + char filename[256]; +--- Programs/kmetis.c.orig 2008-12-03 10:08:03.000000000 +0000 ++++ Programs/kmetis.c 2014-02-23 20:52:56.000000000 +0000 +@@ -19,7 +19,7 @@ + /************************************************************************* + * Let the game begin + **************************************************************************/ +- main(long argc, char *argv[]) ++ main(int argc, char *argv[]) + { + long i, nparts, options[10]; + idxtype *part; +--- Programs/mesh2dual.c.orig 2014-02-23 20:53:11.000000000 +0000 ++++ Programs/mesh2dual.c 2014-02-23 20:53:25.000000000 +0000 +@@ -20,7 +20,7 @@ + /************************************************************************* + * Let the game begin + **************************************************************************/ +- main(long argc, char *argv[]) ++ main(int argc, char *argv[]) + { + long i, j, ne, nn, etype, numflag=0; + idxtype *elmnts, *xadj, *adjncy; +--- Programs/mesh2nodal.c.orig 2008-12-03 10:08:03.000000000 +0000 ++++ Programs/mesh2nodal.c 2014-02-23 20:53:54.000000000 +0000 +@@ -20,7 +20,7 @@ + /************************************************************************* + * Let the game begin + **************************************************************************/ +- main(long argc, char *argv[]) ++ main(int argc, char *argv[]) + { + long i, j, ne, nn, etype, numflag=0; + idxtype *elmnts, *xadj, *adjncy; +--- Programs/oemetis.c.orig 2008-12-03 10:08:03.000000000 +0000 ++++ Programs/oemetis.c 2014-02-23 20:54:20.000000000 +0000 +@@ -19,7 +19,7 @@ + /************************************************************************* + * Let the game begin + **************************************************************************/ +- main(long argc, char *argv[]) ++ main(int argc, char *argv[]) + { + long i, options[10]; + idxtype *perm, *iperm; +--- Programs/onmetis.c.orig 2008-12-03 10:08:03.000000000 +0000 ++++ Programs/onmetis.c 2014-02-23 20:55:18.000000000 +0000 +@@ -19,7 +19,7 @@ + /************************************************************************* + * Let the game begin + **************************************************************************/ +- main(long argc, char *argv[]) ++ main(int argc, char *argv[]) + { + long i, options[10]; + idxtype *perm, *iperm; +--- Programs/partdmesh.c.orig 2008-12-03 10:08:03.000000000 +0000 ++++ Programs/partdmesh.c 2014-02-23 20:54:52.000000000 +0000 +@@ -20,7 +20,7 @@ + /************************************************************************* + * Let the game begin + **************************************************************************/ +- main(long argc, char *argv[]) ++ main(int argc, char *argv[]) + { + long i, j, ne, nn, etype, numflag=0, nparts, edgecut; + idxtype *elmnts, *epart, *npart; +--- Programs/partnmesh.c.orig 2014-02-23 20:55:48.000000000 +0000 ++++ Programs/partnmesh.c 2014-02-23 20:55:57.000000000 +0000 +@@ -20,7 +20,7 @@ + /************************************************************************* + * Let the game begin + **************************************************************************/ +- main(long argc, char *argv[]) ++ main(int argc, char *argv[]) + { + long i, j, ne, nn, etype, numflag=0, nparts, edgecut; + idxtype *elmnts, *epart, *npart; +--- Programs/pmetis.c.orig 2008-12-03 10:08:03.000000000 +0000 ++++ Programs/pmetis.c 2014-02-23 20:55:38.000000000 +0000 +@@ -19,7 +19,7 @@ + /************************************************************************* + * Let the game begin + **************************************************************************/ +- main(long argc, char *argv[]) ++ main(int argc, char *argv[]) + { + long i, nparts, options[10]; + idxtype *part; >Release-Note: >Audit-Trail: >Unformatted: