In order to build samba-3.0.11 on HP-UX 11.00, I needed to slightly patch lib/replace[1].c, since HP-UX has no "vsyslog" but the PAM module needs it. It looked like this didn't have an adverse effect on anywhere replace1.o or replace.o is used. In order for the nsswitch module to compile, I had to change the configure script to add winbind_nss_solaris.o ; I don't know autoconf, so my patch just changes the configure script directly. This patch is tested on HP-UX 11.00 and 11.11 and is successful on both. Updated for 3.0.12-pre1. Also sent patch to samba-technical list at Mar 1 07:03:59 EST.
Created attachment 996 [details] hp-ux 11.00 nsswitch build fix
Without this patch the code does compile, but the nss and PAM shared libraries won't work because of missing symbols.
Also affects the binary version available at http://us1.samba.org/samba/ftp/Binary_Packages/hp/samba-3.0.10/ After installing, run: /usr/ccs/bin/ldd -r libnss_winbind.sl | grep _nss_winbind symbol not found: _nss_winbind_setpwent (libnss_winbind.sl) symbol not found: _nss_winbind_endpwent (libnss_winbind.sl) symbol not found: _nss_winbind_getpwent_r (libnss_winbind.sl) symbol not found: _nss_winbind_getpwnam_r (libnss_winbind.sl) symbol not found: _nss_winbind_getpwuid_r (libnss_winbind.sl) symbol not found: _nss_winbind_setgrent (libnss_winbind.sl) symbol not found: _nss_winbind_endgrent (libnss_winbind.sl) symbol not found: _nss_winbind_getgrent_r (libnss_winbind.sl) symbol not found: _nss_winbind_getgrnam_r (libnss_winbind.sl) symbol not found: _nss_winbind_getgrgid_r (libnss_winbind.sl) symbol not found: _nss_winbind_initgroups_dyn (libnss_winbind.sl) All these symbols are defined in winbind_nss_linux.c, which is not compiled. The binary depot also is missing "vsyslog" in its pam_winbind.sl.
please retest against 3.0.20a (the current SAMBA_3_0_RELEASE branch) which will publically be availebl next week.