home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!wupost!sdd.hp.com!spool.mu.edu!cass.ma02.bull.com!mips2!bull.bull.fr!julienas!laas!ralph
- From: ralph@laas.fr (Ralph P. Sobek)
- Newsgroups: comp.sys.sun.misc
- Subject: Isn't the Dynamic Load Library automatically linked?
- Message-ID: <RALPH.93Jan4162136@idefix.laas.fr>
- Date: 4 Jan 93 15:21:36 GMT
- Sender: news@laas.fr
- Distribution: comp
- Organization: LAAS-CNRS France
- Lines: 26
- Nntp-Posting-Host: idefix
-
- I always thought that the Dynamic Load Library (libdl) was
- automatically linked when one did a compile under SunOS 4.1.n. It
- seems to be a problem *only* with SunOS 4.1.2 and 4.1.3.
- /usr/lib/libdl.so.1.0 is in /etc/ld.so.cache. On newly installed
- machines I get the following, even for simple hello.c:
-
- ld: Undefined symbol
- _dlopen
- _dlclose
- _dlsym
-
- If I explicitly add -ldl then it all goes away. But shouldn't it work
- nevertheless? The AnswerBook says that -Bdynamic is the default!
- Why am I not getting it?
-
- Thanks to all and also Happy New Year
-
- --
- Dr. Ralph P. Sobek Disclaimer: The above ruminations are my own.
- Ralph.Sobek@cerfacs.fr Addresses are ordered by importance.
- ralph@cerfacs.fr If all else fails, try:
- Telephone: (+33) 61-19-30-47 sobek@eclair.Berkeley.EDU
- FAX: (+33) 61-19-30-00
- ===============================================================================
- The waves came in like arabian stallions gradually lapping into seahorses.
- -- Pattie Smith
-