[ale] libc5 vs libc6

Pinwu Xu pxu at eng.ua.edu
Tue May 5 18:08:47 EDT 1998


On Mon, 4 May 1998, Chris Ricker wrote:

> On  4 May, Nomad the Wanderer wrote:
> > I moved the /lib/libc.so.5 and it looked happy, except mount wouldn't
> > run anymore.  I figured that was a bad thing.  I linked libc.so.5 to
> > libc.so.6 and it reported "sucess", however it wasn't mounting the
> > filesystems.  When I put the original links back, it worked (and still
> > is).
> 
> Do an ldd /bin/mount.  You'll probably find that it's linked against
> libc5.  Simply recompile against glibc and you should be set.
> 
> BTW, there's a script floating around (don't remember the name
> off-hand) that will tell you all the files on your system that are
> a.out, elf, linked against what libraries, and things like that.  I
> think it's intended for finding unused libs (so you can delete them to
> save space), but it might be useful for finding everything linked
> against libc5....  If you can't find it, you can make your own with
> find, file, and ldd.

What would be a proper way upgrading from libc5 to libc6? I am using
a Slackware based system, have put egcs1.0.3pre as system compiler, 
glibc2.0.6 as second library, however, I still have problem compile 
programs using "stat", etc, for example, the "enscript" compiling
ends with: 

make[2]: Entering directory `/home/pxu/tmp/enscript-1.5.0/src' gcc -b
i486-linuxglibc2 -nostdinc -I/usr/i486-linuxglibc2/include
-I/usr/lib/gcc-lib/i486-linuxglibc2/egcs-2.90.28/include
-L/usr/i486-linuxglibc2/lib -o enscript main.o psgen.o util.o prt_lpr.o
../afmlib/libafm.a ../compat/libcompat.a -lm main.o: In function `main':
main.o(.text+0x127f): undefined reference to `stat'
In function `download_font': util.o(.text+0x3334): undefined reference to
`stat' util.o(.text+0x3365): undefined reference to `stat' util.o: In
function `file_lookup': util.o(.text+0x7c2d): undefined reference to
`stat' ../afmlib/libafm.a(afm.o): In function `afm_create': 
afm.o(.text+0x29a): undefined reference to `stat' collect2: ld returned 1
exit status make[2]: *** [enscript] Error 1 make[2]: Leaving directory
`/home/pxu/tmp/enscript-1.5.0/src' make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/pxu/tmp/enscript-1.5.0'
make: *** [all-recursive-am] Error 2 

Will I have to use the binutils for glibc2 to use it? I ran into
some problem trying to compile egcs using the second library, anybody
has luck with this?

TIA.

Pinwu






More information about the Ale mailing list