linking X library with libc-5

linking X library with libc-5

Post by Sung Kan » Sat, 18 Apr 1998 04:00:00



Does anybody know how to link X libraries with libc-5.  Thanks.

- Sung

 
 
 

1. problems upgrading libraries - libc-5.0.9 -> libc-5.2.18

-----BEGIN PGP SIGNED MESSAGE-----

hi,

i'm having a major problem upgrading to libc-5.2.18 from libc-5.0.9.
my system is already ~85% ELF, running linux 1.2.11.

here's what i do:

1) install gcc 2.7.2 binaries

2) install binutils-2.6.0.2.bin

3) install ld.so-1.7.14

4) install libc-5.2.18.bin as per instructions:
     cd /
     rm -f /usr/lib/libc.so /usr/lib/libm.so
     rm -f /usr/include/iolibio.h /usr/include/iostdio.h
     rm -f /usr/include/ld_so_config.h /usr/include/localeinfo.h
     rm -rf /usr/include/netinet /usr/include/net /usr/include/pthread
     tar -xzf libc-5.2.18.bin.tar.gz

so, i've got three independent problems. A is minor B and C are major.

A) the ldconfig that comes with ld.so-1.7.14 doesn't work for me.  if
i compile it myself though, it works fine.  no big deal really but i
would think it should work 'out of the box'.

B) everything works ok until i install the new libc.  after installing
the new libc, a variety of commands fail to work, including:
ls, whereis, clear, rm, etc.  basically, a lot of /usr/bin stops
working.  that is, if i try to do a ls, i see nothing.  it just
doesn't list anything but returns no errors.

any ideas about this?  a lot of /usr/bin was updated using slackware
3.0 to get an ELF system and perhaps this wasn't the best choice.
where the hell is ls kept?  i haven't been able to figure out what to
d/l from tsx-11 yet so i can compile my own ls, especially one that is
statically linked for these events.

any ideas?  anyone know where i can find the programs in /usr/bin?

C) finally, after upgrading to the new libm (libm.so.5.0.5) programs will
no longer compile, i always get the same error -
/usr/lib/libm.so: undefined reference to `__errno_location'

using libm.so.5.0.0 however elminates this error.

so, what's going on!  my system is being too weird.

- -pjf


U of Utah biochem grad student in the Bass lab - zinc fingers + dsRNA!

zifi runs LINUX 1.2.11 -=-=-=WEB=-=-=->  http://zifi.genetics.utah.edu

-----BEGIN PGP SIGNATURE-----
Version: 2.6.2
Comment: Say NO to GAK! - fight for your privacy!

iQCVAwUBMOcJ503Qo/lG0AH5AQEiQQP/UTFYJPnfe1RB7GFmuo0v0f3U5bheP+j4
3DED+ItXNM5y9A70V+UGP2//yVwtjL8GDJA3N+ai3QdjhfjGndcVIsQIoVWmYvU3
Rc8TdC5PwEqivA68eU8jqBPSe03PxP9EKWsrg4HPuCgZJQGR8S/BO/KEAwLv5Klf
TNh49zokY5w=
=qD9k
-----END PGP SIGNATURE-----
--

U of Utah biochem grad student in the Bass lab - zinc fingers + dsRNA!

zifi runs LINUX 1.2.11 -=-=-=WEB=-=-=->  http://zifi.genetics.utah.edu

2. where to find tip dialer?

3. libc.a and libc.so, libc.so.1libc.so.2, where is my library?

4. Routing on Solaris 2.5.1

5. Linking to static libc (libc.a)

6. iconv tables

7. upgrading from libc-5.0.9 -> libc-5.2.18 brakes system?

8. C Compiler - Ulong, Int32, UInt32

9. linking static library against another library

10. Linking a .a library into a .so library

11. dynamic link libraries and static libraries

12. Question: Inclusion of shared libraries during linking of shared libraries

13. Problem linking when using C++ library in a library on Solaris