Date: Thu, 5 Sep 2013 14:50:43 GMT From: Christian Gusenbauer <c47g@gmx.at> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/181839: Build failed for inventor-2.1.5.p10_7 during build with clang Message-ID: <201309051450.r85EohSE072090@oldred.freebsd.org> Resent-Message-ID: <201309051500.r85F00YO099811@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 181839 >Category: ports >Synopsis: Build failed for inventor-2.1.5.p10_7 during 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: Thu Sep 05 15:00:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Christian Gusenbauer >Release: current >Organization: >Environment: see: http://beefy1.isc.freebsd.org/bulk/head-default/2013-09-04_23h56m58s/logs/inventor-2.1.5.p10_7.log >Description: Both 32 and 64 bit builds are failing with that error: ppp.c++:630:1: error: C++ requires a type specifier for all declarations main(int, char *argv[]) ^~~~ 12 warnings and 1 error generated. gmake[2]: *** [ppp.o] Error 1 gmake[2]: Leaving directory `/wrkdirs/usr/ports/graphics/inventor/work/inventor/tools/ppp' gmake[1]: *** [all] Error 1 gmake[1]: Leaving directory `/wrkdirs/usr/ports/graphics/inventor/work/inventor/tools' gmake: *** [all] Error 1 *** Error code 1 Stop. make: stopped in /usr/ports/graphics/inventor ===> Cleaning for inventor-2.1.5.p10_7 >How-To-Repeat: just build the port with clang >Fix: Add the applied patch. Note, currently I do not have a current based box, so I could not test the patch, but I think that patch will solve the build problem. Patch attached with submission follows: --- tools/ppp/ppp.c++.orig 2013-09-05 16:45:05.000000000 +0200 +++ tools/ppp/ppp.c++ 2013-09-05 16:45:16.000000000 +0200 @@ -627,7 +627,7 @@ // ////////////////////////////////////////////////////////////////////////////// -main(int, char *argv[]) +int main(int, char *argv[]) { char buf[1024]; Line line; >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201309051450.r85EohSE072090>