home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / sun / misc / 5330 < prev    next >
Encoding:
Internet Message Format  |  1992-11-18  |  2.1 KB

  1. Path: sparky!uunet!ferkel.ucsb.edu!taco!rock!stanford.edu!agate!doc.ic.ac.uk!uknet!sersun1!plasparc3!ajn
  2. From: ajn@essex.ac.uk (Alastair Neil)
  3. Newsgroups: comp.sys.sun.misc
  4. Subject: Re: Installing a shared library without screwin
  5. Message-ID: <6500@sersun1.essex.ac.uk>
  6. Date: 19 Nov 92 00:01:31 GMT
  7. References: <mark.722062866@coombs>
  8. Sender: news@sersun1.essex.ac.uk
  9. Reply-To: ajn@essex.ac.uk
  10. Organization: Dept. of Physics, University of Essex
  11. Lines: 47
  12.  
  13. In article 722062866@coombs, mark@coombs.anu.edu.au (Mark) writes:
  14. ->On SunOS 4.x.x:
  15. ->I've heard a lot of horror stories about mistakes with libc.so replacing and
  16. ->how dynamic library loading programs die real quick if you tamper with their
  17. ->library.
  18. ->
  19. ->What is the right/best way to replace a libc.so with your site customised
  20. ->version? I dont want to have to go find the installation tape everytime
  21. ->I attempt it. Do I use 'cp' or 'cat mylib > /usr/lib/libc.so' or what? Im a
  22. ->bit worried that a context switch will happen halfway through it and bugger
  23. ->it all up.
  24.  
  25. having hosed my system once by careless instalation of a libc, I now
  26. 1) first test the lib in a safe environment eg:
  27. setenv LD_LIBRARY_PATH /users/staff/ajn/newlibdir:/users/X11R5/lib:/usr/lib
  28.  
  29. now all dynamically linked executables will find the new lib first, if it is 
  30. bad just do
  31.  
  32. setenv LD_LIBRARY_PATH /users/X11R5/lib:/usr/lib
  33.  
  34. (back to normal)
  35.  
  36. when things are right
  37.  
  38. 2) copy the new shared library to a higher revision number, i.e.
  39.  
  40. old libc: /usr/lib/libc.so.1.6
  41.  
  42. cp ~ajn/newlibdirlibc.so /usr/lib/libc.so.1.6.1
  43.  
  44. (now make sure the permissions are the same between libc.so.1.6 and libc.so.1.6.1)
  45.  
  46. cp ~ajn/newlibdir/libc.sa /usr/lib/libc.sa.1.6.1 
  47. (or link old .sa lib to new revision number)
  48.  
  49. cd /usr/lib
  50.  
  51. ldconfig 
  52.  
  53. you are off yehaa!!
  54. good luck
  55. ---
  56. +-----------------------------------------------------------------------------+
  57. |..Alastair Neil......0206-872861...............|                             |
  58. |..44-206-872861......[ajn@essex.ac.uk].........|       None Shall Sleep      |
  59. +-----------------------------------------------------------------------------+
  60.