[Gllug] C libraries on Red Hat 7.1

Darran D. Rimron-Molloy darran at rimron.co.uk
Sun Dec 23 03:32:50 UTC 2001


> > Can anyone shed light?
>
> Is this the same libc as normal programs are using, or is your gcc
> carefully linking everything you compile against a different
> libc/ld-linux.so.2?

Some shell outputs that kinda shed a little light on the matter, I hope...

---[start shell]---
(pts) /pub/microwindows/microwindows-0.89pre8/src/nanodesk  :o) gcc
freader.c -o freader
(pts) /pub/microwindows/microwindows-0.89pre8/src/nanodesk  :o) ldd freader
        libc.so.6 => /lib/i686/libc.so.6 (0x4001f000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
(pts) /pub/microwindows/microwindows-0.89pre8/src/nanodesk  :o) ./freader
nanodesk.ini

20663:  binding file /lib/i686/libc.so.6 to /lib/i686/libc.so.6: normal
symbol `_IO_funlockfile' [GLIBC_2.0]
20663:  binding file ./freader to /lib/i686/libc.so.6: normal symbol
`strlen' [GLIBC_2.0]
20663:  binding file ./freader to /lib/i686/libc.so.6: normal symbol
`malloc' [GLIBC_2.0]
20663:  symbol=_IO_funlockfile;  lookup in file=./freader
20663:  symbol=_IO_funlockfile;  lookup in file=/lib/i686/libc.so.6
20663:  symbol=_IO_funlockfile;  lookup in file=/lib/ld-linux.so.2

[munch much output - as commented on before]

20663:  binding file ./freader to /lib/i686/libc.so.6: normal symbol
`strncpy' [GLIBC_2.0]
::left file eater - I AM REAL OUTPUT!
20663:
20663:  calling fini: /lib/i686/libc.so.6
20663:

(pts) /pub/microwindows/microwindows-0.89pre8/src/nanodesk  :o) echo
$LD_DEBUG

(pts) /pub/microwindows/microwindows-0.89pre8/src/nanodesk  :o) gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-81)

(pts) /pub/microwindows/microwindows-0.89pre8/src/nanodesk  :o) egcs
freader.c -o freader
(pts) /pub/microwindows/microwindows-0.89pre8/src/nanodesk  :o) ldd freader
        libc.so.6 => /lib/i686/libc.so.6 (0x4001f000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
(pts) /pub/microwindows/microwindows-0.89pre8/src/nanodesk  :o) freader
nanodesk.ini
::left file eater - I AM REAL OUTPUT!

(pts) /pub/microwindows/microwindows-0.89pre8/src/nanodesk  :o) egcs -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)

(pts) /pub/microwindows/microwindows-0.89pre8/src/nanodesk  :o)
---[end shell]---

Ok, now I'm truely boggled.... gcc screwed?

---[start more shell]---
(pts) /pub/microwindows/microwindows-0.89pre8/src/nanodesk  :o) uname -a
Linux sophie.intra.digital-science.net 2.4.12 #5 Mon Dec 3 01:25:07 GMT 2001
i686 unknown

(pts) /pub/microwindows/microwindows-0.89pre8/src/nanodesk  :o) cat
/etc/redhat-release
Red Hat Linux release 7.1 (Seawolf)
---[end more shell]---

Heee-eeee-eeeeelp!

	-Darran



-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list