www.delorie.com/archives/browse.cgi   search  
Mail Archives: pgcc/1998/10/13/19:41:10

X-pop3-spooler: POP3MAIL 2.1.0 b 4 980420 -bs-
Message-ID: <19981013112748.C1452@cerebro.laendle>
Date: Tue, 13 Oct 1998 11:27:48 +0200
From: Marc Lehmann <pcg AT goof DOT com>
To: Jason Ahrens <jahrens AT magma DOT ca>
Cc: beastium <beastium-list AT Desk DOT nl>
Subject: Re: Pgcc and Imake?
Mail-Followup-To: Jason Ahrens <jahrens AT magma DOT ca>,
beastium <beastium-list AT desk DOT nl>
References: <Pine DOT LNX DOT 3 DOT 96dg4 DOT 981011153916 DOT 24693A-100000 AT Cougar DOT CanadianWilds DOT org>
Mime-Version: 1.0
X-Mailer: Mutt 0.93.2i
In-Reply-To: <Pine.LNX.3.96dg4.981011153916.24693A-100000@Cougar.CanadianWilds.org>; from Jason Ahrens on Sun, Oct 11, 1998 at 03:55:21AM -0400
X-Operating-System: Linux version 2.1.125 (root AT cerebro) (gcc version pgcc-2.92.09 19980921 (gcc2 ss-980609 experimental))
Status: RO
Lines: 47

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                        |
                                                          |

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019