Bug 7612 - Linker error with Solaris 10 x86
Linker error with Solaris 10 x86
Status: RESOLVED FIXED
Product: Samba 3.6
Classification: Unclassified
Component: Build environment
3.6.0pre1
x86 Solaris
: P3 normal
: ---
Assigned To: Björn Jacke
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-08-10 06:27 UTC by Ralf Schwiete
Modified: 2010-08-13 08:31 UTC (History)
0 users

See Also:


Attachments
Possible patch for configure.in to add the libraries (847 bytes, patch)
2010-08-12 08:11 UTC, Ralf Schwiete
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ralf Schwiete 2010-08-10 06:27:51 UTC
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
Comment 1 Björn Jacke 2010-08-12 06:39:22 UTC
yes, we need some configure magic for solaris. working on that ...
Comment 2 Ralf Schwiete 2010-08-12 08:11:40 UTC
Created attachment 5898 [details]
Possible patch for configure.in to add the libraries
Comment 3 Björn Jacke 2010-08-12 08:17:39 UTC
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.
Comment 4 Björn Jacke 2010-08-13 08:31:28 UTC
5390baeb6b97acbfde89bdb6a2c678a516a0e360 fixes that for me, it will be in the next 3.6 release, too.