X-pop3-spooler: POP3MAIL 2.1.0 b 4 980420 -bs- Date: Tue, 13 Oct 1998 16:24:10 -0500 (EST) From: Steven Snyder X-Sender: ssnyder AT indy1 To: Marc Lehmann cc: Jason Ahrens , beastium Subject: Re: Pgcc and Imake? In-Reply-To: <19981013112748.C1452@cerebro.laendle> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: Marc Lehmann Status: RO Content-Length: 2385 Lines: 66 I'm afraid it takes more than changing #ifdef linux in the Imake.cf to #ifdef __linux I just tried it with XFree86, which won't build with pgcc v1.1. (By "won't build" I mean that the symbol LinuxMachineDefines is not evaluated.) The #ifdef change resulted in XFree not being able to find some of its header files. Sigh. I sure would like to build XFree with pgcc. On Tue, 13 Oct 1998, Marc Lehmann wrote: > On Sun, Oct 11, 1998 at 03:55:21AM -0400, Jason Ahrens wrote: > > Hows the best way to start this... > > > > I guess I should start by saying I am not subscribed to this list. > > > > Ok. Since I installed pgcc (1.1) programs that use Imake to generate > > makefiles no longer compile. > > > > For example, this is a line from the generated 'makefile' > > CXXSTD_DEFINES = -Dlinux LinuxMachineDefines -D_POSIX_C_SOURCE=199309L > > -D_POSIX_SOURCE -D_XOPEN_SOURCE=500L -D_BSD_SOURCE -D_SVID_SOURCE $( > > CXXPROJECT_DEFINES) > > > > The problem lises with the LinuxMachineDefines portion. That should not be > > there and in fact appears it should be '-D__i386__' as while sorting > > Thats a bug in imake. As a workaround you could change the > > #ifdef linux > > in the Imake.cf to > > #ifdef __linux > > > I have tried playing around with the specs file a little, with no success. > > Not understanding exactly how it works I put it back to how it was and > > left it. > > Imake in its naivity specifies -ansi when it invokes the preprocessor but > "linux" mustn't be defined on any ansi compiler. The fix would be either to > fix imake not to call cpp with -ansi or fix Imake.cf like above. > > > Any help in this matter would be greatly appreciated. Obviously my current > > solution is not the prefered method as it will break again next I update > > X. > > I hope the next time you upgrade, X will be fixed (but I have no information > about wether this bug has been fixed in X already). > > > -----==- | > ----==-- _ | > ---==---(_)__ __ ____ __ Marc Lehmann +-- > --==---/ / _ \/ // /\ \/ / pcg AT goof DOT com |e| > -=====/_/_//_/\_,_/ /_/\_\ --+ > The choice of a GNU generation | > | >