From owner-freebsd-ports@FreeBSD.ORG Tue Sep 25 14:38:19 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8D2C91065673; Tue, 25 Sep 2012 14:38:19 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from dirj.bris.ac.uk (dirj.bris.ac.uk [137.222.10.78]) by mx1.freebsd.org (Postfix) with ESMTP id 46A538FC27; Tue, 25 Sep 2012 14:38:19 +0000 (UTC) Received: from ncsc.bris.ac.uk ([137.222.10.41]) by dirj.bris.ac.uk with esmtp (Exim 4.72) (envelope-from ) id 1TGWHC-0005vt-43; Tue, 25 Sep 2012 15:38:18 +0100 Received: from mech-cluster241.men.bris.ac.uk ([137.222.187.241]) by ncsc.bris.ac.uk with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1TGWHB-0000LN-Jb; Tue, 25 Sep 2012 15:38:17 +0100 Received: from mech-cluster241.men.bris.ac.uk (localhost [127.0.0.1]) by mech-cluster241.men.bris.ac.uk (8.14.5/8.14.5) with ESMTP id q8PEcHwX022852; Tue, 25 Sep 2012 15:38:17 +0100 (BST) (envelope-from mexas@mech-cluster241.men.bris.ac.uk) Received: (from mexas@localhost) by mech-cluster241.men.bris.ac.uk (8.14.5/8.14.5/Submit) id q8PEcHtv022851; Tue, 25 Sep 2012 15:38:17 +0100 (BST) (envelope-from mexas) Date: Tue, 25 Sep 2012 15:38:17 +0100 (BST) From: Anton Shterenlikht Message-Id: <201209251438.q8PEcHtv022851@mech-cluster241.men.bris.ac.uk> To: mexas@bristol.ac.uk, zeising@daemonic.se In-Reply-To: <5061A9D6.2090504@daemonic.se> Cc: freebsd-x11@freebsd.org, 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 Reply-To: mexas@bristol.ac.uk List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Sep 2012 14:38:19 -0000 From zeising@daemonic.se Tue Sep 25 14:52:17 2012 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. $ grep -c imake /usr/ports/INDEX-10 291 This issue must cause problems for quite a few other ports. So is it an agreed policy to migrate away from imake in time for 10-release? This seems an important strategic issue to discuss. My port is relatively small, and I probably can, with time and help, migrate to BSD make, for example. Just don't want to do this, unless this is the majority opinion, and the likely direction for the future. Thanks Anton