Ship date for 2.2.3.

Michael Steffens michael_steffens at hp.com
Sat Feb 2 10:25:03 GMT 2002


Albert Chin wrote:
> 
> On Fri, Feb 01, 2002 at 01:50:49PM +0100, Michael Steffens wrote:
> > Albert Chin wrote:
> > > We've built the SAMBA_2_2 branch on Solaris 2.5.1, 2.6, 7, 8, HP-UX
> > > 10.20, 11.00, Tru64 UNIX 4.0D, 5.0A, 5.1, IRIX 6.2, 6.5, and AIX
> > > 4.3.2. A few problems were encountered:
> > >
> > > 1. source/include/includes.h blindly includes:
> > >   #include "nsswitch/nss.h"
> > >
> > >    On HP-UX 10.20, "nsswitch/nss.h" then includes
> > >   #include "nsswitch/hp_nss_common.h"
> > >    which wants <synch.h>. This doesn't exist on HP-UX 10.20,
> > >    only HP-UX 11.00 and above. Our current hack is to check
> > >    for <synch.h> with the following patch. Should we be trying
> > >    something else?
> >
> > would it be possible to check explicitly for the HP-UX release to be
> > at least 11.00?  On 10.20 building Winbind is of little use, as
> > its nsswitch engine doesn't work with external backends.
> > No /usr/lib/libnss* libraries are being loaded.
> >
> > The hp_nss_common.h and hp_nss_dbdefs.h consequently also do not
> > apply to releases lower than 11.00.
> 
> Does the C preprocessor have some symbol for this (we want 11.x, not
> just 11.00)? Maybe an autoconf test?

Yes, I think this should do. Both "configure" and "configure.in" do
contain a section


  # Initially, the value of $host_os decides whether winbind is supported

  case "$host_os" in
          *linux*|*solaris*|*irix*)
                  HAVE_WINBIND=yes
                  ;;
          *)
                  HAVE_WINBIND=no
                  winbind_no_reason=", unsupported on $host_os"
                  ;;
  esac


$host_os resolves to "hppa1.1-hp-hpux11.00" on my box, thus I
suppose changing the test to

          *linux*|*solaris*|*irix*|*hpux11*)

should do the trick.

However, even then the winbind shared objects will not be
installed correctly by "make install", as they need to be
renamed and moved to

  /usr/lib/libnss_winbind.1
  /usr/lib/security/libpam_winbind.1

But that's not too hard to be done manually, for the moment :-)

Cheers!
Michael




More information about the samba-technical mailing list