Date: Sun, 23 Feb 2014 21:10:07 GMT From: Gerald Pfeifer <gerald@pfeifer.com> To: FreeBSD-gnats-submit@freebsd.org Subject: ports/186990: math/metis-edf fails to build on 10.x/with clang: argc must be of type int Message-ID: <201402232110.s1NLA7Lt081372@ref10-i386.freebsd.org> Resent-Message-ID: <201402232120.s1NLK02j036600@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402232110.s1NLA7Lt081372>