Bug 186990 - math/metis-edf fails to build on 10.x/with clang: argc must be of type int
Summary: math/metis-edf fails to build on 10.x/with clang: argc must be of type int
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Thierry Thomas
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-23 21:20 UTC by gerald
Modified: 2014-03-18 22:58 UTC (History)
0 users

See Also:


Attachments
file.diff (4.36 KB, patch)
2014-02-23 21:20 UTC, gerald
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description gerald 2014-02-23 21:20:00 UTC
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'

Fix: Apply the following patch.
How-To-Repeat: 	Build math/metis-edf on redports.org or locally, for 10-i386.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2014-02-23 21:20:07 UTC
Responsible Changed
From-To: freebsd-ports-bugs->bf

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 gerald 2014-02-23 21:26:24 UTC
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
Comment 3 Brendan Fabeny freebsd_committer freebsd_triage 2014-03-16 06:55:50 UTC
Responsible Changed
From-To: bf->thierry

Over to maintainer.
Comment 4 Thierry Thomas freebsd_committer freebsd_triage 2014-03-18 22:56:22 UTC
State Changed
From-To: open->closed


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.