Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 283592 - net-fs/samba-client fails to emerge if debug USE flag is set and dev-libs/dmalloc is not present on the system
Summary: net-fs/samba-client fails to emerge if debug USE flag is set and dev-libs/dma...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Gentoo's SAMBA Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-03 15:23 UTC by Viktor S
Modified: 2009-09-07 23:24 UTC (History)
0 users

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


Attachments
config.log (config.log,568.40 KB, text/plain)
2009-09-03 22:33 UTC, Viktor S
Details
fixed samba-libs ebuild (+1 line) (samba-libs-3.3.7-r1.ebuild,4.76 KB, text/plain)
2009-09-07 22:32 UTC, Viktor S
Details
fixed samba-server ebuild (+1 line) (samba-server-3.3.7-r1.ebuild,6.19 KB, text/plain)
2009-09-07 22:33 UTC, Viktor S
Details
fixed samba-client ebuild (+1 line) (samba-client-3.3.7-r1.ebuild,6.26 KB, text/plain)
2009-09-07 22:34 UTC, Viktor S
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Viktor S 2009-09-03 15:23:26 UTC
emerge samba (or samba-client) ends with a failure; specific snippet of error provided below:

checking whether mkdir supports mode... yes                                     
checking for timegm... no                                                       
checking for broken readdir... yes                                              
checking for getdirentries... no                                                
checking for prototype long telldir(const DIR *dir)... no                       
checking for prototype int seekdir(DIR *dir, long ofs)... no                    
checking for replacing readdir using getdirentries()... no                      
checking for getdents... no                                                     
checking for replacing readdir using getdents()... no                           
checking a usable readdir()... no                                               
configure: WARNING: the provided readdir() is broken                            
checking for syslog... no                                                       
configure: error: Required function not found

emerge --info below:

Portage 2.1.6.13 (default/linux/amd64/2008.0, gcc-4.4.1, glibc-2.9_p20081201-r3, 2.6.30-gentoo-r6-sgx64 x86_64)                                                 
=================================================================               
System uname: Linux-2.6.30-gentoo-r6-sgx64-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E6750_@_2.66GHz-with-gentoo-2.0.1                                                  
Timestamp of tree: Thu, 03 Sep 2009 05:45:01 +0000                              
distcc 3.1 x86_64-pc-linux-gnu [disabled]                                       
ccache version 2.4 [enabled]                                                    
app-shells/bash:     4.0_p28                                                    
dev-java/java-config: 2.1.9                                                     
dev-lang/python:     2.6.2-r1, 3.1.1                                            
dev-util/ccache:     2.4-r8                                                     
dev-util/cmake:      2.6.4-r2                                                   
sys-apps/baselayout: 2.0.1                                                      
sys-apps/openrc:     0.4.3-r3                                                   
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.19.1-r1                                                  
sys-devel/gcc-config: 1.4.1                                                     
sys-devel/libtool:   2.2.6a                                                     
virtual/os-headers:  2.6.30-r1                                                  
ACCEPT_KEYWORDS="amd64 ~amd64"                                                  
CBUILD="x86_64-pc-linux-gnu"                                                    
CFLAGS="-O2 -march=core2 -pipe -ggdb"                                           
CHOST="x86_64-pc-linux-gnu"                                                     
CONFIG_PROTECT="/etc /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=core2 -pipe -ggdb"                                         
DISTDIR="/usr/portage/distfiles"                                                
FEATURES="ccache confcache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms splitdebug strict unmerge-orphans userfetch"                      
GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo "                                                    
LANG="en_US.UTF8"                                                               
LDFLAGS="-Wl,-O1"                                                               
MAKEOPTS="-j3"                                                                  
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/layman/games /usr/local/portage/layman/kde-testing /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acl alsa amd64 berkdb bzip2 cairo cddax cddb cdr cli cracklib crypt cups curl curlwrappers dbus debug dga directfb dri dts dvd dvdr dvdread encode exif fbcon ffmpeg firefox flac fortran freetype ftp gd gdbm gif gpm hal htmlhandbook iconv idn imagemagick imap ipod ipv6 isdnlog java jpeg jpeg2k kde kontact lame latex maildir matroska mbox mime mmx mng mono mp3 mpeg mplayer msn mudflap multilib musepack musicbrainz mysql nas ncurses network nls nptl nptlonly ogg openal opengl openmp pam pcre pdf perl plasma png pppd python qt3 qt3support qt4 quicktime rdesktop readline realcodecs reflection rss samba sasl session spl sqlite sse sse2 ssl subversion svg symlink sysfs tcl tcpd threads tiff truetype unicode usb vorbis wavpack webkit wmf x264 xcomposite xinerama xml xorg xvid 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="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="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia nv"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Reproducible: Always
Comment 1 Rafał Mużyło 2009-09-03 19:49:08 UTC
The obvious: attach config.log.
Comment 2 Viktor S 2009-09-03 22:33:53 UTC
Created attachment 203086 [details]
config.log

if you think that helps, sure.
Comment 3 Patrick Lauer gentoo-dev 2009-09-04 09:24:07 UTC
Looks like an issue in your local setup. I can't reproduce it here (yet).
Comment 4 Viktor S 2009-09-04 12:30:33 UTC
It's strange because Samba obviously compiled earlier (3.2.14 is installed on my system) and I've not recompiled anything I can think of that would cause this kind of breakage since.
Comment 5 Viktor S 2009-09-07 19:37:42 UTC
Could someone PLEASE look at this, this is a MAJOR showstopper for me atm and I simply cannot fix this on my own. I've looked high and low but I don't even know what package/library is supposed to be supplying the readdir() call. I've attached all the info that I could think of, but if you need any more just say so.
Comment 6 Viktor S 2009-09-07 19:49:09 UTC
I've been reading through my own logs and it seems like syslog is the point of failure, which seems really really strange to me since a) I have syslog-ng installed (and updated to the latest version) and b) I'm building with USE -syslog for crying out loud, it shouldn't even LOOK for syslog IN THE FIRST PLACE.
Comment 7 Rafał Mużyło 2009-09-07 22:03:39 UTC
It seems the problem is quite trivial and surprisingly
is an ebuild bug.
'debug' useflag needs dmalloc, but it's missing from
samba-client's dependencies.
Comment 8 Viktor S 2009-09-07 22:28:29 UTC
Thank you so much, that was actually the culprit and thus the ebuild should be fixed and this bug can be closed. I'll attach diffs for the affected ebuilds.
Comment 9 Viktor S 2009-09-07 22:32:40 UTC
Created attachment 203422 [details]
fixed samba-libs ebuild (+1 line)

added

debug? ( dev-libs/dmalloc )

to DEPEND
Comment 10 Viktor S 2009-09-07 22:33:23 UTC
Created attachment 203424 [details]
fixed samba-server ebuild (+1 line)

see above
Comment 11 Viktor S 2009-09-07 22:34:00 UTC
Created attachment 203426 [details]
fixed samba-client ebuild (+1 line)

see above
Comment 12 Víctor Ostorga (RETIRED) gentoo-dev 2009-09-07 23:24:56 UTC
In portage. 
Thanks for the patches!