[Samba] Samba 3.4.2 on Solaris 9 build problem

Gregory Gabriel saweron at gmail.com
Fri Oct 9 06:39:14 MDT 2009


Hi,

I'm trying to build samba 3.4.2 on Solaris 10 using SunStudio 12 but
I've hit a snag.

The configure line used was:

CFLAGS="-xcode=pic32 -KPIC -m64
-I/ec/sw/samba/openldap/current/include
-Iec/sw/samba/krb/current/include" \
CPPFLAGS="-xcode=pic32 -KPIC -m64
-I/ec/sw/samba/openldap/current/include
-I/ec/sw/samba/krb/current/include" \
LDFLAGS="-L/ec/sw/samba/openldap/current/lib
-L/ec/sw/samba/krb/current/lib -R/ec/sw/samba/openldap/current/lib
-R/ec/sw/samba/krb/current/lib" \
./configure --prefix=/ec/sw/samba/3.4.2 \
--with-krb5 \
--with-ads \
--with-ldap \
--without-winbind

Both krb 1.7 and OpenLDAP 2.4.16 were built as 64-bit

At the linking of smbd it errors out:

Linking bin/smbd
ld: fatal: file dynconfig.o: wrong ELF class: ELFCLASS64
ld: fatal: File processing errors. No output written to bin/smbd
*** Error code 1
The following command caused the error:
cc -xc99=all -o bin/smbd dynconfig.o
[massive snip]
-L/ec/sw/samba/openldap/current/lib -L/ec/sw/samba/krb/current/lib
-R/ec/sw/samba/openldap/current/lib -R/ec/sw/samba/krb/current/lib
-lthread -L./bin -lldap -llber \
        -lgssapi_krb5 -lkrb5 -lk5crypto    \
        -lsec -lldap -llber -lsendfile -lresolv -lrt -lnsl -lsocket   \
        ../lib/popt/findme.o ../lib/popt/popt.o
../lib/popt/poptconfig.o  ../lib/popt/popthelp.o
../lib/popt/poptparse.o  -ltalloc -ltdb \
        bin/libwbclient.a -lz
make: Fatal error: Command failed for target `bin/smbd'

I'm using the standard /usr/ccs/bin/ld as linker.

If I manually execute the command line and add -m64 asargument  ( cc
-m64 -xc99=all ) it churns out:

Undefined                       first referenced
 symbol                             in file
error_message                       libsmb/cliconnect.o  (symbol
belongs to implicit dependency
/ec/sw/samba/krb/current/lib/libcom_err.so.3)
ld: fatal: Symbol referencing errors. No output written to bin/smbd


What am I overlooking?

Gregory


More information about the samba mailing list