Great Circle Associates Firewalls
(March 1993)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Re: DNS/libresolv/4.1.3/dlopen ld complaints
From: Brent Chapman <brent @ GreatCircle . COM>
Date: Thu, 18 Mar 93 09:07:57 -0800
To: peterg @ murphy . com (Peter Gutmann)
Cc: Firewalls @ GreatCircle . COM
In-reply-to: Your message of Thu, 18 Mar 93 10:33:36 EST

# > cc -O -DDEBUG dig.c -L`pwd` -lresolv list.o -o dig
# > ld: Undefined symbol
# >    _dlopen
# >    _dlclose
# >    _dlsym
# >    __mbstowcs_xccs
# >    __mbtowc_xccs
# >    __wcstombs_xccs
# >    __wctomb_xccs
#
# You need to add the -ldl (dynamic loading libs) to the cc

Doing that makes _that_ cc work, but who wants to add "-ldl" to every
cc in every Makefile on their system?

Adding "-ldl" to the "ld" step of building the shared library, as I
described in my previous message, solves the problem without requiring
you to tweak every Makefile on your system.


- -Brent
- --
Brent Chapman                                   Great Circle Associates
Brent @
 GreatCircle .
 COM                           1057 West Dana Street
+1 415 962 0841                                 Mountain View, CA  94041

------- End of Forwarded Message



Indexed By Date Previous: Re: DNS/libresolv/4.1.3/dlopen ld complaints
From: Brent Chapman <brent @ GreatCircle . COM>
Next: Re: DNS/libresolv/4.1.3/dlopen ld complaints
From: Tim Guarnieri <timg @ mv . us . adobe . com>
Indexed By Thread Previous: Re: DNS/libresolv/4.1.3/dlopen ld complaints
From: Brent Chapman <brent @ GreatCircle . COM>
Next: Re: DNS/libresolv/4.1.3/dlopen ld complaints
From: jim @ tadpole . com (Jim Thompson)

Google
 
Search Internet Search www.greatcircle.com