Hp-Ux
HPUX:缺少符號
/opt/samba3/sbin/winbindd -d 100 -i
生產
/usr/lib/hpux32/dld.so: Unsatisfied code symbol '_nss_winbind_initgroups_dyn' in load module '/usr/lib/hpux32/libnss_winbind.so.1'. Killed
如何檢查?我必須重新編譯?
找到解決方案,必須修改 samba hpux 行的配置必須是
*hpux11*) NSSSONAMEVERSIONSUFFIX=".1" WINBIND_NSS_EXTRA_OBJS="../nsswitch/winbind_nss_solaris.o \ ../nsswitch/winbind_nss_linux.o"
代替
*hpux11*) NSSSONAMEVERSIONSUFFIX=".1" WINBIND_NSS_EXTRA_OBJS="../nsswitch/winbind_nss_solaris.o"
編譯正常,啟動 winbindd ok,但 id 不報告使用者(pwget 也是一樣),我配置了 nsswitch.conf 可能在 nsswitch 包裝器中有問題
使用舊模組(hp 的 cifs 伺服器模組)製作差異我看到了
nm -n libnss_winbind.so.1*|grep _nss_winbind_initgroups_dyn [185] | 0| 0|FUNC |GLOB |0| UNDEF|_nss_winbind_initgroups_dyn [142] | 67178688| 2080|FUNC |GLOB |0| .text|_nss_winbind_initgroups_dyn
我在函式_nss_winbind_initgroups_dyn中未定義的模組我已經編譯了samba
./configure --prefix=/opt/samba3 --with-lockdir=/var/opt/samba3/locks --with-privatedir=/var/opt/samba3/private --with-configdir=/etc/opt/samba3 --localstatedir=/var/opt/samba3 --with-krb5=/opt/krb5 --enable-nss-wrapper --enable-socket-wrapper --enable-static --enable-pthreadpool --with-libaddns --with-automount --with-quotas --with-aio-support --with-libiconv==/usr/local \ --with-pam \ --with-winbind \ --with-readline \ --with-lockdir=/var/opt/samba3/locks \ --with-statedir=/var/opt/samba3/locks \ --with-cachedir=/var/opt/samba3/cache \ --with-piddir=/var/opt/samba3/locks \ --with-logfilebase=/var/opt/samba3/log \ ac_cv_lib_rt_fdatasync=no \ ac_cv_have_fdatasync_decl=no \ ac_cv_lib_ext_rt_fdatasync=no \ CPPFLAGS='-I/opt/krb5/include' LDFLAGS='-L/opt/krb5/lib -Wl,+b,/opt/krb5/lib -lkrb5 -lk5crypto -lcom_err'
有什麼建議嗎?謝謝