home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / hp / 12774 < prev    next >
Encoding:
Internet Message Format  |  1992-11-10  |  2.2 KB

  1. Path: sparky!uunet!ogicse!emory!swrinde!sdd.hp.com!hp-col!hpfcnfs.sde.hp.com!mjs
  2. From: mjs@fc.hp.com (Marc Sabatella)
  3. Newsgroups: comp.sys.hp
  4. Subject: Re: Where is regcmp on HP 9000/750?
  5. Message-ID: <BxIp05.89t@fc.sde.hp.com>
  6. Date: 10 Nov 92 20:31:16 GMT
  7. Article-I.D.: fc.BxIp05.89t
  8. References: <40678@sdcc12.ucsd.edu>
  9. Sender: news@fc.sde.hp.com (Notes Administrator)
  10. Reply-To: marc@hpmonk.fc.hp.com
  11. Organization: Hewlett-Packard Company
  12. Lines: 47
  13. X-Newsreader: TIN [version 1.1.4 PL6]
  14.  
  15. richard g. adair (xm9@sdcc12.ucsd.edu) wrote:
  16.  
  17. : The number of UNIX linking options for some of the X programs are
  18. : getting a bit silly.  A computer should be able to do these things
  19. : for you.  How about changing the linker to search an index, instead
  20. : of the direct library files.  Something like:
  21. :     {
  22. :        Loop on unresolved functions
  23. :         Linker needs sin finction
  24. :         {
  25. :         Search /usr/lib/library.index
  26. :         Hmmm, sin is in -lm
  27. :         Insert -lm automatically into path
  28. :         Search for dependencies and auto insert required libraries
  29. :         Warn user "#include <math.h>" not in source
  30. :         }
  31. :     }
  32. :     Sort libraries by order dependencies
  33. :     Echo inserted -l options to user
  34.  
  35. Domain does something very similar to this, and OSF (remember them :-)
  36. considered such a strategy as well.  The idea actually goes back to Multics.
  37.  
  38. If there were some standard for doing this, people would likely implement it,
  39. as it is a reasonably good idea.  As it is, though, everyone would have their
  40. own variations on this algorithm - especially the maintenance and format of
  41. your "library.index" file).  If everyone were to implement it the way they say
  42. fit, it would only exacerbate the problem of linking Motif applications rather
  43. than fix it.
  44.  
  45. From a technical perspective, this mechanism would need an escape clause - a
  46. way to explicitly set the search order when you wanted to.
  47.  
  48. --
  49. Amendment 2 - Shame On You, Colorado
  50. --
  51. Marc Sabatella
  52. marc@hpmonk.fc.hp.com
  53. --
  54. a disgusted resident of the first state in history of the union
  55. to enact a constitutional amendment that explicitly legalizes discrimination
  56. against a particular minority
  57. --
  58. All opinions expressed herein are my personal ones
  59. and do not necessarily reflect those of HP or anyone else.
  60.