From owner-freebsd-current Fri Nov 19 9:40:54 1999 Delivered-To: freebsd-current@freebsd.org Received: from mailgw1a.lmco.com (mailgw1a.lmco.com [192.31.106.7]) by hub.freebsd.org (Postfix) with ESMTP id DB2C014CE0 for ; Fri, 19 Nov 1999 09:40:49 -0800 (PST) (envelope-from george.w.dinolt@lmco.com) Received: from emss02g01.ems.lmco.com (emss02g01.ems.lmco.com [198.7.15.39]) by mailgw1a.lmco.com (8.8.8/8.8.8) with ESMTP id KAA02579; Fri, 19 Nov 1999 10:40:40 -0700 (MST) Received: from CONVERSION-DAEMON by lmco.com (PMDF V5.2-32 #38887) id <0FLG00E01H3MF7@lmco.com>; Fri, 19 Nov 1999 10:40:38 -0700 (MST) Received: from wdl1.wdl.lmco.com ([137.249.32.1]) by lmco.com (PMDF V5.2-32 #38887) with ESMTP id <0FLG000NRH3LGO@lmco.com>; Fri, 19 Nov 1999 10:40:33 -0700 (MST) Received: from lmco.com (ird45 [137.249.32.45]) by wdl1.wdl.lmco.com (8.8.8+Sun/8.8.8) with ESMTP id JAA18575; Fri, 19 Nov 1999 09:40:29 -0800 (PST) Date: Fri, 19 Nov 1999 09:40:29 -0800 From: "George W. Dinolt" Subject: RE: XFree86 3.3.5 [LONG] To: freebsd-current@freebsd.org, roberto@eurocontrol.fr Message-id: <38358B8D.C8E43B4F@lmco.com> MIME-version: 1.0 X-Mailer: Mozilla 4.7 [en] (X11; U; SunOS 5.7 sun4u) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT X-Accept-Language: en Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I have been able to get XFree86 to build and install (except for the aout libraries) under -current with the 2.95.2 gcc compilers. It turns out that under the new gcc in -current (2.95.2), the cpp built only defines GNUC (touch /tmp/foo.h;cpp -dM /tmp/foo.h). If one looks at the variables defined by cpp in FreeBSd-3.x one sees that __FreeBSD__ and i386 are defined. These are used by the Imake.cf file in XFree86/work/xc/config/cf to determine which "operating system" to configure with. (imake uses cpp to most of its dirty work.) Once I had worked that out, I developed a "cheat", I added #define __FreeBSD__ 4 #define i386 1 to the Imake.cf file just before the usage of __FreeBSD__ in the file. Once I did this, the build worked as expected. The output is usable, i.e. I built fvwm2 and was able to use my X system. Of course, your mileage may vary. Note that I just built the SVGA server, but I assume that the others would also work, since as part of my playing around, I did compile them. This approach is clearly not the "right" one. It may be that one should have cpp, by default, define operating system and processor type variables as is done on FreeBSD 3.x and the 2.95.2 version of cpp on sparc (solaris). This is what the XFree86 system expects. I haven't had time to figure out how to get cpp to do this. Maybe someone with more knowledge can work this out. -- Regards, George W. Dinolt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message