Mail Archives: pgcc/1998/10/13/22:24:42
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 -