Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 288529

Summary: net-fs/samba-libs-3.4.2 build faild
Product: Gentoo Linux Reporter: Andreas Dröscher <bugzilla>
Component: New packagesAssignee: Gentoo's SAMBA Team <samba>
Status: VERIFIED TEST-REQUEST    
Severity: normal CC: bugzilla, chuck.wegrzyn, m.debruijne, maris.gis
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Andreas Dröscher 2009-10-11 10:10:05 UTC
Normally I am using "stable" ebuilds. For samba I activated the "testing" once using package.keywords. Following samba related packages are listed in it:
 - net-fs/samba
 - net-fs/samba-client
 - net-fs/samba-server
 - net-fs/samba-libs
 - virtual/talloc
 - virtual/tdb

[ebuild     U ] net-fs/samba-libs-3.4.2 [3.3.8] USE="ads aio caps cups ldap netapi%* pam talloc%* tdb%* tools%* -addns% -cluster -debug -examples -samba4% -smbclient% -smbsharemodes% -syslog -winbind" 0 kB

<snip>

 * make utilities
make bin/tdbbackup bin/tdbdump bin/tdbtool
Compiling ../lib/tdb/tools/tdbbackup.c
Linking bin/tdbbackup
../lib/tdb/tools/tdbbackup.o: In function `backup_tdb':
tdbbackup.c:(.text+0x166): undefined reference to `tdb_open'
tdbbackup.c:(.text+0x1af): undefined reference to `tdb_open'
tdbbackup.c:(.text+0x1c4): undefined reference to `tdb_transaction_start'
tdbbackup.c:(.text+0x1e1): undefined reference to `tdb_close'
tdbbackup.c:(.text+0x1e9): undefined reference to `tdb_close'
tdbbackup.c:(.text+0x217): undefined reference to `tdb_transaction_start'
tdbbackup.c:(.text+0x258): undefined reference to `tdb_hash_size'
tdbbackup.c:(.text+0x280): undefined reference to `tdb_traverse'
tdbbackup.c:(.text+0x2bc): undefined reference to `tdb_close'
tdbbackup.c:(.text+0x2d4): undefined reference to `tdb_close'
tdbbackup.c:(.text+0x2dc): undefined reference to `tdb_transaction_commit'
tdbbackup.c:(.text+0x31b): undefined reference to `tdb_close'
tdbbackup.c:(.text+0x33c): undefined reference to `tdb_open'
tdbbackup.c:(.text+0x35a): undefined reference to `tdb_traverse'
tdbbackup.c:(.text+0x38c): undefined reference to `tdb_close'
../lib/tdb/tools/tdbbackup.o: In function `copy_fn':
tdbbackup.c:(.text+0x443): undefined reference to `tdb_store'
tdbbackup.c:(.text+0x451): undefined reference to `tdb_name'
../lib/tdb/tools/tdbbackup.o: In function `main':
tdbbackup.c:(.text+0x611): undefined reference to `tdb_open'
tdbbackup.c:(.text+0x633): undefined reference to `tdb_traverse'
tdbbackup.c:(.text+0x641): undefined reference to `tdb_close'
collect2: ld returned 1 exit status
make: *** [bin/tdbbackup] Error 1
 *
 * ERROR: net-fs/samba-libs-3.4.2 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2999:  Called die
 * The specific snippet of code:
 *           emake ${BINPROGS} || die "emake binprogs failed";
 *  The die message:
 *   emake binprogs failed


Portage 2.1.6.13 (default/linux/x86/2008.0, gcc-4.1.2, glibc-2.9_p20081201-r2, 2.6.29-gentoo-r5 i686)
=================================================================
System uname: Linux-2.6.29-gentoo-r5-i686-Intel-R-_Pentium-R-_4_CPU_3.20GHz-with-gentoo-1.12.11.1
Timestamp of tree: Sun, 11 Oct 2009 08:30:01 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
app-shells/bash:     4.0_p28
dev-java/java-config: 1.3.7-r1, 2.1.8-r1
dev-lang/python:     2.4.6, 2.5.4-r3, 2.6.2-r1
dev-python/pycrypto: 2.0.1-r8
dev-util/cmake:      2.6.4
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -mtune=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O3 -mtune=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://sunsite.cnlab-switch.ch/ftp/mirror/gentoo http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/local-overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi apache2 backendonly berkdb bzip2 ch cli cracklib crypt cups curl daemon dri dts dvb encode fam flash fortran gd gdbm gif gpm iconv icq iproute2 isdnlog jpeg ldap logrotate maildir mmx modules mp2 mp3 msn mudflap mysql ncurses nls nptl nptlonly opengl openmp pam pcre pdflib perl png posix pppd python qt3support rdesktop readline reflection remote samba sasl server session slang spl sse sse2 ssl ssse3 subversion sysfs tao tcpd teletext tiff tk tokenizer truetype unicode win32codecs x x264 x86 xml xorg yahoo zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias apache2_modules_proxy" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 MarisN 2009-10-13 14:52:02 UTC
Same issue here (~AMD64). Probably related to bug #288543?

equery l '*tdb*' returns nothing.

emerge -pvDu samba
Calculating dependencies ... done!
[ebuild     U ] net-fs/samba-libs-3.4.2-r1 [3.3.8] USE="aio* cups* netapi%* pam smbclient%* syslog talloc%* tdb%* tools%* winbind* -addns% -ads -caps -cluster -debug -examples -ldap -samba4% -smbsharemodes%" 0 kB
[ebuild  N    ] virtual/talloc-1.0.0  0 kB
[ebuild  N    ] virtual/tdb-1.0.0  0 kB
[ebuild     U ] net-fs/samba-server-3.4.2 [3.3.8] USE="acl* aio* cups* syslog winbind* -ads -avahi -caps -cluster -debug -doc -examples -fam -ldap -quota -samba4% -swat -zeroconf" 0 kB
[ebuild     U ] net-fs/samba-client-3.4.2 [3.3.8] USE="aio* cups* syslog winbind* -ads -avahi -caps -cluster -debug -ldap -minimal -samba4% -zeroconf" 0 kB
[ebuild     U ] net-fs/samba-3.4.2 [3.3.8] USE="client server" 0 kB
Comment 2 Andreas Dröscher 2009-10-16 15:12:58 UTC
I guess found a solution.

I switched to gcc 4.3.2-r3 (using gcc-config, see: http://www.gentoo.org/doc/en/gcc-upgrading.xml for details)
Comment 3 Patrick Lauer gentoo-dev 2009-10-26 10:23:13 UTC
Is this still an issue with the newest ebuilds?
samba-libs/samba-libs-3.4.2-r3
samba-server/samba-server-3.4.2-r1
Comment 4 MarisN 2009-10-26 19:34:26 UTC
Seems to work now. Must be solved.
Comment 5 Andreas Dröscher 2009-10-28 21:19:50 UTC
I could successfully build 
- samba-libs/samba-libs-3.4.2-r3 
- samba-server/samba-server-3.4.2-r1
with gcc-4.1.2.