home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / unix / bsd / 10140 < prev    next >
Encoding:
Internet Message Format  |  1992-12-12  |  3.5 KB

  1. Path: sparky!uunet!enterpoop.mit.edu!snorkelwacker.mit.edu!ai-lab!hal.gnu.ai.mit.edu!ericy
  2. From: ericy@hal.gnu.ai.mit.edu (Eric Youngdale)
  3. Newsgroups: comp.unix.bsd
  4. Subject: Re: Shared lib benchmarks, and experiences
  5. Date: 12 Dec 1992 22:10:03 GMT
  6. Organization: /etc/organization
  7. Lines: 58
  8. Distribution: usa
  9. Message-ID: <1gdnvrINNp80@life.ai.mit.edu>
  10. References: <1992Dec10.150750.2106@rwwa.COM> <1992Dec10.200232.5557@serval.net.wsu.edu> <veit.724064215@du9ds3>
  11. NNTP-Posting-Host: hal.gnu.ai.mit.edu
  12.  
  13. In article <veit.724064215@du9ds3> veit@du9ds3.fb9dv.uni-duisburg.de writes:
  14. >You see this from the Linux hacker's aspect only. There are many people
  15. >who cannot afford recompiling anything from scratch any time, but want
  16. >to have binaries. This is crucial in particular for X11. We already have
  17. >different versions of X11 out (without shared libraries), what we certainly
  18. >do not need are different versions of applications and libraries, such that
  19. >every new program brings in its special set of shared libs. You may distribute
  20. >object files, to be linked at the local system, but there are even people
  21. >out there who do not have the space of ~7MB for kernel sources and objects
  22. >available; they run into problems with for instance a XServer Link kit as well.
  23.  
  24.     Perhaps you do not understand.  The way our libraries are made, you can
  25. just drop a new version into the /lib directory, and add a symlink, and you are
  26. ready to run the same binaries with the new sharable library.  There is no need
  27. to relink, and you can delete the old version of the sharable library any time
  28. you wish.
  29.  
  30. >>FYI, we have been doing
  31. >
  32. >>cp xxxx.so.x.y /lib
  33. >>cd /lib
  34. >>ln -sf xxxx.so.x.y xxxx.so.x
  35. >
  36. >>for quite a while under linux.
  37. >
  38. >This means three patches in the libc, and you have three versions of it on
  39. >the disk (for the really old, the middle old, and the new applications). 
  40. >If you play this game with the X libraries,...
  41. >I thought you wanted to reduce your disk space requirements :-)
  42.  
  43.     This was true for older versions, but H.J was trying to say that we
  44. have come up with a way of making "plug compatible" libraries, so you can drop
  45. in a new library and delete the old version.  We use jump tables to ensure that
  46. an entry point for each function is always located at the same address, and we
  47. have tools to ensure that each global data item also remains at a fixed
  48. address.  We have recently overcome the obstacles that had prevented us from
  49. preparing the sharable X libraries in a similar way, and I expect that the next
  50. X release for linux will also be of a plug compatible variety.  These will be
  51. made *without* source code modifications to the X library source code, btw. 
  52. The worst case would be that you might have to patch each X Makefile, and it is
  53. unclear if that would even be needed.
  54.  
  55. >>It is not impossible under Linux. But that belongs to another story.
  56. >
  57. >It is not impossible under 386bsd as well. But in contrast to Linux, we do
  58. >not recommend hacking to the hell for the casual user, and it won't be
  59. >necessary in the next future.
  60.  
  61.     Where did that come from?  I don't think that anyone recommends a lot
  62. of hacking for the casual user.  It is true that the first sharable libraries
  63. under linux were done so that everything needed to be relinked with a new
  64. version, but as you might imagine, that got old real fast.  Even hackers don't
  65. get off on something quite so mundane.  The plug compatible libraries were
  66. developed in response to this, and so far I think that most people have been
  67. quite satisfied with how it turned out.
  68.  
  69. -Eric
  70.  
  71.