Bug 2400 - HP-UX 11.00 pam/winbind build (vsyslog, winbind_nss_solaris)
Summary: HP-UX 11.00 pam/winbind build (vsyslog, winbind_nss_solaris)
Status: RESOLVED FIXED
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: winbind (show other bugs)
Version: 3.0.11
Hardware: All HP-UX
: P3 normal
Target Milestone: none
Assignee: Samba Bugzilla Account
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-01 05:28 UTC by Jeremy Monin
Modified: 2005-09-29 09:07 UTC (History)
0 users

See Also:


Attachments
hp-ux 11.00 nsswitch build fix (2.68 KB, patch)
2005-03-01 05:28 UTC, Jeremy Monin
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy Monin 2005-03-01 05:28:04 UTC
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.
Comment 1 Jeremy Monin 2005-03-01 05:28:40 UTC
Created attachment 996 [details]
hp-ux 11.00 nsswitch build fix
Comment 2 Jeremy Monin 2005-03-01 08:23:49 UTC
Without this patch the code does compile, but the nss and PAM shared libraries
won't work because of missing symbols.
Comment 3 Jeremy Monin 2005-03-01 13:17:43 UTC
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.
Comment 4 Gerald (Jerry) Carter (dead mail address) 2005-09-29 09:07:09 UTC
please retest against 3.0.20a (the current SAMBA_3_0_RELEASE branch) which will
publically be availebl next week.