SUMMARY: Missing Libraries?

From: Jeff Mayzurk (jeff@arion.com)
Date: Wed Jun 21 1995 - 11:45:55 CDT


First of all, I want to thank everyone for their help -- I was literally
overwhelmed with responses. Thanks, everyone!

PROBLEM:

[Sparc 2, SunOS 4.1.4]: ld reports undefined symbols when compiling...

      ld: Undefined symbol
             _dlopen
             _dlclose
             _dlsym
             __mbstowcs_xccs
             __mbtowc_xccs
             __wcstombs_xccs
             __wctomb_xccs

SOLUTIONS:

1) _dl* references:

>For the _dl* references, you probably have to explicitly specify "-ldl".
>libdl.so should be in /usr/lib. I don't know about the *_xccs things.

This was the most common response -- many people told me to add "-ldl" when
compiling. The _xccs symbols were still a mystery.

2) Peter Watkins <peter@jrc.nl> alerted me to the fact that this problem is
often encountered when trying to configure SunOS 4.1.x to use DNS instead
of NIS. Sun's documentation (/usr/lib/shlib.etc/README) mentions that
several of the object files must be renamed because ar truncates filenames
at 16 characters, but they leave one out. After extracting libc_pic.a,
execute the following commands:

        mv rpc_dtablesize. rpc.dtablesize.o
        mv rpc_commondata. rpc.commondata.o
        mv xccs.multibyte. xccs.multibyte.o

You can also patch the Makefile to add "-ldl" when building the libraries.
I discovered that the latest BIND 4.9.3 package has detailed information,
including several patches, to fix these problems. I got my copy from
ftp://ftp.vix.com/pub/bind/testing.

Thanks again to everyone who responded.

--
Jeff Mayzurk
Arion Software
<jeff@arion.com>



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:10:27 CDT