From owner-freebsd-current Wed Jan 5 20:51:13 2000 Delivered-To: freebsd-current@freebsd.org Received: from public.xfree86.org (xf86.isc.org [204.152.184.37]) by hub.freebsd.org (Postfix) with ESMTP id 6372614F7B for ; Wed, 5 Jan 2000 20:51:08 -0800 (PST) (envelope-from dawes@public.xfree86.org) Received: (from dawes@localhost) by public.xfree86.org (8.9.1/8.9.1) id UAA20844; Wed, 5 Jan 2000 20:47:08 -0800 (PST) Date: Wed, 5 Jan 2000 20:47:07 -0800 From: David Dawes To: devel@xfree86.org Cc: current@freebsd.org Subject: problem building XFree86 (pre-3.3.6) on a recent Freebsd 4.0-current Message-ID: <20000105204707.A14003@xfree86.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre3i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I've just been doing a build test of the pre-3.3.6 version of XFree86 on a recent FreeBSD 4.0-current, and I've noticed that /usr/libexec/cpp doesn't predefine the symbol __FreeBSD__. imake uses /usr/libexec/cpp. Is it intentional that /usr/libexec/cpp not predefine any symbols like this? I've changed imake to use /usr/bin/cpp instead, and it seems to work on 3.4 and 4.0. Should this be OK on all FreeBSD versions? --- imakemdep.h 1999/07/29 09:22:27 3.24.2.14 +++ xc/config/imake/imakemdep.h 2000/01/06 04:39:59 @@ -265,8 +265,11 @@ #ifdef _CRAY #define DEFAULT_CPP "/lib/pcpp" #endif -#if defined(__386BSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD__) +#if defined(__386BSD__) || defined(__NetBSD__) || defined(__OpenBSD__) #define DEFAULT_CPP "/usr/libexec/cpp" +#endif +#if defined(__FreeBSD__) +#define DEFAULT_CPP "/usr/bin/cpp" #endif #if defined(__sgi) && defined(__ANSI_CPP__) #define USE_CC_E David -- David Dawes Email: dawes@XFree86.org Co-founder/President, The XFree86 Project, Inc Phone: +1 570 775 9502 http://www.xfree86.org/ Fax: +61 2 9897 3755 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message