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

Bug 295254

Summary: cant build net-fs/samba-client-3.4.3 net.c:(.text+0x7e7): undefined reference to `libnetapi_free'
Product: Gentoo Linux Reporter: h.schraepler
Component: New packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description h.schraepler 2009-11-30 22:22:02 UTC
If i will build this ebuild i get this error:

Linking bin/smbget                                                                                                                        
utils/net.o: In function `main':                                                                                                          
net.c:(.text+0x7e7): undefined reference to `libnetapi_free'                                                                              
utils/net_rpc.o: In function `net_rpc':                                                                                                   
net_rpc.c:(.text+0xb6): undefined reference to `libnetapi_init'                                                                           
net_rpc.c:(.text+0xf2): undefined reference to `libnetapi_set_username'                                                                   
net_rpc.c:(.text+0x107): undefined reference to `libnetapi_set_password'                                                                  
net_rpc.c:(.text+0x14b): undefined reference to `libnetapi_set_use_kerberos'                                                              
utils/net_rpc.o: In function `rpc_user_password':                                                                                         
net_rpc.c:(.text+0x2228): undefined reference to `NetUserSetInfo'                                                                         
net_rpc.c:(.text+0x2240): undefined reference to `libnetapi_get_error_string'                                                             
utils/net_rpc.o: In function `rpc_user_rename':                                                                                           
net_rpc.c:(.text+0x2367): undefined reference to `NetUserSetInfo'                                                                         
net_rpc.c:(.text+0x237f): undefined reference to `libnetapi_get_error_string'                                                             
utils/net_rpc.o: In function `rpc_file_close':                                                                                            
net_rpc.c:(.text+0x2d14): undefined reference to `NetFileClose'

------------------------------------

emerge --info =net-fs/samba-client-3.4.3
Portage 2.2_rc54 (default/linux/x86/10.0/desktop, gcc-4.1.2, glibc-2.9_p20081201-r2, 2.6.31-gentoo-r3 i686)
=================================================================                                          
                        System Settings                                                                    
=================================================================                                          
System uname: Linux-2.6.31-gentoo-r3-i686-Intel-R-_Pentium-R-_M_processor_2.26GHz-with-gentoo-2.0.1        
Timestamp of tree: Mon, 30 Nov 2009 18:30:01 +0000                                                         
app-shells/bash:     4.0_p28                                                                               
dev-java/java-config: 1.3.7-r1, 2.1.9-r1                                                                   
dev-lang/python:     2.6.2-r1                                                                              
dev-python/pycrypto: 2.0.1-r8                                                                              
dev-util/cmake:      2.8.0                                                                                 
sys-apps/baselayout: 2.0.1                                                                                 
sys-apps/openrc:     0.5.2-r2                                                                              
sys-apps/sandbox:    2.2                                                                                   
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
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.29
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /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/udev/rules.d"
CXXFLAGS="-O2 -march=pentium-m -O2 -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://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo"
LANG="de_DE.utf8"
LC_ALL="de_DE.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="de"
MAKEOPTS="-j2"
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="X a52 aac acc acl acpi alsa berkdb bluetooth branding bzip2 cairo cdparanoia cdr cli consolekit cracklib crypt cups dbus divx dri dts dvd dvdr dvdread eds emboss encode esd evo exif fam firefox flac fortran gdbm gif gpm gstreamer hal iconv id3 ipv6 irmc jpeg kde lame ldap libnotify mad mikmod mmx modules mp3 mp4 mpeg mudflap ncurses netjack nls nptl nptlonly nsplugin obex ogg opengl openmp oss pam pcre pdf perl png ppds pppd pulseaudio python qt qt3support qt4 quicktime readline reflection samba sdl session slang sndfile spell spl sse sse2 ssl startup-notification svg sysfs tcpd thunar tiff truetype tse3 type1 unicode usb vorbis win32codecs wmp x264 x86 xml xorg xulrunner xv xvid zlib" ALSA_CARDS="intel8x0" 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" CAMERAS="canon ptp2" ELIBC="glibc" INPUT_DEVICES="evdev mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY


Reproducible: Always
Comment 1 Patrick Lauer gentoo-dev 2009-12-01 20:35:16 UTC

*** This bug has been marked as a duplicate of bug 290912 ***