[Samba] build samba in 64bit mode

robert_f_sharp at platts.com robert_f_sharp at platts.com
Mon Apr 7 17:33:21 GMT 2003



I have a problem when I try build samba in 64bit mode (CFLAGS=-O -m64). It
builds ok in 32bit. The problem arises when linking nsswitch/libnss_winbind.so

On Solaris 9 I'm using

bash-2.05$ /usr/local/tools/gcc/bin/gcc -v
Reading specs from
/usr/local/tools/gcc/lib/gcc-lib/sparc-sun-solaris2.9/3.2.2/specs
Configured with: ../configure --with-as=/usr/local/tools/binutils/bin/as
--with-ld=/usr/local/tools/binutils/bin/ld --with-gnu-as --with-gnu-ld
--disable-nls --enable-languages=c,c++ --prefix=/usr/local/tools/gcc
Thread model: posix
gcc version 3.2.2


bash-2.05$ /usr/local/tools/binutils/bin/ld -v
GNU ld version 2.13.2.1

bash-2.05$ /usr/local/tools/binutils/bin/as -v
GNU assembler version 2.13.2.1 (sparc-sun-solaris2.9) using BFD version 2.13.2.1

Compiling nsswitch/wb_common.c with -fPIC
Compiling nsswitch/winbind_nss_solaris.c with -fPIC
Linking nsswitch/libnss_winbind.so
collect2: ld terminated with signal 11 [Segmentation Fault]
/usr/local/tools/binutils/bin/ld: warning: sparc:v9 architecture of input file
`nsswitch/winbind_nss.po' is incompatible with sparc output
/usr/local/tools/binutils/bin/ld: warning: sparc:v9 architecture of input file
`nsswitch/wb_common.po' is incompatible with sparc output
/usr/local/tools/binutils/bin/ld: warning: sparc:v9 architecture of input file
`nsswitch/winbind_nss_solaris.po' is incompatible with sparc output
make: *** [nsswitch/libnss_winbind.so] Error 1

ld core dumps and does not go any futher, I think it is trying to link to the
socket library, have I supplied enough info, anybody have an idea why ld core
dumps?

Robert S.




More information about the samba mailing list