[HPADM] Compiling Samba 2.2.4 on HP-UX 10.20

From: Eric Watson (ewatson@law.harvard.edu)
Date: Mon Aug 26 2002 - 10:36:59 EDT


I would like to compile Samba 2.2.4 on my well-patched D380/10.20 system. I
have all the regular third party software installed like gcc, gmake,
libtool, etc., and we can compile fairly advanced third party C software on
the system, like openssh, openssl, perl with mods, etc.

When I try and configure Samba, configure succeeds, but gmake fails with
this error:

<<<<
Compiling smbd/server.c
In file included from /usr/include/hpsecurity.h:22,
                 from /usr/include/shadow.h:8,
                 from include/includes.h:304,
                 from smbd/server.c:22:
/usr/include/values.h:27: warning: `MAXINT' redefined
/opt/gcc-2.95.2/lib/gcc-lib/hppa1.1-hp-hpux10.20/2.95.2/include/sys/param.h:
46: warning: this is the location of the previous definition
In file included from nsswitch/nss.h:78,
                 from include/includes.h:725,
                 from smbd/server.c:22:
nsswitch/hp_nss_common.h:26: synch.h: No such file or directory
nsswitch/hp_nss_common.h:27: pthread.h: No such file or directory
In file included from include/includes.h:725,
                 from smbd/server.c:22:
nsswitch/nss.h:80: nsswitch.h: No such file or directory
gmake: *** [smbd/server.o] Error 1

>>>>>>

I checked and synch.h, pthread.h and nsswitch.h are not present on the
machine. I'm guessing this has something to do with threads, which of
course generally doesn't work on HP-UX 10.20.

I obtained the latest pre-compiled binary 2.2.3a from the Univ of Wisconsin,
and was able to install the depot and get samba to work (it took a bit of
tinkering with manually adding directories that the binaries wanted). The
trouble with 2.2.3a, and I don't know if it's Samba or not, is that the host
is not browseable in Network Neighborhood, and users with XP or NT
workstations cannot map drives to the host. 2000, 95 and 98 users can map
drives with an explicit UNC without problem.

So, I'm guessing that something in 2.2.3a is causing this problem, hence my
desire to compile 2.2.4, which I do have running on a Solaris 8 machine, and
which interacts fine with Microsfoft.

Any ideas on either compiling 2.2.4 or with getting 2.2.3a fully working?

Eric

************************************
Eric P. Watson
Manager of System Administration
  Services
Harvard Law School 617-496-6518
************************************

--
             ---> Please post QUESTIONS and SUMMARIES only!! <---
        To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl
       Name: hpux-admin@dutchworks.nl     Owner: owner-hpux-admin@dutchworks.nl
 
 Archives:  ftp.dutchworks.nl:/pub/digests/hpux-admin       (FTP, browse only)
            http://www.dutchworks.nl/htbin/hpsysadmin   (Web, browse & search)


This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 11:02:18 EDT