samba-users May 2010 archive
Main Archive Page > Month Archives  > samba-users archives
samba-users: Re: [Samba] Fwd: RE: Problems 'make'ing on Solaris

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

From: Klaus Kreuzwieser <samba.raiffeisen_at_nospam>
Date: Wed May 12 2010 - 19:38:49 GMT
To: samba@lists.samba.org

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

-- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba