Hi,
When I try to compile a program that compiles fine on SunOS4
machines on a Solaris 2.3 machine, I get error messages about undefined
symbols on dlclose, dlsym, dlopen, gethostname, and gethostbyname.
Gethostname ones I can work around, but for the other I'm not sure what
to do. I found the following on the FAQ which seems to be relevant:
(Q) After rebuilding the shared library libc it get some or all the
following undefined symbols: dlsym, dlopen, dlclose, mbstowcs_xccs,
mbtowc_xccs,wcstombs_xccs, or wctomb_xccs.
(A) If you have just installed a new shared library under 4.1.2 or
greater you need to modify the Makefile for the shared libraries
and re-install. You will need to change the following line
ld -assert pure-text `${OBJSORT} lorder-sparc tmp`
to read
ld -assert pure-text `${OBJSORT} lorder-sparc tmp` -ldl
Note: You should change both such lines.
Also, you may need to do a mv xccs.multibyte. xccs.multibyte.o
to eliminate the mbstowcs_xccs, mbtowc_xccs, wcstombs_xccs,
or wctomb_xccs symbols errors.
The above can occur under SunOS 4.1.1 if you have installed
the "Linker Jumbo Patch"(Patch id# 100257-03 or greater).
But we haven't touched our libc. It is as it was shipped. Do we still need
to rebuild it? Does anyone know what to do? Thanks.