Subject: Re: pkg/30666: net/bind9 libbind.so needs librt for clock_gettime() on Solaris
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: grant beattie <grant@NetBSD.org>
List: pkgsrc-bugs
Date: 07/06/2005 11:54:07
On Tue, Jul 05, 2005 at 07:12:01AM +0000, grant@NetBSD.org wrote:

> System: SunOS sunburst 5.8 Generic_108528-13 sun4u sparc SUNW,Sun-Blade-1000
> Architecture: sparc
> Machine: sun4u
> >Description:
> libbind.so references clock_gettime() but it isn't linked against
> librt so it can't resolve the symbol at runtime.
> >How-To-Repeat:
> attempt to link against libbind.so (like mail/libspf-alt does)
> >Fix:
> link libbind.so against librt.

from looking at the bind8 source, on Solaris < 7 the recommendation is
to link against libposix4 (which is a symlink to librt on at least
Solaris 8 and 9). so in the name of portability, libposix4 is a better
choice.