[Samba] Samba 3.0.4 fails to compile on Solaris 9

Mac mac at nibsc.ac.uk
Mon May 24 12:51:31 GMT 2004


>
>I have been trying to compile Samba 3.0.4 on a SunFire v880 running Solaris
>9 but "make" generates a fatal error.  My goal is to get Samba compiled
>with the "--with-ldapsam" option so that I can use SunOne Directory Server
>5.2 as the back-end repository for user authentication.  I have gcc version
>3.3.2 installed in /usr/local/bin/gcc which I have used to successfully
>compile other applications.
>


I tripped over something similar to this on the same hardware and O/S
(although it's nothig to do with the hardware, Ibelieve).

THe problem is proably that "./configure" has found the Solaris supplied
LDAP which simply isn't good enough for Samba.

Here's my notes on how I solved it:-

26-Apr-2004	Compiling OpenLDAP-2.1.30 from www.openldap.org
		needed:-
			setenv CC gcc
			./configure --prefix=/usr/local/openldap/2.1.30 --disable-slapd
			make depend
			make


			set path = ( $path /usr/local/gcc/bin )
			setenv LDFLAGS '-L /usr/local/openldap/2.1.30/lib'
			setenv CFLAGS '-I /usr/local/openldap/2.1.30/include'
			./configure --exec-prefix=/usr/local/samba/3.0.2a \
					--mandir=/usr/local/samba/3.0.2a/man \
					--with-configdir=/usr/local/samba/etc \
					--with-codepagedir=/usr/local/samba/share \
					--with-ads


I was trying to get AD support to work, but I think your problem and mine
are both LDAP based.

One thing I did then note, was that I had to set:-

	LD_LIBRARY_PATH

to have

	"/usr/local/openldap/2.1.30/lib"

in it, or all the Samba programs fell over with an 'ld.so' error on startup.

I stuck this in the init.d/samba script for autostart and in my .cshrc and/or .profile
to get it to work interactively.

	Hope this helps,



                               Mac
          Assistant Systems Adminstrator @nibsc.ac.uk
                        dmccann at nibsc.ac.uk
   Work: +44 1707 641565          Everything else: +44 7956 237670 (anytime)


More information about the samba mailing list