Dave S
2008-Sep-18 17:25 UTC
[Samba] Fwd: Sol9 make failure of samba 3.2.2 with gcc 3.4.6 -- libtalloc.so.1
I'm on Solaris 9 sparc. Current versions are: gcc 3.4.6 (sunfreeware pkg) MIT krb5-1.6.3 (source) openldap-2.4.11 (compiled with --with-tls and --enable-crypto) samba-3.2.2 db-4.2.52.NC (sunfreeware pkg) No compiler env vars set, except CC is set to CC=/usr/local/bin/gcc I'm invoking configure as follows: ./configure --with-ads --with-windbind --with-krb5=/usr/local --with-ldap 'make' fails with the following output: Linking non-shared library bin/libtalloc.a Compiling lib/replace/replace.c Compiling lib/replace/snprintf.c Compiling lib/replace/getpass.c Compiling lib/replace/strptime.c Compiling lib/replace/timegm.c Compiling lib/replace/inet_aton.c Compiling lib/replace/getifaddrs.c creating /root/samba-3.2.2/source/exports/libtalloc.syms Linking shared library bin/libtalloc.so.1 /usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.6/../../../../sparc-sun-solaris2.9/bin/ld: cannot open linker script file /root/samba-3.2.2/source/exports/libtalloc.so.1: No such file or directory collect2: ld returned 1 exit status make: *** [bin/libtalloc.so.1] Error 1 make -n shows the following line prior to the failure: /usr/local/bin/gcc -I/usr/local/include -O -D_SAMBA_BUILD_=3 -G -Wl,-z,relro -L/usr/local/lib -R/usr/local/lib -L/usr/local/BerkeleyDB.4.2/lib -lthread -L./bin -Wl,--version-script,/root/samba-3.2.2/source/exports/`basename bin/libtalloc.so.1 | sed 's/so\(.[0-9]\{1,\}\)\{0,1\}$/syms/'` -o bin/libtalloc.so.1 lib/talloc/talloc.o lib/replace/replace.o lib/replace/snprintf.o lib/replace/getpass.o lib/replace/strptime.o lib/replace/timegm.o lib/replace/inet_aton.o lib/replace/getifaddrs.o -Wl,-soname=`basename bin/libtalloc.so.1` source/bin contains only libtalloc.a at the fail point. Any ideas? I'm not experienced at doing builds on Solaris. Thanks, Dave S.
Christian McHugh
2008-Sep-18 17:48 UTC
[Samba] Fwd: Sol9 make failure of samba 3.2.2 with gcc 3.4.6 -- libtalloc.so.1
We are compiling samba on solaris 10 (also works on solaris 9) by installing the kerberos, openldap, and openldap-devel stuff from blastwave. With that done samba can be compiled by pointing to the csw locations: export CPPFLAGS='-I/opt/csw/include' export LDFLAGS='-L/opt/csw/lib' ./configure --prefix=/usr/local/samba --with-shared-modules=idmap_ad --with-pam --with-ads --with-krb5=/opt/csw After the configure finishes you must edit the Makefile to remove entries for "-z text" (see bug 5770) and change the /bin/sh entry to /bin/bash (bug 5765) after that a gmake && gmake install should work To get samba to function once installed you will also have to edit the library path to add the location for the shared samba libraries: crle -c /var/ld/ld.config -l /lib:/usr/lib:/opt/csw/lib:/usr/local/samba/lib and that should do it! Good luck, Christian McHugh Northern Arizona University