From owner-freebsd-ports@FreeBSD.ORG Thu Jun 23 17:06:32 2011 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (unknown [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0E89D106564A for ; Thu, 23 Jun 2011 17:06:32 +0000 (UTC) (envelope-from kwm@rainbow-runner.nl) Received: from fep31.mx.upcmail.net (fep31.mx.upcmail.net [62.179.121.49]) by mx1.freebsd.org (Postfix) with ESMTP id 60D148FC08 for ; Thu, 23 Jun 2011 17:06:30 +0000 (UTC) Received: from edge01.upcmail.net ([192.168.13.236]) by viefep15-int.chello.at (InterMail vM.8.01.02.02 201-2260-120-106-20100312) with ESMTP id <20110623170539.JMHC196.viefep15-int.chello.at@edge01.upcmail.net>; Thu, 23 Jun 2011 19:05:39 +0200 Received: from [127.0.0.1] ([77.249.46.246]) by edge01.upcmail.net with edge id zV5d1g00o5JheDZ01V5esl; Thu, 23 Jun 2011 19:05:39 +0200 X-SourceIP: 77.249.46.246 Message-ID: <4E03725E.7070802@rainbow-runner.nl> Date: Thu, 23 Jun 2011 19:05:34 +0200 From: Koop Mast User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.18) Gecko/20110616 Thunderbird/3.1.11 MIME-Version: 1.0 To: Rainer Hurling References: <4E036F01.2020708@gwdg.de> In-Reply-To: <4E036F01.2020708@gwdg.de> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 110623-0, 06/23/2011), Outbound message X-Antivirus-Status: Clean X-Cloudmark-Analysis: v=1.1 cv=HQ3F56nxkum+cgCiDL7AXQpbvw7DWrWCBJRnYYnM0Zc= c=1 sm=0 a=vMBfdYSKmKkA:10 a=03IQs6fJVxMA:10 a=Q9fys5e9bTEA:10 a=6I5d2MoRAAAA:8 a=mDV3o1hIAAAA:8 a=h8586OAEciSAMrRPghIA:9 a=dlS4d2KXwcOd0e_DH-UA:7 a=PUjeQqilurYA:10 a=b9Q9-fxrUc4A:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 Cc: ports@freebsd.org Subject: Re: math/ggobi: compile error with clang X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Jun 2011 17:06:32 -0000 On 6/23/2011 18:51 , Rainer Hurling wrote: > I just discovered, that math/ggobi does not compile with clang, see: > > http://pointyhat.freebsd.org/errorlogs/amd64-errorlogs/e.9-exp.20110616185105/ggobi-2.1.9.log > > > It seems, the main error is in 'line control' statement of > src/ggobi-data.c, l.45 > > #line 0 "data.gob" > static void ggobi_data_class_init (GGobiDataClass * c) G_GNUC_UNUSED; > > The official cpp online docs on > http://gcc.gnu.org/onlinedocs/cpp/Line-Control.html defines > > #line linenum > linenum is a non-negative decimal integer constant. It specifies the > line number which should be reported for the following line of input. > Subsequent lines are counted from linenum. > > It seems gcc accepts the 0 (zero) as valid, whilst clang produces an > error '#line directive requires a positive integer argument'. > > What is the meaning of line 0 in this context? At line 1 (the first > line in src/data.gob) there is the initiation '%h{' for the whole file > contents. Does 0 mean, take the whole file? > > Would it be correct to change value 0 into 1 (#line 1)? At least, gcc > is able to build that and it seems to work fine. > > My system is compiled with gcc, so it would be nice, if someone would > give it a try with clang. > > Many thanks in advance, > Rainer Hurling I had the same problem with devel/gob2 ages ago. This following is the solution I settled on. I don't know if this is correct or not but it seems to work fine. http://www.freebsd.org/cgi/cvsweb.cgi/~checkout~/ports/devel/gob2/files/patch-src_out.c?rev=1.1;content-type=text%2Fplain -Koop