Hello, Building under Solaris10 following Linker-error occures: creating /tmp/BUILD/samba-3.6.0pre1/source3/exports/libtdb.syms Linking shared library bin/libtdb.so.1 Undefined first referenced symbol in file fdatasync ../lib/tdb/common/transaction.o ld: fatal: Symbol referencing errors. No output written to bin/libtdb.so.1 collect2: ld returned 1 exit status make: *** [bin/libtdb.so.1] Error 1 Adding -lposix4 solves this Problem. Then the next Linker-Error follows: Linking bin/net Undefined first referenced symbol in file libintl_gettext utils/net.o libintl_textdomain utils/net.o libintl_bindtextdomain utils/net.o ld: fatal: Symbol referencing errors. No output written to bin/net collect2: ld returned 1 exit status make: *** [bin/net] Error 1 Adding -lintl solves this problem. Compiler: gcc --version gcc (GCC) 3.4.3 (csl-sol210-3_4-branch+sol_rpath) Copyright (C) 2004 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Configure-Flags: ./configure --prefix=/opt/sfw --disable-swat --with-krb5=/opt/sfw --with-quotas --with-lockdir=/var/opt/log/samba/lock --with-piddir=/var/opt/log/samba --with-logfilebase=/var/opt/log/samba --with-privatedir=/var/opt/log/samba/lock/private --with-configdir=/etc/sfw --with-winbind --with-acl-support --with-ads --with-utmp --with-libsmbclient --with-included-popt --with-aio-support=no --with-ldap=/opt/sfw --enable-external-libtalloc=no --enable-pthreadpool --with-aio-support --with-pam=yes Greetings, Ralf
yes, we need some configure magic for solaris. working on that ...
Created attachment 5898 [details] Possible patch for configure.in to add the libraries
Thanks but it doesn't look like what we really need/want. This is somehting which needs to go into the libreplcae or libtdb configure file, not the main samba configure file. AKAIK the test needs to check if fdatasync is in librt and we need to introduce a variable which holds the required libs to build libtdb.
5390baeb6b97acbfde89bdb6a2c678a516a0e360 fixes that for me, it will be in the next 3.6 release, too.