| www.delorie.com/archives/browse.cgi | search |
| X-pop3-spooler: | POP3MAIL 2.1.0 b 4 980420 -bs- |
| Message-ID: | <19980921183053.12841@cerebro.laendle> |
| Date: | Mon, 21 Sep 1998 18:30:55 +0200 |
| From: | Marc Lehmann <pcg AT goof DOT com> |
| To: | PGCC Mailing List <beastium-list AT Desk DOT nl> |
| Subject: | Re: Can't build XFree86 with pgcc v1.1a |
| Mail-Followup-To: | PGCC Mailing List <beastium-list AT Desk DOT nl> |
| References: | <199809210303 DOT WAA01525 AT indy1 DOT indy DOT net> |
| Mime-Version: | 1.0 |
| In-Reply-To: | <199809210303.WAA01525@indy1.indy.net>; from Steve Snyder on Sun, Sep 20, 1998 at 06:38:38AM -0500 |
| X-Operating-System: | Linux version 2.1.122 (root AT cerebro) (gcc version pgcc-2.92.06 19980914 (gcc2 ss-980609 experimental)) |
| Status: | RO |
| Lines: | 32 |
On Sun, Sep 20, 1998 at 06:38:38AM -0500, Steve Snyder wrote:
>
> I get a fatal error when compiling each C source file. The problem is the
> string "LinuxMachineDefines", which is apparently undefined on my system.
> Here's a fragment of the compiler command line for each file:
>
> ... -Dlinux LinuxMachineDefines -D_POSIX_C_SOURCE_199309L ...
Well, I had this problem when I compiled XFree myself ;() configuring xfree
is tricky ;)
> I have sucessfully built this package on a RH v5.1 system using gcc
> v2.7.2.3, so I suspect some interaction with pgcc.
The problem is that config/xc/Imake.cf does:
#ifdef linux
and later:
# ifdef i386
both symbols mustn't be defined (at least not with -ansi), and imake
in its braindamage specifies -ansi when running cpp.
The fix is probably to #define i386 and linux in Imake.cf as well.
-----==- |
----==-- _ |
---==---(_)__ __ ____ __ Marc Lehmann +--
--==---/ / _ \/ // /\ \/ / pcg AT goof DOT com |e|
-=====/_/_//_/\_,_/ /_/\_\ --+
The choice of a GNU generation |
|
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |