solaris 8/samba3.0alpha15: ld.so.1: ls: fatal: relocation error: file /lib/nss_winbind.so.1: symbol socket: referenced symbol not found
Albert Chin
samba-technical at thewrittenword.com
Fri Mar 1 16:07:04 GMT 2002
On Thu, Feb 28, 2002 at 03:10:21PM -0800, Tim Potter wrote:
> On Thu, Feb 28, 2002 at 03:47:33PM -0500, David Edward Shapiro wrote:
>
> > Any hope getting an answer for this?
> >
> > If you do an ls -la in a directory that is part of a path of a share, you
> > get the following error:
> >
> > ld.so.1: ls: fatal: relocation error: file /lib/nss_winbind.so.1: symbol
> > socket: referenced symbol not found
> > Killed
>
> OK here is a patch against HEAD. You will need to run autoconf after
> changing configure.in and then re-run configure.
>
>
> Tim.
>
> Index: configure.in
> ===================================================================
> RCS file: /data/cvs/samba/source/configure.in,v
> retrieving revision 1.288
> diff -u -r1.288 configure.in
> --- configure.in 22 Feb 2002 04:38:28 -0000 1.288
> +++ configure.in 28 Feb 2002 23:13:21 -0000
> @@ -2573,9 +2573,14 @@
> # Initially, the value of $host_os decides whether winbind is supported
>
> case "$host_os" in
> - *linux*|*solaris*|*irix*)
> + *linux*|*irix*)
> HAVE_WINBIND=yes
> ;;
> + *solaris*)
> + HAVE_WINBIND=yes
> + WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris"
> + WINBIND_NSS_EXTGRA_LIBS="-lsocket"
> + ;;
Why not make it non os-specific by using:
AC_CHECK_FUNC(socket, , AC_CHECK_LIB(socket, socket,
WINBIND_NSS_EXTRA_LIBS="-lsocket"))
--
albert chin (china at thewrittenword.com)
More information about the samba-technical
mailing list