home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.linux
- Path: sparky!uunet!ods!david
- From: david@ods.com (David Engel)
- Subject: Re: /lib/libc.2.2.2 problems
- Message-ID: <1992Aug12.141759.23858@ods.com>
- Organization: Optical Data Systems, Inc.
- X-Newsreader: Tin 1.1 PL4
- References: <1992Aug11.215732.28525@doug.cae.wisc.edu>
- Date: Wed, 12 Aug 1992 14:17:59 GMT
- Lines: 40
-
- kevins@cae.wisc.edu (Kevin Schroedel) writes:
- :
- : I have caught this thread a couple of times in comp.os.linux but
- : can't seem to find the messages that say how to resolve the problem. When
- : I run xgames programs like xpuzzle or othello, I get the messages
- : /lib/libc.2.2.2
- : /lib/libm.2.2.2
- : and then the program dies.
- : At one point, I saw a posting that said the ldd was responsible for the
- : message but didn't explain why the programs just die afterward. Is this
- : a GCC problem? Is it an X problem? I have tried compiling my own test
- : programs with and without shared libraries and /lib/libc.2.2.2 seems
- : to work just fine.
-
- OK, one more time, with feeling ...
-
- The problem is NOT caused by ldd. In fact, it is beause of ldd that
- this problem is relatively easy to diagnose.
-
- Every Linux program has a special function called by the startup code
- before main. Normally, this function informs the kernel about the
- required shared libraries and returns. However, when the program is
- run in a special way, typically by ldd, the function prints the names
- of the required libraries on stdout and exits.
-
- This is the output you are seeing. The only way you should see this
- output when running a program normally (i.e. not from ldd), is if the
- startup code gets re-executed. There are several things which could
- cause this to happen but the most common is the use of mismatched
- shared libraries.
-
- Any program linked with the shared X libraries MUST be linked with the
- EXACT SAME shared C and math libraries which were used to create the
- shared X library image.
-
- David
- --
- David Engel Optical Data Systems, Inc.
- david@ods.com 1101 E. Arapaho Road
- (214) 234-6400 Richardson, TX 75081
-