nsswitch/*.so don't build...
MCCALL,DON (HP-USA,ex1)
don_mccall at hp.com
Wed Apr 3 06:59:04 GMT 2002
Hi Mike,
Don't remember what OS you are using, but there are some problems with head
currently for HPUX that cause this.
I have included a diff patch that I use to fix it.
Hope this helps,
don
-----Original Message-----
From: root at ecl2000.atl.hp.com [mailto:root at ecl2000.atl.hp.com]
Sent: Wednesday, April 03, 2002 9:31 AM
To: don_mccall at hp.com
Subject:
Index: configure
===================================================================
RCS file: /cvsroot/samba/source/configure,v
retrieving revision 1.278
diff -u -r1.278 configure
--- configure 1 Apr 2002 09:52:36 -0000 1.278
+++ configure 3 Apr 2002 14:26:09 -0000
@@ -8777,9 +8777,19 @@
ac_cv_shlib_works=no
# try building a trivial shared library
+ # call ld directly for HP-UX NOTE - cannot pass CFLAGS and CPPFLAGS
+ # to ld on HPUX, as the -D_HPUX_SOURCE and others will conflict with
+ # the "-D" flag in the loader.
+ if test $ac_cv_prog_cc_Ae = yes; then
+ $CC $CPPFLAGS $CFLAGS $PICFLAG -c -o shlib.po ${srcdir-.}/tests/shlib.c
&&
+ $SHLD $LDSHFLAGS -o shlib.so shlib.po &&
+ ac_cv_shlib_works=yes
+ else
+
$CC $CPPFLAGS $CFLAGS $PICFLAG -c -o shlib.po ${srcdir-.}/tests/shlib.c
&&
$SHLD $CPPFLAGS $CFLAGS $LDSHFLAGS -o shlib.so shlib.po &&
ac_cv_shlib_works=yes
+ fi
rm -f shlib.so shlib.po
fi
Index: configure.in
===================================================================
RCS file: /cvsroot/samba/source/configure.in,v
retrieving revision 1.296
diff -u -r1.296 configure.in
--- configure.in 1 Apr 2002 09:49:27 -0000 1.296
+++ configure.in 3 Apr 2002 14:26:09 -0000
@@ -818,9 +818,18 @@
[ac_cv_shlib_works],[
ac_cv_shlib_works=no
# try building a trivial shared library
+ # call ld directly for HP-UX NOTE - cannot pass CFLAGS and CPPFLAGS
+ # to ld on HPUX, as the -D_HPUX_SOURCE and others will conflict with
+ # the "-D" flag in the loader.
+ if test $ac_cv_prog_cc_Ae = yes; then
+ $CC $CPPFLAGS $CFLAGS $PICFLAG -c -o shlib.po ${srcdir-.}/tests/shlib.c
&&
+ $LD $LDSHFLAGS -o shlib.so shlib.po &&
+ ac_cv_shlib_works=yes
+ else
$CC $CPPFLAGS $CFLAGS $PICFLAG -c -o shlib.po ${srcdir-.}/tests/shlib.c
&&
$SHLD $CPPFLAGS $CFLAGS $LDSHFLAGS -o shlib.so shlib.po &&
ac_cv_shlib_works=yes
+ fi
rm -f shlib.so shlib.po
])
if test $ac_cv_shlib_works = no; then
Index: nsswitch/pam_winbind.c
===================================================================
RCS file: /cvsroot/samba/source/nsswitch/pam_winbind.c,v
retrieving revision 1.10
diff -u -r1.10 pam_winbind.c
--- nsswitch/pam_winbind.c 23 Mar 2002 08:28:17 -0000 1.10
+++ nsswitch/pam_winbind.c 3 Apr 2002 14:26:09 -0000
@@ -482,6 +482,27 @@
/* should not be reached */
return PAM_IGNORE;
}
+PAM_EXTERN
+int pam_sm_open_session(pam_handle_t *pamh, int flags,
+ int argc, const char **argv)
+{
+ /* parse arguments */
+ int ctrl = _pam_parse(argc, argv);
+ if (ctrl & WINBIND_DEBUG_ARG)
+ _pam_log(LOG_DEBUG,"libpam_winbind:pam_sm_open_session
handler");
+ return PAM_SUCCESS;
+}
+PAM_EXTERN
+int pam_sm_close_session(pam_handle_t *pamh, int flags,
+ int argc, const char **argv)
+{
+ /* parse arguments */
+ int ctrl = _pam_parse(argc, argv);
+ if (ctrl & WINBIND_DEBUG_ARG)
+ _pam_log(LOG_DEBUG,"libpam_winbind:pam_sm_close_session
handler");
+ return PAM_SUCCESS;
+}
+
PAM_EXTERN int pam_sm_chauthtok(pam_handle_t * pamh, int flags,
@@ -650,8 +671,8 @@
pam_sm_authenticate,
pam_sm_setcred,
pam_sm_acct_mgmt,
- NULL,
- NULL,
+ pam_sm_open_session,
+ pam_sm_close_session,
pam_sm_chauthtok
};
Index: nsswitch/winbind_nss_solaris.c
===================================================================
RCS file: /cvsroot/samba/source/nsswitch/winbind_nss_solaris.c,v
retrieving revision 1.3
diff -u -r1.3 winbind_nss_solaris.c
--- nsswitch/winbind_nss_solaris.c 17 Sep 2001 04:52:45 -0000 1.3
+++ nsswitch/winbind_nss_solaris.c 3 Apr 2002 14:26:09 -0000
@@ -10,12 +10,14 @@
#include <sys/param.h>
#include <string.h>
#include <pwd.h>
+#include "includes.h"
#include <syslog.h>
+#if !defined(HPUX)
#include <sys/syslog.h>
-#include "includes.h"
+#endif /*hpux*/
#include "winbind_nss_config.h"
-#ifdef HAVE_NSS_COMMON_H
+#if defined(HAVE_NSS_COMMON_H) || defined(HPUX)
#undef NSS_DEBUG
More information about the samba-technical
mailing list