From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Sep 5 15:00:01 2013 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 ESMTP id EC7BC1D6 for ; Thu, 5 Sep 2013 15:00:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) 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 CBB68255E for ; Thu, 5 Sep 2013 15:00: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 r85F00Zg099812 for ; Thu, 5 Sep 2013 15:00:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r85F00YO099811; Thu, 5 Sep 2013 15:00:00 GMT (envelope-from gnats) Resent-Date: Thu, 5 Sep 2013 15:00:00 GMT Resent-Message-Id: <201309051500.r85F00YO099811@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, Christian Gusenbauer 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 ESMTP id 6BE2CFB7 for ; Thu, 5 Sep 2013 14:50:44 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 5A03524F9 for ; Thu, 5 Sep 2013 14:50:44 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r85EohAZ072121 for ; Thu, 5 Sep 2013 14:50:43 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r85EohSE072090; Thu, 5 Sep 2013 14:50:43 GMT (envelope-from nobody) Message-Id: <201309051450.r85EohSE072090@oldred.freebsd.org> Date: Thu, 5 Sep 2013 14:50:43 GMT From: Christian Gusenbauer To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/181839: Build failed for inventor-2.1.5.p10_7 during build with clang X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Sep 2013 15:00:01 -0000 >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: