home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / linux / 7995 < prev    next >
Encoding:
Text File  |  1992-08-12  |  2.1 KB  |  52 lines

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