home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / hp / 10453 < prev    next >
Encoding:
Internet Message Format  |  1992-09-15  |  2.2 KB

  1. From: mjs@hpfcso.FC.HP.COM (Marc Sabatella)
  2. Date: Tue, 15 Sep 1992 20:00:44 GMT
  3. Subject: Re: get rid of dld.sl in C environment
  4. Message-ID: <7371313@hpfcso.FC.HP.COM>
  5. Organization: Hewlett-Packard, Fort Collins, CO, USA
  6. Path: sparky!uunet!europa.asd.contel.com!darwin.sura.net!zaphod.mps.ohio-state.edu!sdd.hp.com!scd.hp.com!hplextra!hpfcso!mjs
  7. Newsgroups: comp.sys.hp
  8. References: <1992Sep15.152135.10790@wrkgrp.COM>
  9. Lines: 33
  10.  
  11. In comp.sys.hp, jmd@wrkgrp.COM (Joseph M DeAngelo) writes:
  12.  
  13. > I am trying to statically link a C program on an HPUX 8
  14. > for use on an HP/UX 7 system.  Even though I use -Wl,-a,archive
  15. > on the cc command, I still get a dld.sl requirement.
  16.  
  17. Are you sure?  I used to do this all the time.  Since there was no 7.0 on the
  18. 700, I assume you are talking about either 300/400 or 800.  There is no way
  19. this should happen on the former (assuming the "-Wl,-a,archive" was placed
  20. before any libraries), but as far as I know, it shouldn't on the 800 either.
  21. It should work.  What system are you on, and what is the failure mode?
  22.  
  23. That said, what you are doing is not supported, and in general is not a good
  24. idea.  There are several differences between 7.0 and 8.0 that are reflected in
  25. the respective libc.a's, and even programs built with archive libraries on 8.0
  26. might not work right on 7.0.  Certainly you have to be careful not to use 8.0
  27. features like >60 open file descriptors, but even when using only 7.0
  28. functionality, the internal implementation may have changed between 7.0 and 8.0
  29. such that the 8.0 implementation might not work on 7.0.  Certain aspects of
  30. networking fall into this category - several libc networking functions that
  31. have been around "forever" were changed to use some new (for 8.0) BSD 4.3
  32. system calls that did not exist on 7.0; programs that call these networking
  33. routines and are linked with the 8.0 archive lbic will dump core ("Bad system
  34. call") if run on 7.0.
  35.  
  36. You are much better off maintaining a 7.0 system on which to build programs you
  37. intend to run on 7.0, or insisting your programs be run on 8.0 or later.
  38.  
  39. --------------
  40. Marc Sabatella (marc@hpmonk.fc.hp.com)
  41. Disclaimers:
  42.     2 + 2 = 3, for suitably small values of 2
  43.     Bill (H.) and Dave (P.) may not always agree with me
  44.