problem building XFree86 (pre-3.3.6) on a recent Freebsd 4.0-current

2000-01-05 Thread David Dawes

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: [EMAIL PROTECTED]
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 [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: problem building XFree86 (pre-3.3.6) on a recent Freebsd 4.0-current

2000-01-05 Thread Mark Newton

On Wed, Jan 05, 2000 at 09:15:07PM -0800, David O'Brien wrote:

  Correct.  The change is due to philosophical changes by the GCC
  development team.  GCC 2.95.2's cpp built from cccp.c is now a pure
  preprocessor and knows much less about the world than it previously did.
  In 2.95.2 there is now an additional cpp that is build using gcc.c and is
  a driver for the cccp.c cpp.

I dare you to try saying that again with a mouth full of peanuts!

   - mark :-)

-- 
Mark Newton   Email:  [EMAIL PROTECTED] (W)
Network Engineer  Email:  [EMAIL PROTECTED]  (H)
Internode Systems Pty Ltd Desk:   +61-8-82232999
"Network Man" - Anagram of "Mark Newton"  Mobile: +61-416-202-223


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message