Hello,

had several problems compiling samba (3.4.2) on 64-bit solaris (same
error). Got it to work using some changes in make process:

Makefile is containing option -G, but this is not working with the gnu
compiler and the solaris linker. Changed this to -fpic. Needed to set
HAVE_KRB5_ENCTYPE_TO_STRING_WITH_KRB5_CONTEXT_ARG in include/config.h

After those changes compiling worked.

Am 25.03.2010 14:15, schrieb Damjan Dimitrov:
> 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
> -D_FILE_OFFSET_BITS=64 -DL
>       DAP_DEPRECATED -DSUNOS5  -I/install/samba-3.5.1/source3/lib -I..
> -I../source4 -D_SAMBA_BUILD_=3
>        -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?
> 
> Thanks.


-- 

Regards

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

Reply via email to