Whats the result of
grep soname_spec /usr/pkg/bin/libtool
for you? For me (NetBSD-5.0_STABLE) its
soname_spec=""
elif test -n "$soname_spec"; then
eval soname=\"$soname_spec\"
if test -n "$soname_spec"; then
eval soname=\"$soname_spec\"
which is the immediate cause of the problem - should be something like
soname_spec="\${libname}\${release}\${shared_ext}\$major"