[Samba] Building Samba on Solaris

Thomas Schulz schulz at adi.com
Tue Feb 18 11:56:33 MST 2014


For anyone wanting to build and install Samba on a Solaris machine:
I have successfully built and installed Samba 4.1.4 on a Solaris 10 i386
machine. You will have to build and install a newer version of Python
before you can configure Samba. You must configure Python with
--enable-shared. See bug 10261 at bugzilla.samba.org for the details
of why that is.

If you are going to build Samba with the gcc compiler you will have to
edit a script in lib/replace in the Samba source. See bug 10261 at
bugzilla.samba.org for the fix.

If you ae going to build Samba with the Sun c compiler you will have to
apply a fix first. See bug 10315 at bugzilla.samba.org for the details.

The resultant binaries and libraries do not end up with a run path pointing
to the place where Samba will be installed. To fix that set the run path
with the LDFLAGS environmental variable when configuring Samba. For example
if you want to install Samba in /opt/local/samba4, configure as follows:

#! /bin/sh
LDFLAGS="-R/opt/local/samba4/lib:/opt/local/samba4/lib/private" \
./configure configure  --prefix=/opt/local/samba4

Tom Schulz
Applied Dynamics Intl.
schulz at adi.com


More information about the samba mailing list