From owner-freebsd-current@FreeBSD.ORG Fri Dec 26 09:41:43 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AAA4716A4CE for ; Fri, 26 Dec 2003 09:41:43 -0800 (PST) Received: from mx1.datanet.hu (mx1.datanet.hu [194.149.13.165]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0A6E843D39 for ; Fri, 26 Dec 2003 09:41:42 -0800 (PST) (envelope-from sziszi@bsd.hu) Received: from momo.buza.adamsfamily.xx (nilus-1031.adsl.datanet.hu [195.56.92.15]) by mx1.datanet.hu (DataNet) with ESMTP id 6D156D9D01 for ; Fri, 26 Dec 2003 18:41:40 +0100 (CET) Received: from momo.buza.adamsfamily.xx (localhost [127.0.0.1]) hBQHfduH001096 for ; Fri, 26 Dec 2003 18:41:39 +0100 (CET) (envelope-from sziszi@bsd.hu) Received: (from sziszi@localhost) by momo.buza.adamsfamily.xx (8.12.10/8.12.10/Submit) id hBQHfd4F001095 for current@freebsd.org; Fri, 26 Dec 2003 18:41:39 +0100 (CET) (envelope-from sziszi@bsd.hu) X-Authentication-Warning: momo.buza.adamsfamily.xx: sziszi set sender to sziszi@bsd.hu using -f Date: Fri, 26 Dec 2003 18:41:38 +0100 From: Szilveszter Adam To: current@freebsd.org Message-ID: <20031226174138.GA1045@momo.buza.adamsfamily.xx> Mail-Followup-To: Szilveszter Adam , current@freebsd.org References: <20031226141937.GA78132@FreeBSD.org.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031226141937.GA78132@FreeBSD.org.ua> User-Agent: Mutt/1.5.5.1i Subject: Re: cpp -traditional broken? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Dec 2003 17:41:43 -0000 Hello, On Fri, Dec 26, 2003 at 04:19:37PM +0200, Ruslan Ermilov wrote: > I was wondering why my today's rebuild of XFree86-4-clients > gave me the black-n-white xdm(1) greeting window, upsetting > me a bit. It turned out to be a problem with recent cpp(1) > version. > > The /usr/X11R6/lib/X11/xdm/Xresources file is generated by > cpp(1); on RELENG_4, the following command > > echo '/**/#if FOO' | cpp -P -traditional > > gives you "#if FOO" (as expected by the XFree86 build), > while on 5.2-CURRENT it gives you nothing, and results in > missing parts of the Xresources file, i.e., the new cpp(1) > treats '/**/#if' as a preprocessing directive, while the > old cpp(1) version didn't. > > This is with system GCC 3.3.3 compiler. Is this a known > issue? I don't know if it is known or not, but this exact issue has bitten me yesterday when I tried to build an older X port (olvwm) and there it resulted in the build being broken. I had to fix it by manually editing the file in question to include the correct syntax. -- Regards: Szilveszter ADAM Budapest Hungary