From owner-freebsd-ports@FreeBSD.ORG Sat May 17 17:40:43 2014 Return-Path: Delivered-To: freebsd-ports@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 ESMTPS id D11173FB for ; Sat, 17 May 2014 17:40:43 +0000 (UTC) Received: from mailrelay012.isp.belgacom.be (mailrelay012.isp.belgacom.be [195.238.6.179]) by mx1.freebsd.org (Postfix) with ESMTP id 6FE2227B2 for ; Sat, 17 May 2014 17:40:42 +0000 (UTC) X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Am8GAJydd1NbsWnc/2dsb2JhbABZDoJ4T8RdAYEIF3SCJQEBBTocIxALGAklDyoeBohYAdEZF45QB4RAAQOZWYE+kV2Cd0I7 Received: from 220.105-177-91.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([91.177.105.220]) by relay.skynet.be with ESMTP; 17 May 2014 19:40:34 +0200 Received: from kalimero.tijl.coosemans.org (kalimero.tijl.coosemans.org [127.0.0.1]) by kalimero.tijl.coosemans.org (8.14.8/8.14.8) with ESMTP id s4HHeX5g012655; Sat, 17 May 2014 19:40:33 +0200 (CEST) (envelope-from tijl@FreeBSD.org) Date: Sat, 17 May 2014 19:40:32 +0200 From: Tijl Coosemans To: "Montgomery-Smith, Stephen" Subject: Re: clang problems with math/octave-forge-miscellaneous Message-ID: <20140517194032.07786df4@kalimero.tijl.coosemans.org> In-Reply-To: <537798CE.8040009@missouri.edu> References: <537795C5.2050609@missouri.edu> <537798CE.8040009@missouri.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: "freebsd-ports@freebsd.org" X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 May 2014 17:40:43 -0000 On Sat, 17 May 2014 17:13:51 +0000 Montgomery-Smith, Stephen wrote: > On 05/17/2014 12:00 PM, Montgomery-Smith, Stephen wrote: >> I am trying to make the port math/octave-forge-miscellaneous clang >> compliant. In the file ${WRKSRC}/partarray.cc is are lines like this: >> >> Array bidc [maxdims], eidc [maxdims]; >> ... stuff ... >> eidc[i] = eidx; >> >> The compilation dies saying that eidc is not defined. > > I see the problem. The compiler actually goes wrong with > > Array bidc [maxdims]; > > saying > > partarray.cc:42:31: error: variable length array of non-POD element type > 'Array' > > So the error is somewhere else. Sorry for the noise. But if I don't > figure out the latter error, I'll be back with more questions. You'll have to declare it as "Array *bidc" and use new[] and delete[].