building samba from SAMBA_3_0 branch (revision 19710) on slackware linux (gcc-3.4.6, glibc-2.3.6, linux-2.6.17) produce incorrect shared libraries: libaddns.so, libmsrpc.so, libsmbclient.so, libsmbsharemodes.so. to build samba i use the following script --------------------------------------------------------------- #!/bin/bash cd ./source ./autogen.sh CFAGS="-O2 -march=i486 -mtune=i686" ./configure \ --enable-cups \ --enable-static=no \ --enable-shared=yes \ --with-fhs \ --with-acl-support=yes \ --with-automount \ --prefix=/usr \ --localstatedir=/var \ --bindir=/usr/bin \ --sbindir=/usr/sbin \ --with-lockdir=/var/cache/samba \ --sysconfdir=/etc \ --with-configdir=/etc/samba \ --with-privatedir=/etc/samba/private \ --with-swatdir=/usr/share/swat \ --with-smbmount \ --with-quotas \ --with-syslog \ --with-utmp \ --with-libsmbclient \ --with-winbind \ --with-ldap make clean make --------------------------------------------------------------- There was no compilation errors, but the 'ldd source/bin/*.so' commands gives: source/bin/libaddns.so: /usr/bin/ldd: line 124: source/bin/libaddns.so: No such file or directory source/bin/libmsrpc.so: /usr/bin/ldd: line 124: source/bin/libmsrpc.so: No such file or directory source/bin/libsmbclient.so: /usr/bin/ldd: line 124: source/bin/libsmbclient.so: No such file or directory source/bin/libsmbsharemodes.so: /usr/bin/ldd: line 124: source/bin/libsmbsharemodes.so: No such file or directory Linking with this libraries also do not work.
Please update to latest svn, and then from the source directory, do: make distclean ./autogen.sh ./configure.developer --enable-debug make make install It's possible that some of the configure options you are using are mutually exclusive, and causing the problem. It's important to know, though, if a standard configuration (no special options) works. I'm closing this bug. If the problem still exists, please re-open this bug after determining, if at all possible, which configure option(s) cause the problem.
I did the following steps. This does not help. make distclean ./autogen.sh ./configure.developer --enable-debug make make install the "./configure.developer --enable-debug" say: Using libraries: LIBS = -lcrypt -lresolv -lresolv -lnsl -ldl LDAP_LIBS = -lldap -llber AUTH_LIBS = -lcrypt the "make" say: Using FLAGS = -g -D_SAMBA_BUILD_=3 -gstabs -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-align -Wwrite-strings -DDEBUG_PASSWORD -DDEVELOPER -Wdeclaration-after-statement -I/tmp/s/samba3/source/iniparser/src -Iinclude -I./include -I. -I. -I./lib/replace -I./lib/talloc -I./tdb/include -I./libaddns -I./librpc -DHAVE_CONFIG_H -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DLDAP_DEPRECATED -I/tmp/s/samba3/source/lib -D_SAMBA_BUILD_=3 PICFLAG = -fPIC LIBS = -lcrypt -lresolv -lresolv -lnsl -ldl LDFLAGS = -pie DYNEXP = -Wl,--export-dynamic LDSHFLAGS = -shared -Wl,-Bsymbolic SHLIBEXT = so SONAMEFLAG = -Wl,-soname=
Jelmer, Jerry, Jeremy, any idea what's going on here? I'm reassigning this to the Build Environment default assignee... Derrell
Either this report or one on the mailing list indicated the problem was adding -fPIC to thelinking stage. I'll take the on and get it fixed.
please retest against 3.0.25. Thanks.
bug still exist
*** Bug 4367 has been marked as a duplicate of this bug. ***
Closing as fixed as the whole build system has been replaced since then.