[Samba] samba 4.12 build with gnuTLS on hp-ux

Peter Eriksson pen at lysator.liu.se
Thu Jan 23 13:21:43 UTC 2020


I just went thru that process, but for OmniOS (Solaris-based) instead of HP-UX. In case someone else is interested, here are my notes for building Samba 4.11.5 on the latest OmniOS release:

Two patches are needed to the Samba source in order to compile and have it run without too many errors, those might not be needed for HP-UX (they can be downloaded from http://www.grebo.net/~peter/omnios/samba <http://www.grebo.net/~peter/omnios/samba> if needed though)

1. memset(…, 0, sizeof(pthread_t)) before pthread_mutex_init() in lib/tdb/common/mutex.c (or it will fail when running)
2. fmemopen() is used in a test program - add a simulated version since it doesn’t exist in OmniOS.

(#1 is due to a bug in OmniOS libc when using “robust” mutexes).

I compile with Gcc 8.3.0 and Gnu make, 64 bit code.


GMP (6.2.0)

% env MAKE=gmake PKG_CONFIG_PATH=/usr/local/lib/64/pkgconfig:/usr/lib/64/pkgconfig CXX="g++ -m64" CC="gcc -m64" ./configure  --libdir=/usr/local/lib/64 && gmake && gmake install


NETTLE (3.4.1) - Fails to build an example program - hogweed-benchmark - but we ignore that

% env MAKE=gmake PKG_CONFIG_PATH=/usr/local/lib/64/pkgconfig:/usr/lib/64/pkgconfig CXX="g++ -m64" CC="gcc -m64" ./configure  --libdir=/usr/local/lib/64 && gmake -k ; gmake -k install


GNUTLS (3.6.11.1)

% env MAKE=gmake PKG_CONFIG_PATH=/usr/local/lib/64/pkgconfig:/usr/lib/64/pkgconfig CXX="g++ -m64" CC="gcc -m64" ./configure --libdir=/usr/local/lib/64 --with-included-libtasn1 --with-included-unistring --without-p11-kit && gmake && gmake install


SAMBA (4.11.5)

% env MAKE=gmake PKG_CONFIG_PATH=/usr/local/lib/64/pkgconfig:/usr/lib/64/pkgconfig CXX="g++ -m64" CC="gcc -D_POSIX_PTHREAD_SEMANTICS -m64 -lsocket -lnsl" ./configure  --libdir=/usr/local/lib/64 --without-ad-dc --without-json --without-libarchive && gmake && gmake install


- Peter


> On 23 Jan 2020, at 11:53, Kumar, Arjit (SSTO) via samba <samba at lists.samba.org> wrote:
> 
> Hi Team,
> 
> We are planning to build samba 4.12 (without AD DC) on hp-ux.
> 
> Currently gnuTLS is not officially available on hp-ux.
> Is there any possible workaround available which enable us to openssl instead of gnuTLS ?
> 
> Latest gnuTLS requires minimum dependencies of nettle and gmp and have optional dependencies of libz, p11-kit, libidn and libtasn1.
> For building gnuTLS specifically for samba, What are minimum dependencies required for gnuTLS?
> 
> Regards,
> Arjit
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba



More information about the samba mailing list