home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / sun / admin / 9551 < prev    next >
Encoding:
Internet Message Format  |  1992-12-17  |  1.9 KB

  1. Path: sparky!uunet!think.com!barmar
  2. From: barmar@think.com (Barry Margolin)
  3. Newsgroups: comp.sys.sun.admin
  4. Subject: Re: How to update shared libraries?
  5. Date: 17 Dec 1992 19:03:59 GMT
  6. Organization: Thinking Machines Corporation, Cambridge MA, USA
  7. Lines: 33
  8. Message-ID: <1gqiuvINNj6m@early-bird.think.com>
  9. References: <1992Dec17.115050.9821@news.uni-stuttgart.de>
  10. NNTP-Posting-Host: telecaster.think.com
  11.  
  12. In article <1992Dec17.115050.9821@news.uni-stuttgart.de> jens@kssun3.rus.uni-stuttgart.de (Jens Schweikhardt 07151690270) writes:
  13. >On our Sparc Station with SUNOS 4.1.1 we have shared libraries
  14. ...
  15. >Now I ftp'd a binary from some other Sparc Station which on invocation
  16. >produced a linker warning:
  17. >ld.so: warning: /usr/lib/libc.so.1.6.1 has older revision than expected 7
  18.  
  19. Revision 7 is the version of libc that comes with SunOS 4.1.2.  This
  20. warning indicates that the binary was linked on a 4.1.2 system.
  21.  
  22. >So my libraries are not up to date. 
  23.  
  24. Your libraries are fine -- you have the most up-to-date version for 4.1.1.
  25. The problem is that the program you copied was compiled on a newer OS
  26. revision.  Running programs compiled on a newer OS is not guaranteed to
  27. work, since the newer compiler and includes may have references to features
  28. that didn't exist in the old revision.  You can ignore the warning and hope
  29. things work (they usually do, as there aren't many such differences between
  30. 4.1.1 and 4.1.2), you can upgrade the 4.1.1 system to a newer release, or
  31. you can recompile the program on the 4.1.1 system.
  32.  
  33.                      I can get from the same Sparc Station
  34. >the libraries with version 1.8 and 1.8.1. My question is if I can
  35. >just ftp these and put them in my /usr/lib and do a ldconfig.
  36.  
  37. No, that's pretty dangerous.  The newer shared libraries may expect new or
  38. modified system call interfaces.
  39.  
  40. -- 
  41. Barry Margolin
  42. System Manager, Thinking Machines Corp.
  43.  
  44. barmar@think.com          {uunet,harvard}!think!barmar
  45.