www.delorie.com/archives/browse.cgi   search  
Mail Archives: pgcc/1998/10/13/22:24:42

X-pop3-spooler: POP3MAIL 2.1.0 b 4 980420 -bs-
Date: Tue, 13 Oct 1998 18:24:42 -0400 (EDT)
From: Jason Ahrens <jahrens AT magma DOT ca>
To: Steven Snyder <ssnyder AT indy DOT net>
cc: Marc Lehmann <pcg AT goof DOT com>, beastium <beastium-list AT Desk DOT nl>
Subject: Re: Pgcc and Imake?
In-Reply-To: <Pine.SUN.3.96.981013161932.8949A-100000@indy1>
Message-ID: <Pine.LNX.3.96dg4.981013181719.2185A-100000@Cougar.CanadianWilds.org>
MIME-Version: 1.0
Sender: Marc Lehmann <pcg AT goof DOT com>
Status: RO
Lines: 57

On Tue, 13 Oct 1998, Steven Snyder wrote:

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

My fix is the one I've found so far that works 'universally'.

That it involes is this change in the 'Imake.cf' file:

You will find a section that looks like this:
#ifdef linux
# define MacroIncludeFile <linux.cf>
# define MacroFile linux.cf
# undef linux


Modify it to look like this:
#ifdef linux
# define i386
# define MacroIncludeFile <linux.cf>
# define MacroFile linux.cf
# undef linux

(obviously this fix is only good for 'i386' machines)

However I ran into a huge problem with my pgcc compiled X. I don't know
where this problem originates from, but it required recompiling *all* my X
apps. The programs could not load the 'old' libraries. This is not much a
deal except for programs like netscape and star office for which I have no
source. I got those working again by restoring my 'old' libraries to
/usr/local/oldX11lib and writing a wrapper script for netscape, etc... to
put an LD_LIBRARY_PATH=/usr/local/oldX11lib for them and they work again.
I do not know the reason why that might have happened such, but it did. If
anyone has any theories I'd be interested. I don't know if it's "fixable"
or not.


Jason
--
 I pray that all those who love me will forgive all that I say and do.
        That those who do not know me will not pass judgement,
                 But will instead listen to my story,
    And that others in this life will realize that being who I am,
                  Is nothing for me to be ashamed of.
                                                -- Harlequin Raven

- Raw text -


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