# Well, this may not *really* be a firewall problem, but I am getting this
# problem building code for my firewall. I haven't lived under a DNS
# patched libc.so for while now. I just installed the libresolv.a objs
# in libc.so and now I am getting complaints from ld when making source:
# cc -O -DDEBUG dig.c -L`pwd` -lresolv list.o -o dig
# ld: Undefined symbol
# This must be due to something obvious I am doing wrong. The patched libc.so
# is working fine and the binary ld creates works too! But, many makefiles
# won't do a build even when using make -k, and it is a real pain... anyone
# seen this already??
# Thanks, Scott
In /usr/lib/shlib.etc/Makefile, add a "-ldl" flag to the end of the
"ld" command for the "libc.so" target, then rebuild the shared
library. That will take care of the first problem.
I'll bet the second problem is caused by not renaming
"xccs.multibyte." to "xccs.multibyte.o" after using "ar" to unpack
"libc_pic.a". There are three files in libc_pic.a that have long
filenames, that have to be renamed before the shared library is built.
If I recall correctly, the "README" file lists some but not all of
them. The three files are "rpc_commondata.", "rpc_dtablesize.", and
"xccs.multibyte."; all need to be renamed to end in ".o" instead of
Brent Chapman Great Circle Associates
COM 1057 West Dana Street
+1 415 962 0841 Mountain View, CA 94041