solaris 8/samba3.0alpha15: ld.so.1: ls: fatal: relocation error: file /lib/nss_winbind.so.1: symbol socket: referenced symbol not found
Tim Potter
tpot at samba.org
Thu Feb 28 15:22:06 GMT 2002
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"
+ ;;
*)
HAVE_WINBIND=no
winbind_no_reason=", unsupported on $host_os"
@@ -2635,6 +2640,8 @@
AC_SUBST(WINBIND_STARGETS)
AC_SUBST(WINBIND_LTARGETS)
AC_SUBST(WINBIND_PAM_TARGETS)
+AC_SUBST(WINBIND_NSS_EXTRA_OBJS)
+AC_SUBST(WINBIND_NSS_EXTRA_LIBS)
#################################################
# Check to see if we should use the included popt
Index: Makefile.in
===================================================================
RCS file: /data/cvs/samba/source/Makefile.in,v
retrieving revision 1.443
diff -u -r1.443 Makefile.in
--- Makefile.in 27 Feb 2002 11:50:24 -0000 1.443
+++ Makefile.in 28 Feb 2002 23:13:21 -0000
@@ -448,7 +448,7 @@
WBINFO_OBJ = nsswitch/wbinfo.o libsmb/smbencrypt.o libsmb/smbdes.o \
passdb/secrets.o
-WINBIND_NSS_OBJ = nsswitch/winbind_nss.o nsswitch/wb_common.o nsswitch/winbind_nss_solaris.o
+WINBIND_NSS_OBJ = nsswitch/winbind_nss.o nsswitch/wb_common.o
WINBIND_NSS_PICOBJS = $(WINBIND_NSS_OBJ:.o=.po)
@@ -722,9 +722,9 @@
@echo Linking $@
@$(LINK) -o $@ $(WINBINDD_OBJ) $(DYNEXP) $(LIBS)
-nsswitch/libnss_winbind.so: $(WINBIND_NSS_PICOBJS)
+nsswitch/libnss_winbind.so: $(WINBIND_NSS_PICOBJS) @WINBIND_NSS_EXTRA_OBJS@
@echo "Linking $@"
- @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_NSS_PICOBJS)
+ @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_NSS_PICOBJS) @WINBIND_NSS_EXTRA_LIBS@
nsswitch/pam_winbind.so: $(PAM_WINBIND_OBJ) bin/.dummy
@echo Linking $@
More information about the samba-technical
mailing list