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