USE="addns ads aio caps cups ldap netapi pam samba4 smbclient syslog tools winbind -cluster -debug -examples -ldb -smbsharemodes" emerge samba-libs Reproducible: Always Compiling /tmp/portage/net-fs/samba-libs-3.4.3-r1/work/samba-3.4.3/source3/../source4/lib/cmdline/popt_common.c /tmp/portage/net-fs/samba-libs-3.4.3-r1/work/samba-3.4.3/source3/../source4/lib/cmdline/popt_common.c:23:21: error: version.h: No such file or directory /tmp/portage/net-fs/samba-libs-3.4.3-r1/work/samba-3.4.3/source3/../source4/lib/cmdline/popt_common.c: In function 'popt_version_callback': /tmp/portage/net-fs/samba-libs-3.4.3-r1/work/samba-3.4.3/source3/../source4/lib/cmdline/popt_common.c:51: error: 'SAMBA_VERSION_STRING' undeclared (first use in this function) /tmp/portage/net-fs/samba-libs-3.4.3-r1/work/samba-3.4.3/source3/../source4/lib/cmdline/popt_common.c:51: error: (Each undeclared identifier is reported only once /tmp/portage/net-fs/samba-libs-3.4.3-r1/work/samba-3.4.3/source3/../source4/lib/cmdline/popt_common.c:51: error: for each function it appears in.)
same here.. (changed summary, assigned to samba@) @Joerg: please add output of emerge --info next time since it also includes gcc, .. version (in this case i wouldn'T be surprised if it had to do with gcc) here's my emerge --info: Portage 2.1.7.4 (default/linux/amd64/10.0/desktop, gcc-4.4.2, glibc-2.11-r0, 2.6.28-gentoo-r2ATH64 x86_64) ================================================================= System uname: Linux-2.6.28-gentoo-r2ATH64-x86_64-AMD_Phenom-tm-_II_X3_720_Processor-with-gentoo-2.0.1 Timestamp of tree: Sat, 07 Nov 2009 18:45:01 +0000 distcc 3.1 x86_64-pc-linux-gnu [disabled] ccache version 2.4 [enabled] app-shells/bash: 4.0_p35 dev-java/java-config: 2.1.8-r1 dev-lang/python: 2.5.4-r3, 2.6.2-r1, 3.1.1 dev-python/pycrypto: 2.0.1-r8 dev-util/ccache: 2.4-r8 dev-util/cmake: 2.6.4 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.4.3-r3 sys-apps/sandbox: 2.0 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.20 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="-march=athlon64 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /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="-march=athlon64 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LDFLAGS="-Wl,-O1" LINGUAS="en en_GB de ja en_US" MAKEOPTS="-j4" 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/lordvan /usr/local/portage/layman/enlightenment" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="3dnow 3dnowext 3ds X X509 a52 aac aalib acl acpi ads aio alsa amd64 amr amrnb amrwb anthy apache2 applet archive ares artworkextra aspell asyncns atmo autotrace avahi beagle berkdb blender-game bluetooth bogofilter branding bzip2 cairo cal3d canna caps cdda cddax cddb cdio cdr cegui cg chm cjk clamdtop cleartype cli config-file consolekit cracklib crypt ctypes-python cups curl cvs cxx daap dbus device-mapper dga digitalradio disk-partition djvu dmraid dmx dns doc dri dtmf dts dvb dvd dvdr dvdread dvi edb editor eds emacs emboss emotion encode epydoc escreen etk evo ewl examples excel exchange exif experimental extras faac faad fam fame fat fax fbcon ffmpeg fftw firefox flac fontconfig foomaticdb fortran freewnn ftp fuse galago games gcdmaster gcj gd gda gdbm gedit ggi gif gimp git glade glitz gmp gnome gnome-keyring gnomecd gnutls gpac gphoto2 gpm grammar graphviz gs gsm gstreamer gtk guile gutenprint gzip-el h224 h281 h323 hal hbci howl-compat http-forms http-server httpd i18n iax iconv icu id3tag idle idn imagemagick imap imlib inotify ipv6 jabber jack jadetex java java6 jfs jpeg jpeg2k kde kerberos ladspa lame latex lcms ldap lib32 libass libcaca libgda liblockfile libmms libnotify libproxy libsamplerate libsigsegv libssh2 libsysfs libtiger libv4l2 lirc live look-aes loop-aes lqr lua lzma lzo mad mail maildir maps math matroska md5sum mdnsresponder-compat midii migemo mjpeg mmx mmxext mng modplug modules mono moonlight mozdevelop mozdom mp3 mp3rtp mp4 mpeg mplayer mtp mudflap multilib musepack musicbrainz nas nautilus ncurses netboot network networking nls nntp nptl nptlonly nsplugin ntfs nut nuv objc ode offensive ogg openexr opengl openmp otp ots overlays pam pango pcre pdf perl pipechan pkcs11 pkinit png pnm policykit postgres postproc ppds pppd pulseaudio pvr python qos qt3support qt4 quicktime quota radio readline reflection reiser4 reiserfs remote replytolist rfc4175 rtsp samba samba4 sasl scanner schroedinger sdl sdl-image sensord server session shine shout sip sipim skins skk smime smp sndfile soap socks soundtouch soup spamassassin speex spell spl sqlite sqlite3 srtp sse sse2 sse4a ssl startup-notification stats stream subtitles subversion svg swat sysfs syslog t1lib taglib tagwriting tcl tcpd teletext test tga theora thesaurus threads thunar thunderbird tiff timidity tk tools traits trayicon truetype twolame unicode usb v4l v4l2 vamp vcd vcdinfo vcdx vdpau vdr verse vlc vorbis vxml wav wavpack webkit winbind wma-fixed wmf wxwidgets wxwindows x264 xattr xcb xcomposite xfs xft xhtml xine xinerama xml xmlrpc xmp xorg xosd xpixmap xpm xrandr xslt xulrunner xv xvid xvmc zeroconf zip 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" APACHE2_MPMS="event" CAMERAS="directory" DVB_CARDS="ttpci ttusb-dec" 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 de ja en_US" LIRC_DEVICES="hauppauge_dvb hauppauge" USERLAND="GNU" VIDEO_CARDS="radeonhd vesa fbdev nv nvidia vesa vga" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Same here. I have a different gcc and glibc versions though. emerge --info Portage 2.1.7.4 (default/linux/amd64/10.0, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.31-gentoo-r4 x86_64) ================================================================= System uname: Linux-2.6.31-gentoo-r4-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E8400_@_3.00GHz-with-gentoo-2.0.1 Timestamp of tree: Mon, 09 Nov 2009 06:20: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-r1 dev-lang/python: 2.5.4-r3, 2.6.2-r1 dev-python/pycrypto: 2.0.1-r8 dev-util/ccache: 2.4-r8 dev-util/cmake: 2.6.4-r3 dev-util/confcache: 0.4.2-r1 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.5.2-r1 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.5, 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="-march=nocona -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/bin/xbmc-standalone; /usr/share/X11/xkb /var/bind /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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/splash /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=nocona -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests buildpkg ccache confcache distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo " LANG="nl_BE.utf8@euro" LDFLAGS="-Wl,-O1" LINGUAS="en nl" 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/xfce-dev /usr/local/portage/layman/berkano /usr/local/portage/layman/zugaina /usr/local/portage/layman/sunrise /usr/local/portage/mine" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X aac accessibility acl acpi alsa amd64 apache2 avahi bash-completion berkdb bzip2 cairo caps cdda cli consolekit cracklib crypt cups dbus dirac divx dri emerald enca encode exif extras faac faad fbcondecor ffmpeg firefox flac fortran ftp fuse gcj gdbm gif git glitz gmedia gmp gphoto2 gpm gtk hal hddtemp iconv id3 ipv6 ithreads java java6 joystick jpeg jpeg2 lame libnotify libsamplerate logrotate lzo mms mmx mng modules mp3 mpeg mplayer mudflap multilib musepack ncurses network nls nptl nptlonly nsplugin nvidia offensive ogg opengl openmp pam pcre perl png policykit pppd python qt4 quicktime rar raw readline reflection rtc samba samba4 schroedinger scrobbler sdl session spell spl sqlite3 sse sse2 ssl startup-notification subversion svg symlink sysfs syslog tcpd theora threads thunar truetype tta unicode vdpau visualization vorbis x264 xcb xcomponent xml xorg xscreensaver xulrunner xv xvid zlib" 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_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 version" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en nl" USERLAND="GNU" VIDEO_CARDS="vesa nvidia" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
USE="-samba4" does seem to be a workaraound .. (of course only if you don'T really need samba4 stuff) for samba-libs .. but then samba-client fails: client/cifs.upcall.c: In function 'get_tgt_time': client/cifs.upcall.c:97: error: incompatible type for argument 1 of 'k5_data_equal' client/cifs.upcall.c:48: note: expected 'krb5_data' but argument is of type 'Realm' client/cifs.upcall.c:97: error: incompatible type for argument 2 of 'k5_data_equal' client/cifs.upcall.c:48: note: expected 'krb5_data' but argument is of type 'Realm' client/cifs.upcall.c:98: error: 'struct Principal' has no member named 'data' client/cifs.upcall.c:99: error: 'struct Principal' has no member named 'data' client/cifs.upcall.c:99: error: incompatible type for argument 2 of 'k5_data_equal' client/cifs.upcall.c:48: note: expected 'krb5_data' but argument is of type 'Realm' client/cifs.upcall.c:109: error: 'KRB5_TC_OPENCLOSE' undeclared (first use in this function) client/cifs.upcall.c:109: error: (Each undeclared identifier is reported only once client/cifs.upcall.c:109: error: for each function it appears in.)
(In reply to comment #3) > but then samba-client fails: > client/cifs.upcall.c: In function 'get_tgt_time': > client/cifs.upcall.c:97: error: incompatible type for argument 1 of > 'k5_data_equal' > client/cifs.upcall.c:48: note: expected 'krb5_data' but argument is of type > 'Realm' > client/cifs.upcall.c:97: error: incompatible type for argument 2 of > 'k5_data_equal' > client/cifs.upcall.c:48: note: expected 'krb5_data' but argument is of type > 'Realm' > client/cifs.upcall.c:98: error: 'struct Principal' has no member named 'data' > client/cifs.upcall.c:99: error: 'struct Principal' has no member named 'data' > client/cifs.upcall.c:99: error: incompatible type for argument 2 of > 'k5_data_equal' > client/cifs.upcall.c:48: note: expected 'krb5_data' but argument is of type > 'Realm' > client/cifs.upcall.c:109: error: 'KRB5_TC_OPENCLOSE' undeclared (first use in > this function) > client/cifs.upcall.c:109: error: (Each undeclared identifier is reported only > once > client/cifs.upcall.c:109: error: for each function it appears in.) > That looks more like #291360
Seems related to Bug #291360
The version.h problem is a problem with the merged build. See https://bugzilla.samba.org/show_bug.cgi?id=6954 for more information.
The patch from that bugreport might work, but it fails just after that: /var/tmp/portage/net-fs/samba-libs-3.4.4/work/samba-3.4.4/source3/../source4/param/pyparam.c:27:22: error: pytalloc.h: No such file or directory ... ouch :)
See https://bugzilla.samba.org/show_bug.cgi?id=6952. Building without the samba 4 USE-flag will work around this by not building that code at all. Since the current samba ebuilds don't actually install any samba 4 binaries, python modules or provisioning scripts, I don't think that the samba4 USE-flag makes much sense now. Perhaps some shared libraries are installed, but I doubt applications currently use this. Also, the samba 4 code in samba 3.4.x is a snapshot of a couple of months ago and is merely a proof of concept of the merged build. If you actually want to try the merged build, you should use the git master branch so the developers can actually fix the bugs you find. Or that's what they told me on IRC anyway. See http://news.samba.org/developers/Samba_Team_Blog_3/ for more information about samba 4 and other planning stuff.
samba-libs was dropped a while ago