From gerald@FreeBSD.org  Sun Feb 23 21:10:08 2014
Return-Path: <gerald@FreeBSD.org>
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 <FreeBSD-gnats-submit@freebsd.org>; 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 <gerald@pfeifer.com>
To: FreeBSD-gnats-submiti@freebsd.org
Cc:
Subject: math/metis-edf fails to build on 10.x/with clang: argc must be of type int
X-Send-Pr-Version: 3.114
X-GNATS-Notify:

>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:    thierry
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Feb 23 21:20:00 UTC 2014
>Closed-Date:    Tue Mar 18 22:58:08 UTC 2014
>Last-Modified:  Tue Mar 18 22:58:08 UTC 2014
>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:
Responsible-Changed-From-To: freebsd-ports-bugs->bf 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sun Feb 23 21:20:07 UTC 2014 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=186990 

From: Gerald Pfeifer <gerald@pfeifer.com>
To: bug-followup@FreeBSD.org, Brendan Fabeny <bf@FreeBSD.org>
Cc:  
Subject: Re: ports/186990: math/metis-edf fails to build on 10.x/with clang:
 argc must be of type int
Date: Sun, 23 Feb 2014 22:26:24 +0100 (CET)

 I have test-built my patch (including the usual make package,
 make deinstall,...) and it fails before and works after.
 
 If you approve, I'll be happy to commit.
 
 Gerald
 
Responsible-Changed-From-To: bf->thierry 
Responsible-Changed-By: bf 
Responsible-Changed-When: Sun Mar 16 06:55:50 UTC 2014 
Responsible-Changed-Why:  
Over to maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=186990 
State-Changed-From-To: open->closed 
State-Changed-By: thierry 
State-Changed-When: mar 18 mar 2014 22:56:22 UTC 
State-Changed-Why:  

The previous version (included in the upgrade of french/aster) has been 
tested on 10.0 / i386, and it's OK. 

Thanks for the report. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=186990 
>Unformatted:
