[Samba] Fwd: RE: Problems 'make'ing on Solaris 9/10

Klaus Kreuzwieser samba.raiffeisen at gmail.com
Wed May 12 13:38:49 MDT 2010


Hello,

if you can't wait for 3.5.3 here is a way to build Samba 3.5.2 on 
Solaris 10 without any system modifications (we used gcc 3.4.6).

Install all dependencies from sunfreeware.com.

Edit source3/configure script and replace "LD=ld" with "LD=/usr/ccs/bin/ld"

PATH=/usr/sbin:/usr/bin:/usr/local/bin
LD_LIBRARY_PATH=/usr/local/lib:/lib:/usr/openwin/lib:/usr/ccs/lib:/usr/dt/lib
CPPFLAGS="-I/usr/local/include"
LDFLAGS="-L/usr/local/lib"
export PATH LD_LIBRARY_PATH CPPFLAGS LDFLAGS

./configure --enable-socket-wrapper --prefix=/usr/local/opt/samba-3.5.2 
--with-acl-support --with-ads --with-aio-support --with-automount 
--with-krb5=/usr/local --with-ldap --with-pam

Edit the created Makefile, replace LD flags "-G" with "-fPIC -shared" 
and all "-lthread" with "-lthread -lintl".

/usr/local/bin/make -j5
/usr/local/bin/make install

That's it.
---Klaus



More information about the samba mailing list