[Samba] Samba 3.5.1 does not compile on Solaris 10

Damjan Dimitrov damjand at gmail.com
Thu Mar 25 07:15:22 MDT 2010

Trying to compile 3.5 and 3.5.1 on Solaris 10 (gcc 3.4.3), but it
stops on "Linking shared library bin/libtalloc.so.2":

 	/install/samba-3.5.1/source3# make
	Using CFLAGS     = -I/usr/local/krb5-1.6.3/include -O -I.
-I/install/samba-3.5.1/source3 -I/ins
	tall/samba-3.5.1/source3/iniparser/src -Iinclude -I./include  -I. -I.
-I./../lib/replace -I./..
	/lib/tevent -I./libaddns -I./librpc -I./.. -I./../lib/talloc
-I../lib/tdb/include -DHAVE_CONFIG
	_H  -I/usr/local/krb5-1.6.3/include -D_LARGEFILE_SOURCE -D_REENTRANT
	DAP_DEPRECATED -DSUNOS5  -I/install/samba-3.5.1/source3/lib -I..
-I../source4 -D_SAMBA_BUILD_=3
	      PICFLAG    = -fPIC
	      LIBS       = -lsendfile -lresolv -lrt -lnsl -lsocket
	      LDFLAGS    = -pie  -L/usr/local/krb5-1.6.3/lib
-R/usr/local/krb5-1.6.3/lib -Wl,-z,ignore
	-lthread -L./bin
	      DYNEXP     =
	      LDSHFLAGS  = -G  -L/usr/local/krb5-1.6.3/lib
-R/usr/local/krb5-1.6.3/lib -Wl,-z,ignore -l
	thread -L./bin -lc -Wl,-z,defs
	      SHLIBEXT   = so
	      SONAMEFLAG = -Wl,-soname=
	Linking shared library bin/libtalloc.so.2
	ld: warning: option -o appears more than once, first setting taken
	Undefined                       first referenced
	 symbol                             in file
	main                                /usr/lib/crt1.o
	ld: fatal: Symbol referencing errors. No output written to bin/libtalloc.so.2
	collect2: ld returned 1 exit status
	make: *** [bin/libtalloc.so.2] Error 1

Any ideas?


More information about the samba mailing list