From: Mitchum Dsouza (mitch@spuddy.uucp)
Date: 05/07/93


From: mitch@spuddy.uucp (Mitchum Dsouza)
Subject: Re: problem compiling ghostscript
Date: Fri, 7 May 1993 17:53:58 GMT


Hi

> I'm trying to get ghostscript to output to my Star Gemini-10X
> printer by creating a new driver based (heavily) on the current
> 9-pin epson driver. I'm having trouble, though, with the ghostscript
> "make".
>
> It "makes" fine, but when I try to run it gs can't find
> "/lib//libm.so.4". I've grep'd the make and source files looking
> for that extra "/" before "libm", but no luck. I'm using gcc 2.3.3,
> and I have no trouble compiling other programs. Where do I look for
> the answer? Thanks in advance. E-mail responses, please. I'll be
> happy to share them with others, but I think that this has come up
> before. I just couldn't remember or locate the answer.

The answer is to get libm.so from tsx-11.mit.edu in the
/pub/linux/packages/GCC/image* file unpack it in / and then make the
appropriate links in /lib (libc.so.4 -> linc.so.4.3.3) and similarly with libm.

The extra / in "/lib//libm.so.4" is just the way files are parsed by the
dynamic loader __load.o. It initially searches /usr/lib, then /usr, and then /
in order to find the library it requires. RSN we will have support for
LD_LIBRARY_PATH so you can put libraries where you like. So what I am saying
is that the extra / is the consequence of the library builder, (HLU for
libc.so, libm.so and others), creating the library name with a leading /. If
however he created it with no / as in libc instead of /libc, then you wouldn't
see the extra /. Anyway this doesn't hurt anything it is just less
esthetically pleasing.

Infact HLU could to modify the code for __load.o in the libc stub so as to
provide a more "correct" output as it is in the error output stage and thus
not increasing loading time of the binary, but this is up to him. You could
get the library sources yourself, pull out __load.c and modify it to suit your
own taste if you so desire.

Hope this makes it more clear.

Mitch

-- 

* Meeeow ! Call Spuddy on (0203) 364436/362560 for FREE mail & Usenet access *