Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 289797 - net-fs/samba 3.4.2 undefined reference to `talloc_free'
Summary: net-fs/samba 3.4.2 undefined reference to `talloc_free'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo's SAMBA Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-19 19:43 UTC by Alex Crow
Modified: 2010-12-24 18:39 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Crow 2009-10-19 19:43:07 UTC
Despite being up to date, I get this for both samba-server and samba-client packages:

Linking bin/smbd
param/loadparm.o: In function `lp_string':
loadparm.c:(.text+0x2e76): undefined reference to `talloc_free'
param/loadparm.o: In function `canonicalize_servicename':
loadparm.c:(.text+0x42b5): undefined reference to `talloc_strdup'
param/loadparm.o: In function `free_one_parameter_common':
loadparm.c:(.text+0x4391): undefined reference to `talloc_free'
param/loadparm.o: In function `free_param_opts':
loadparm.c:(.text+0x453a): undefined reference to `talloc_free'
param/loadparm.o: In function `free_service_byindex':
loadparm.c:(.text+0x482c): undefined reference to `talloc_free'
param/loadparm.o: In function `handle_netbios_aliases':
loadparm.c:(.text+0x505c): undefined reference to `talloc_free'
loadparm.c:(.text+0x506c): undefined reference to `talloc_autofree_context'
param/loadparm.o: In function `set_param_opt':
loadparm.c:(.text+0x52b9): undefined reference to `talloc_free'


Reproducible: Always

Steps to Reproduce:
1. ACCEPT_KEYWORDS=~amd64 emerge samba
samba-libs builds OK but both -client and -server fail with the same undefined reference error
Actual Results:  
Build failure

Expected Results:  
Build success
Comment 1 Rafał Mużyło 2009-10-19 21:06:40 UTC
Paste output of 'emerge -1pv samba-libs samba-server samba-client'.
Comment 2 Alex Crow 2009-10-20 06:46:58 UTC
(In reply to comment #1)
> Paste output of 'emerge -1pv samba-libs samba-server samba-client'.
> 

(In reply to comment #1)
> Paste output of 'emerge -1pv samba-libs samba-server samba-client'.
> 

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] net-fs/samba-libs-3.4.2-r1  USE="cups netapi pam smbclient talloc tdb winbind -addns -ads -aio -caps -cluster -debug -examples -ldap -samba4 -smbsharemodes -syslog -tools" 0 kB
[ebuild  N    ] net-fs/samba-server-3.4.2  USE="acl cups winbind -ads -aio -avahi -caps -cluster -debug -doc -examples -fam -ldap -quota -samba4 -swat -syslog -zeroconf" 0 kB
[ebuild  N    ] net-fs/samba-client-3.4.2  USE="cups winbind -ads -aio -avahi -caps -cluster -debug -ldap -minimal -samba4 -syslog -zeroconf" 0 kB
Comment 3 Rafał Mużyło 2009-10-20 19:18:24 UTC
Do you have sys-libs/tdb installed ?
Comment 4 Alex Crow 2009-10-21 06:40:31 UTC
(In reply to comment #3)
> Do you have sys-libs/tdb installed ?
> 

No, nor do I have sys-libs/talloc.

I tried using USE="-tdb -talloc" which caused these to be emerged but samba-client failed with a different unknown symbol, so I removed them and stopped adding these flags.

This bug is with neither of these flags set and these libs not present.

Alex
Comment 5 Peter Alfredsen (RETIRED) gentoo-dev 2009-10-21 17:30:37 UTC
please attach the output of:
emerge --info =net-fs/samba 3.4.2
Comment 6 Alex Crow 2009-10-21 19:02:18 UTC
(In reply to comment #5)
> please attach the output of:
> emerge --info =net-fs/samba 3.4.2
> 

emerge --info =net-fs/samba-3.4.2
Portage 2.1.6.13 (default/linux/amd64/10.0, gcc-4.1.2, glibc-2.9_p20081201-r2, 2.6.23-gentoo-r3 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.23-gentoo-r3-x86_64-AMD_Athlon-tm-_64_Processor_3200+-with-gentoo-1.12.11.1
Timestamp of tree: Tue, 20 Oct 2009 17:00:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:     4.0_p28
dev-lang/python:     2.4.3-r4, 2.6.2-r1
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.63-r1
sys-devel/automake:  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="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /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="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://www.mirrorservice.org/sites/www.ibiblio.org/gentoo"
LDFLAGS="-Wl,-O1"
LINGUAS="en en_GB"
MAKEOPTS="-j1"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl amd64 apache apache2 berkdb bzip2 cli cracklib crypt cups dri foomaticdb fortran gdbm gpm iconv ipv6 isdnlog mmx modules mudflap multilib mysql ncurses nls nptl nptlonly openmp pam pcre perl php posix pppd python readline reflection session sockets spl sse sse2 ssl sysfs tcpd unicode winbind xml xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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="access auth auth_dbm auth_anon auth_digest alias file-cache echo charset-lite cache disk-cache mem-cache ext-filter case_filter case-filter-in deflate mime-magic cern-meta expires headers usertrack unique-id proxy proxy-connect proxy-ftp proxy-http info include cgi cgid dav dav-fs vhost-alias speling rewrite log_config logio env setenvif mime status autoindex asis negotiation dir imap actions userdir so filter unique_id authz_host" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB" USERLAND="GNU" VIDEO_CARDS="nv nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 7 Patrick Lauer gentoo-dev 2009-10-22 18:54:04 UTC
samba-libs-3.4.2-r2 should fix that. Please reopen if it still fails.
Comment 8 Alex Crow 2009-10-22 20:33:46 UTC
(In reply to comment #7)
> samba-libs-3.4.2-r2 should fix that. Please reopen if it still fails.
> 

(In reply to comment #6)


ACCEPT_KEYWORDS=~amd64 emerge -pv samba

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] sys-libs/tdb-1.1.5  USE="python -tdbtest -tools" 0 kB
[ebuild  N    ] sys-libs/talloc-2.0.0  USE="-compat" 237 kB
[ebuild  N    ] net-fs/samba-libs-3.4.2-r2  USE="cups netapi pam smbclient
winbind -addns -ads -aio -caps -cluster -debug -examples -ldap -samba4
-smbsharemodes -syslog -tools" 0 kB
[ebuild  N    ] virtual/talloc-1.0.0  0 kB
[ebuild  N    ] virtual/tdb-1.0.0  0 kB
[ebuild  N    ] net-fs/samba-client-3.4.2  USE="cups winbind -ads -aio -avahi
-caps -cluster -debug -ldap -minimal -samba4 -syslog -zeroconf" 0 kB
[ebuild  N    ] net-fs/samba-server-3.4.2  USE="acl cups winbind -ads -aio
-avahi -caps -cluster -debug -doc -examples -fam -ldap -quota -samba4 -swat
-syslog -zeroconf" 0 kB
[ebuild  N    ] net-fs/samba-3.4.2  USE="client server" 0 kB

Total: 8 packages (8 new), Size of downloads: 237 kB

I'll kick this off now - my wife will be very happy if it works (as she's
unable to wean herself completely off Windows so far).

Odd that it wants to emerge both sys-libs/ and virtual/ versions of talloc and
tdb, is this to be expected?

Cheers

Alex
Comment 9 Alex Crow 2009-10-22 21:19:34 UTC
I'm afraid it still fails, this time with libnetapi (just the same as when I used "USE=-talloc -tdb". Here is the snippet from samba-client:


Compiling libnet/libnet_dssync_keytab.c
Compiling librpc/gen_ndr/ndr_libnet_join.c
Compiling lib/eventlog/eventlog.c
Linking bin/net
utils/net.o: In function `main':
net.c:(.text+0x7f6): undefined reference to `libnetapi_free'
utils/net_rpc.o: In function `net_rpc':
net_rpc.c:(.text+0x70): undefined reference to `libnetapi_init'
net_rpc.c:(.text+0xb3): undefined reference to `libnetapi_set_username'
net_rpc.c:(.text+0xc3): undefined reference to `libnetapi_set_password'
net_rpc.c:(.text+0xf8): undefined reference to `libnetapi_set_use_kerberos'
utils/net_rpc.o: In function `rpc_user_password':
net_rpc.c:(.text+0x1afd): undefined reference to `NetUserSetInfo'
net_rpc.c:(.text+0x1b13): undefined reference to `libnetapi_get_error_string'
utils/net_rpc.o: In function `rpc_user_rename':
net_rpc.c:(.text+0x1c0a): undefined reference to `NetUserSetInfo'
net_rpc.c:(.text+0x1c1f): undefined reference to `libnetapi_get_error_string'
utils/net_rpc.o: In function `rpc_file_user':
net_rpc.c:(.text+0x23d0): undefined reference to `NetFileEnum'
utils/net_rpc.o: In function `net_rpc_file':
net_rpc.c:(.text+0x2490): undefined reference to `libnetapi_init'
net_rpc.c:(.text+0x24d3): undefined reference to `libnetapi_set_username'
net_rpc.c:(.text+0x24e3): undefined reference to `libnetapi_set_password'
net_rpc.c:(.text+0x2568): undefined reference to `libnetapi_set_use_kerberos'
utils/net_rpc.o: In function `rpc_sh_share_delete':
net_rpc.c:(.text+0x267a): undefined reference to `NetShareDel'
utils/net_rpc.o: In function `rpc_sh_share_add':
net_rpc.c:(.text+0x272e): undefined reference to `NetShareAdd'
utils/net_rpc.o: In function `rpc_share_list':
net_rpc.c:(.text+0x27ef): undefined reference to `NetShareEnum'
utils/net_rpc.o: In function `net_rpc_share':
net_rpc.c:(.text+0x2900): undefined reference to `libnetapi_init'
net_rpc.c:(.text+0x2943): undefined reference to `libnetapi_set_username'
net_rpc.c:(.text+0x2953): undefined reference to `libnetapi_set_password'
net_rpc.c:(.text+0x29c8): undefined reference to `libnetapi_set_use_kerberos'
utils/net_rpc.o: In function `rpc_share_add':
net_rpc.c:(.text+0x4814): undefined reference to `NetShareAdd'
net_rpc.c:(.text+0x482f): undefined reference to `libnetapi_get_error_string'
utils/net_rpc.o: In function `rpc_group_rename':
net_rpc.c:(.text+0x5597): undefined reference to `NetGroupSetInfo'
net_rpc.c:(.text+0x55ad): undefined reference to `libnetapi_get_error_string'
utils/net_rpc.o: In function `rpc_group_add':
net_rpc.c:(.text+0x6e6f): undefined reference to `NetGroupAdd'
net_rpc.c:(.text+0x6edd): undefined reference to `NetLocalGroupAdd'
net_rpc.c:(.text+0x6f08): undefined reference to `libnetapi_get_error_string'
net_rpc.c:(.text+0x6f3f): undefined reference to `libnetapi_get_error_string'
utils/net_rpc.o: In function `rpc_user_info':
net_rpc.c:(.text+0x79da): undefined reference to `NetUserGetGroups'
net_rpc.c:(.text+0x7a1e): undefined reference to `libnetapi_get_error_string'
utils/net_rpc.o: In function `rpc_user_list':
net_rpc.c:(.text+0x7afa): undefined reference to `NetQueryDisplayInformation'
net_rpc.c:(.text+0x7b6d): undefined reference to `NetApiBufferFree'
utils/net_rpc.o: In function `net_rpc_user':
net_rpc.c:(.text+0x7c10): undefined reference to `libnetapi_init'
net_rpc.c:(.text+0x7c53): undefined reference to `libnetapi_set_username'
net_rpc.c:(.text+0x7c63): undefined reference to `libnetapi_set_password'
net_rpc.c:(.text+0x7ce8): undefined reference to `libnetapi_set_use_kerberos'
utils/net_rpc.o: In function `rpc_user_delete':
net_rpc.c:(.text+0x8438): undefined reference to `NetUserDel'
net_rpc.c:(.text+0x8460): undefined reference to `libnetapi_get_error_string'
utils/net_rpc.o: In function `rpc_user_add':
net_rpc.c:(.text+0x84f2): undefined reference to `NetUserAdd'
net_rpc.c:(.text+0x852a): undefined reference to `libnetapi_get_error_string'
utils/net_rpc.o: In function `net_rpc_group':
net_rpc.c:(.text+0xa4a5): undefined reference to `libnetapi_init'
net_rpc.c:(.text+0xa4ec): undefined reference to `libnetapi_set_username'
net_rpc.c:(.text+0xa4fc): undefined reference to `libnetapi_set_password'
net_rpc.c:(.text+0xa599): undefined reference to `libnetapi_set_use_kerberos'
utils/net_rpc.o: In function `rpc_file_close':
net_rpc.c:(.text+0x2347): undefined reference to `NetFileClose'
utils/net_rpc.o: In function `rpc_share_delete':
net_rpc.c:(.text+0x470f): undefined reference to `NetShareDel'
utils/net_rpc_shell.o: In function `net_rpc_shell':
net_rpc_shell.c:(.text+0x445): undefined reference to `libnetapi_init'
net_rpc_shell.c:(.text+0x460): undefined reference to `libnetapi_set_username'
net_rpc_shell.c:(.text+0x470): undefined reference to `libnetapi_set_password'
net_rpc_shell.c:(.text+0x624): undefined reference to `libnetapi_set_use_kerberos'
utils/net_dom.o: In function `net_dom':
net_dom.c:(.text+0x40): undefined reference to `libnetapi_init'

<snip>

net_dom.c:(.text+0x7dd): undefined reference to `libnetapi_get_error_string'
collect2: ld returned 1 exit status
make: *** [bin/net] Error 1
 *
 * ERROR: net-fs/samba-client-3.4.2 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3032:  Called die
 * The specific snippet of code:
 *           emake ${BINPROGS} || die "emake binprogs failed";
 *  The die message:
 *   emake binprogs failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/net-fs/samba-client-3.4.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-fs/samba-client-3.4.2/temp/environment'.
 *

>>> Failed to emerge net-fs/samba-client-3.4.2, Log file:

>>>  '/var/tmp/portage/net-fs/samba-client-3.4.2/temp/build.log'

 * Messages for package net-fs/samba-client-3.4.2:

 *
 * ERROR: net-fs/samba-client-3.4.2 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3032:  Called die
 * The specific snippet of code:
 *           emake ${BINPROGS} || die "emake binprogs failed";
 *  The die message:
 *   emake binprogs failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/net-fs/samba-client-3.4.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-fs/samba-client-3.4.2/temp/environment'.
 *
Comment 10 Alex Crow 2009-10-22 22:15:09 UTC
OK, got the server to compile only by doing this:

USE="-netapi" ACCEPT_KEYWORDS=~amd64 emerge =samba-libs-3.4.2-r2 
then
USE="-netapi" ACCEPT_KEYWORDS=~amd64 emerge samba-server

I hope this helps for others.

Cheers

Alex
Comment 11 Alex Crow 2009-10-22 22:21:27 UTC
After doing this, no samba processes will start - so it's still not fixed.
Comment 12 Alex Crow 2009-10-22 22:22:48 UTC
(In reply to comment #11)
> After doing this, no samba processes will start - so it's still not fixed.
> 
Noticed this as smbd fails to start:

smbd: symbol lookup error: smbd: undefined symbol: wbcUidToSid
Comment 13 Stirling Westrup 2009-10-23 07:41:13 UTC
For what its worth, I seem to be getting the identical error on my x86 box.
---
emerge --info net-fs/samba-client
Portage 2.2_rc46 (default/linux/x86/10.0/desktop, gcc-4.1.2, glibc-2.10.1-r0, 2.6.31-gentoo-r3 i686)
=================================================================                                   
                        System Settings                                                             
=================================================================                                   
System uname: Linux-2.6.31-gentoo-r3-i686-AMD_Athlon-tm-_processor-with-gentoo-2.0.1                
Timestamp of tree: Fri, 23 Oct 2009 06:45:02 +0000                                                  
app-shells/bash:     4.0_p33                                                                        
dev-java/java-config: 2.1.9-r1                                                                      
dev-lang/python:     2.6.3, 3.1.1-r1                                                                
dev-util/cmake:      2.6.2-r1                                                                       
sys-apps/baselayout: 2.0.1                                                                          
sys-apps/openrc:     0.5.2-r1                                                                       
sys-apps/sandbox:    2.1                                                                            
sys-devel/autoconf:  2.13, 2.63-r1                                                                  
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11                                
sys-devel/binutils:  2.18-r3, 2.19.1-r1, 2.20                                                       
sys-devel/gcc-config: 1.4.1                                                                         
sys-devel/libtool:   2.2.6a                                                                         
virtual/os-headers:  2.6.30-r1                                                                      
ACCEPT_KEYWORDS="x86 ~x86"                                                                          
CBUILD="i686-pc-linux-gnu"                                                                          
CFLAGS="-O2 -march=athlon-tbird -pipe -fomit-frame-pointer"                                         
CHOST="i686-pc-linux-gnu"                                                                           
CONFIG_PROTECT="/etc /home/mythtv/ /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"                                                                                                                               
CXXFLAGS="-O2 -march=athlon-tbird -pipe -fomit-frame-pointer"                                                                            
DISTDIR="/usr/portage/distfiles"                                                                                                         
FEATURES="assume-digests distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"                                                                                                                     
GENTOO_MIRRORS="ftp://mirrors.tera-byte.com/pub/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_CA.utf8"                                                                                                                        
LDFLAGS="-Wl,-O1"                                                                                                                        
LINGUAS="en fr"                                                                                                                          
MAKEOPTS="-j2"                                                                                                                           
PKGDIR="/usr/portage/packages"                                                                                                           
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--progress --verbose"
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"
SYNC="rsync://rsync21.us.gentoo.org/gentoo-portage"
USE="16bit 3dnow 7zip X a52 aac aalib abook ace acl acpi administrator aften afterimage agg alisp alsa amazon analogtv animgif ao archive aspell auto-completion autostart awe32 bash-completion berkdb bidi bigpatch binary-drivers bindist binfilter bittorrent bl bluetooth branding bzip2 cairo cdaudio cdda cddb cdio cdparanoia cdr cdrom cdrtools cdsound cg charconv chm chroot cleartype cli cmdctrl cmdsubmenu console consolekit cracklib crypt css cups cupsddk dbus device-mapper dga dirac directfb disk-partition divx djvu dri dts dv dvb dvbplayer dvd dvdnav dvdr dvdread dvi eds elisp emacs emboss enblend enca encode evo exif exiv2 extra-algorithms fam fat fbcon fbcondecor fbdev fbsplash ffmpeg file filter firefox firefox3 flac flash flv font-server fontconfig fpx freeimage fuse gd gdbm gdm gif glitz gmedia gnome gnome-keyring gnome-print gnomecd gnutella gpg gpgme gpm graphviz grub gstreamer gtk h323 hal hddtemp help-screen hfs i18n icons iconv id3 id3tag image imagemagick iptv ipv6 irda isdnlog ivtv jfs jpeg jpeg2k json kate kde lame largefile ldap leim libcaca libmms libnotify libv4l2 lirc lircsettings live lm_sensors lua lvm lzma lzo mad magic mainmenuhooks matroska mediaplayer messages mikmod mmx mng modules mounts-check mouse mp2 mp3 mp4 mp4live mpe mpeg mpeg2 mplayer mudflap mule multislot mythtv na_dd na_dtv na_icons nas nautilus ncurses nemesi nfconntrack njb nls nolvm1 normalize nptl nptlonly ntfs nuv nvidia nvtv obex offensive ogg ogg123 ogm openal opengl openmp openssl opensslcrypt openvpn pam parted pcf pcre pdf perl pgf pmount png postproc ppds pppd print pvr python qt3support qt4 quicktime quote radio rar raw readline realmedia recode recording reflection regex replaygain samba schedule sctp sdl sdl-image sdl-sound sdlaudio sensord serial session setup setup-plugin sha512 shaders speex spell spl srt ssh ssl startup-notification stream stream4udp submenu subtitles svg svga svgz switchtimer symlink sysfs syslog systray szip tcpd tga tgif themes theora threads threadsafe thunar tiff totem transcode trayicon truetype tta tv tvtime twolame ui unicode unzip usb uudeview uuencode v4l2 vcd vcdinfo vcdx vdr vga vhook vidix vlm vnc volctrl vorbis vorbis-psy watchdog wavpack wcwidth webinterface win32codecs wma wmf wmp x264 x86 xattr xcomposite xemacs xext xine xinerama xml xorg xorgmodule xpm xterm xterm-color xulrunner xv xvid xvmc yaepg yv12 zip zlib zvbi" 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 authn_alias authn_anon 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 deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en fr" LIRC_DEVICES="serial pctv devinput" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTDIR_OVERLAY

=================================================================
                        Package Settings
=================================================================

net-fs/samba-client-3.3.8 was built with the following:
USE="cups ldap syslog -ads -aio -avahi -caps -cluster -debug -minimal -winbind -zeroconf"
Comment 14 Alex Crow 2009-10-24 10:46:10 UTC
Any thoughts on this?

Samba is quite far behind in Gentoo at the moment - and 3.4.1 and later are the only versions other than outdated 3.3.4 that will work with Win7.

Comment 15 Fabien Barbier 2009-10-24 11:43:32 UTC
(In reply to comment #14)
> Any thoughts on this?
> 
> Samba is quite far behind in Gentoo at the moment - and 3.4.1 and later are the
> only versions other than outdated 3.3.4 that will work with Win7.
> 

I had the exact same problem as you, but it seems I somehow "solved" it by adding the "samba4" and "ads" USE flags as well as emerging "heimdal". Cannot garantee that the same will work for you tough.(In reply to comment #14)

Comment 16 Alex Crow 2009-10-24 14:44:27 UTC
> I had the exact same problem as you, but it seems I somehow "solved" it by
> adding the "samba4" and "ads" USE flags as well as emerging "heimdal". Cannot
> garantee that the same will work for you tough.(In reply to comment #14)
> 

Did you use the -r2 libs or the original ones?

Cheers

Alex
Comment 17 Alex Crow 2009-10-24 16:37:31 UTC
(In reply to comment #16)
> > I had the exact same problem as you, but it seems I somehow "solved" it by
> > adding the "samba4" and "ads" USE flags as well as emerging "heimdal". Cannot
> > garantee that the same will work for you tough.(In reply to comment #14)
> > 
> 
> Did you use the -r2 libs or the original ones?
> 
> Cheers
> 
> Alex
> 

Confirmed: emerging heimdal first, then using USE="samba4 ads" to emerge =samba-libs-3.4.2-r2 samba-server samba-client samba results in a working samba server again. smbd -V reports 3.4.2.

Suggest that required flags be changed to at least get a working and current samba server for users running Win7 clients (and others).

Cheers Fabien.

Alex
Comment 18 Alex Crow 2009-10-24 17:40:38 UTC
Sorry, didn't realise what test-request did.
Comment 19 Maciej S. Szmigiero 2009-11-08 22:11:17 UTC
(In reply to comment #9)
> I'm afraid it still fails, this time with libnetapi (just the same as when I
> used "USE=-talloc -tdb". Here is the snippet from samba-client:
> 
> 
> Compiling libnet/libnet_dssync_keytab.c
> Compiling librpc/gen_ndr/ndr_libnet_join.c
> Compiling lib/eventlog/eventlog.c
> Linking bin/net
> utils/net.o: In function `main':
> net.c:(.text+0x7f6): undefined reference to `libnetapi_free'

I was able to fix this error with a small change to the samba-lib ebuild:
--- samba-libs-3.4.3-r1.ebuild.ori      2009-11-08 04:39:10.000000000 +0100
+++ samba-libs-3.4.3-r1.ebuild  2009-11-08 21:13:20.000000000 +0100
@@ -73,10 +73,6 @@
        cd "source3"
        eautoconf -Ilibreplace -Im4 -I../m4 -I../lib/replace -I../source4

-       # ensure that winbind has correct ldflags (QA notice)
-       sed -i \
-               -e 's|LDSHFLAGS="|LDSHFLAGS="\\${LDFLAGS} |g' \
-               configure || die "sed failed"
 }

 src_configure() {

In short: you have to remove line which adds LDFLAGS to LDSHFLAGS in configure.
Then ebuild samba-libs-3.4.3-r1.ebuild digest and reemerge samba-libs.
In my system this line added -pie to shared library linking stage, which for some reason caused half of its exported symbols to disappear.
Not sure what effect this change (or rather, reversing a change) has on winbind though.
Comment 20 Martin Fernau 2009-11-11 11:19:54 UTC
(In reply to comment #19)
> I was able to fix this error with a small change to the samba-lib ebuild:
> --- samba-libs-3.4.3-r1.ebuild.ori      2009-11-08 04:39:10.000000000 +0100
> +++ samba-libs-3.4.3-r1.ebuild  2009-11-08 21:13:20.000000000 +0100
> @@ -73,10 +73,6 @@
>         cd "source3"
>         eautoconf -Ilibreplace -Im4 -I../m4 -I../lib/replace -I../source4
> 
> -       # ensure that winbind has correct ldflags (QA notice)
> -       sed -i \
> -               -e 's|LDSHFLAGS="|LDSHFLAGS="\\${LDFLAGS} |g' \
> -               configure || die "sed failed"
>  }
> 
>  src_configure() {
> 
> In short: you have to remove line which adds LDFLAGS to LDSHFLAGS in configure.
> Then ebuild samba-libs-3.4.3-r1.ebuild digest and reemerge samba-libs.
> In my system this line added -pie to shared library linking stage, which for
> some reason caused half of its exported symbols to disappear.
> Not sure what effect this change (or rather, reversing a change) has on winbind
> though.
> 

Big thanks for that. After hours of investigating, trying and googeling around I saw this post and was finally able to build that damn samba-thing! 

Why is it always so complicated to keep all up to date :/
Comment 21 Erik Wallin 2009-11-16 19:58:06 UTC
I had the same problem, that is

net.c:(.text+0x7f6): undefined reference to `libnetapi_free'

To discover/resolve it I did the following

emerge -avu samba (installed samba-libs and failed on samba-client)
emerge -avC samba (removed old 3.0.37 version)
emerge -av samba-client (Failed!)
emerge -av1 samba-libs
emerge -ave world
emerge -av samba-server
emerge -av samba (successfully emerged samba-client and samba)

and to verify that the order of samba-server and samba-client doesn't matter I tried

emerge -avC samba samba-server samba-client
emerge -av samba (successfully emerged samba-client, samba-server and samba, in that order)

It seems that either the unmerge of samba (3.0.37) or the recompile of the whole system solved the problem.

> > In short: you have to remove line which adds LDFLAGS to LDSHFLAGS in configure.
> > Then ebuild samba-libs-3.4.3-r1.ebuild digest and reemerge samba-libs.
> > In my system this line added -pie to shared library linking stage, which for
> > some reason caused half of its exported symbols to disappear.
> > Not sure what effect this change (or rather, reversing a change) has on winbind
> > though.
Comment 22 Patrick Lauer gentoo-dev 2009-11-23 19:59:39 UTC
Oh dear, I forgot to commit -r2. I am a sad panda.
Comment 23 Joe Peterson (RETIRED) gentoo-dev 2010-07-23 21:25:57 UTC
For what it's worth, I had the same issue (with 3.4.5), and bumping to gcc 4.3.4 (saw this in bug #290912), then recompiling samba-libs, then samba-client, worked.  I did not try re-emerging samba-libs with the older gcc...

I did not recompile the whole system, so that part seems perhaps unnecessary.
Comment 24 Víctor Ostorga (RETIRED) gentoo-dev 2010-12-23 14:32:24 UTC
Ok guys, is this still an issue with samba 3.4.9 or above ?  Keep in mind this bug happened with splitted samba (samba-libs , samba-server, etc)
Comment 25 Stirling Westrup 2010-12-23 17:44:08 UTC
I had this problem with 3.4.2 and so masked it out. I recently upgraded my samba server to 3.5.6, skipping over all of the 3.4's and had no difficulties at all, so its fixed by 3.5.6, and possibly earlier.
Comment 26 Stirling Westrup 2010-12-23 17:51:05 UTC
Oh, and I just found a note that I couldn't get 3.5.2 to compile due to a 'bad make target'. Not sure if that was related to this bug or not, but it also seems to have been resolved by 3.5.6
Comment 27 Víctor Ostorga (RETIRED) gentoo-dev 2010-12-24 18:39:25 UTC
This is no longer an issue with unsplitted samba .