From owner-freebsd-ports@FreeBSD.ORG Tue Sep 25 12:55:58 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 26AFF1065674 for ; Tue, 25 Sep 2012 12:55:57 +0000 (UTC) (envelope-from zeising@daemonic.se) Received: from mail.lysator.liu.se (mail.lysator.liu.se [IPv6:2001:6b0:17:f0a0::3]) by mx1.freebsd.org (Postfix) with ESMTP id 4B1C48FC1E for ; Tue, 25 Sep 2012 12:55:57 +0000 (UTC) Received: from mail.lysator.liu.se (localhost [127.0.0.1]) by mail.lysator.liu.se (Postfix) with ESMTP id EA63940007 for ; Tue, 25 Sep 2012 14:55:55 +0200 (CEST) Received: by mail.lysator.liu.se (Postfix, from userid 1004) id DFD454000E; Tue, 25 Sep 2012 14:55:55 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on bernadotte.lysator.liu.se X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=AWL autolearn=disabled version=3.3.1 X-Spam-Score: 0.0 Received: from mx.daemonic.se (mx.daemonic.se [IPv6:2001:470:dca9:0:1::3]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.lysator.liu.se (Postfix) with ESMTPSA id 1B17040007; Tue, 25 Sep 2012 14:55:54 +0200 (CEST) Received: from mailscanner.daemonic.se (mailscanner.daemonic.se [IPv6:2001:470:dca9:0:1::6]) by mx.daemonic.se (Postfix) with ESMTPS id 3XR2MY4jflz8ggv; Tue, 25 Sep 2012 14:55:53 +0200 (CEST) X-Virus-Scanned: amavisd-new at daemonic.se Received: from mx.daemonic.se ([10.1.0.3]) (using TLS with cipher CAMELLIA256-SHA) by mailscanner.daemonic.se (mailscanner.daemonic.se [10.1.0.6]) (amavisd-new, port 10025) with ESMTPS id BW5D1n-pUfuK; Tue, 25 Sep 2012 14:55:47 +0200 (CEST) Received: from mail.daemonic.se (mail.daemonic.se [IPv6:2001:470:dca9:0:1::4]) by mx.daemonic.se (Postfix) with ESMTPS id 3XR2MR6X8wz8gh0; Tue, 25 Sep 2012 14:55:47 +0200 (CEST) Received: from [IPv6:2001:470:dca9:1::4] (vivi.daemonic.se [IPv6:2001:470:dca9:1::4]) by mail.daemonic.se (Postfix) with ESMTPSA id 3XR2MR68YGz9CvV; Tue, 25 Sep 2012 14:55:47 +0200 (CEST) Message-ID: <5061A9D6.2090504@daemonic.se> Date: Tue, 25 Sep 2012 14:55:50 +0200 From: Niclas Zeising User-Agent: Mutt/1.5.21 MIME-Version: 1.0 To: mexas@bristol.ac.uk References: <201209251247.q8PCl4oL021508@mech-cluster241.men.bris.ac.uk> In-Reply-To: <201209251247.q8PCl4oL021508@mech-cluster241.men.bris.ac.uk> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP Cc: freebsd-ports@freebsd.org Subject: Re: astro/xearth on redports with clang: /usr/local/lib/X11/config/FreeBSD.cf:451:35: error: '#' is not followed by a macro parameter 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: Tue, 25 Sep 2012 12:55:58 -0000 On 2012-09-25 14:47, Anton Shterenlikht wrote: > I tried to build astro/xearth on redports using amd64/clang > environment. I get several errors like this one: > > /usr/local/lib/X11/config/FreeBSD.cf:451:35: error: '#' is not followed by a macro parameter > > The full log: > > https://redports.org/~mexas/20120925084455-39349-73266/xearth-1.1_2.log > > It builds fine on amd64/gcc. > > It seems the problem is not in xearth, > but rather in xorg-cf-files. > > Please advise > > Thanks > Anton The problem is with imake not playing nice with the cpp from clang. The best solution is to not use imake, but that's probably far from trivial to fix. Regards! --