Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 320991 - net-fs/samba-3.4.6 upgrade from samba-3.0.37 fails during emerge
Summary: net-fs/samba-3.4.6 upgrade from samba-3.0.37 fails during emerge
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo's SAMBA Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-22 01:06 UTC by Steve Shumway
Modified: 2010-06-01 14:04 UTC (History)
0 users

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


Attachments
Output from emerge =net-fs/samba-3.4.6 (samba-emerge.log,72.70 KB, text/plain)
2010-05-22 01:09 UTC, Steve Shumway
Details
Output from emerge --info =net-fs/samba-3.4.6 (emerge-info.log,4.37 KB, text/plain)
2010-05-22 01:11 UTC, Steve Shumway
Details
Complete build log (build.log,71.70 KB, text/plain)
2010-05-22 01:14 UTC, Steve Shumway
Details
Output from samba emerge after re-emerge of talloc-2.0.1-r1 (emerge-samba.txt,72.59 KB, text/plain)
2010-05-26 01:59 UTC, Steve Shumway
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Shumway 2010-05-22 01:06:46 UTC
While attempting to perform an emerge -avuD world, the upgrade from samba-3.0.37 to samba-3.4.6 fails


Reproducible: Always

Steps to Reproduce:
1.emerge =net-fs/samba-3.4.6
2.
3.

Actual Results:  
See attached link to follow

Expected Results:  
Successful installation of samba 3.4.6

See attached link to follow
Comment 1 Steve Shumway 2010-05-22 01:09:24 UTC
Created attachment 232427 [details]
Output from emerge =net-fs/samba-3.4.6
Comment 2 Steve Shumway 2010-05-22 01:11:41 UTC
Created attachment 232429 [details]
Output from emerge --info =net-fs/samba-3.4.6
Comment 3 Steve Shumway 2010-05-22 01:14:52 UTC
Created attachment 232431 [details]
Complete build log 

Additionally, here's the output from: emerge -pvq =net-fs/samba-3.4.6

[ebuild     U ] net-fs/samba-3.4.6 [3.0.37] USE="acl avahi%* client%* cups fam ldap netapi%* pam readline server%* smbclient%* swat syslog* winbind -addns% -ads -aio% -caps -cluster% -debug -doc -examples -ldb% -quota% -smbsharemodes% (-async%) (-automount%*) (-ipv6%*) (-oav%) (-python%*) (-quotas%) (-selinux%)"
Comment 4 Stefan Behte (RETIRED) gentoo-dev Security 2010-05-22 10:49:40 UTC
add emerge --info, please
Comment 5 Steve Shumway 2010-05-22 14:59:02 UTC
Portage 2.1.8.3 (default/linux/x86/10.0/desktop, gcc-4.1.2, glibc-2.10.1-r1, 2.6.31-gentoo-r6 i686)
=================================================================
System uname: Linux-2.6.31-gentoo-r6-i686-Intel-R-_Core-TM-2_CPU_T7600_@_2.33GHz-with-gentoo-1.12.13
Timestamp of tree: Wed, 19 May 2010 05:00:01 +0000
app-shells/bash:     4.0_p37
dev-java/java-config: 1.3.7-r1, 2.1.10
dev-lang/python:     2.3.6-r3, 2.4.6, 2.5.4-r3, 2.6.4-r1
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.5, 1.7.9-r1, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc:       3.4.6-r2, 4.1.2, 4.3.4
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA dlj-1.1"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /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"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.mirrors.tds.net/gentoo http://open-systems.ufl.edu/mirrors/gentoo http://gentoo.llarian.net/ http://mirror.datapipe.net/gentoo http://prometheus.cs.wmich.edu/gentoo http://mirror.usu.edu/mirrors/gentoo/ http://mirror.mcs.anl.gov/pub/gentoo/ http://gentoo.cites.uiuc.edu/pub/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"
SYNC="rsync://10.210.92.125/gentoo-portage"
USE="X a52 aac acl acpi alsa arts avahi berkdb bluetooth branding bzip2 cairo cdr cleartype cli consolekit corefonts cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam flac fortran gdbm gif gnome gpm gtk hal iconv ipv6 jpeg kde kerberos lcms ldap libnotify lm mad mdnsresponder-compat mikmod mng modules mp3 mp4 mpeg mudflap mysql ncurses netapi nforse2 nls nptl nptlonly nss nvidia ogg opengl openmp pam pango pcre pdf perl pmu png postgres ppds pppd python qt3 qt3support qt4 readline reflection samba sdl sensors server session smbclient spell spl sql sqlite ssl startup-notification svg swat sysfs syslog tcpd tiff truetype unicode usb vorbis webkit winbind x264 x86 xcb xinerama xml xorg xulrunner xv xvid 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 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="mouse keyboard evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa via vmware voodoo" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 6 Víctor Ostorga (RETIRED) gentoo-dev 2010-05-24 16:23:54 UTC
Seems like the build process is either mis-detecting the version of talloc installed or you have not installed sys-libs/talloc-2.0.0-r1 .

Try to emerge sys-libs/talloc-2.0.0-r1 and after that samba-3.4.6
Comment 7 Steve Shumway 2010-05-24 20:02:14 UTC
(In reply to comment #6)
> Seems like the build process is either mis-detecting the version of talloc
> installed or you have not installed sys-libs/talloc-2.0.0-r1 .
> 
> Try to emerge sys-libs/talloc-2.0.0-r1 and after that samba-3.4.6
> 

Do you really mean sys-libs/talloc-2.0.0-r1 ? This is masked by keyword ~x86. The stable version would seem to be sys-libs/talloc-2.0.1-r1.
Comment 8 Steve Shumway 2010-05-24 20:34:39 UTC
(In reply to comment #7)
> (In reply to comment #6)
> > Seems like the build process is either mis-detecting the version of talloc
> > installed or you have not installed sys-libs/talloc-2.0.0-r1 .
> > 
> > Try to emerge sys-libs/talloc-2.0.0-r1 and after that samba-3.4.6
> > 
> 
> Do you really mean sys-libs/talloc-2.0.0-r1 ? This is masked by keyword ~x86.
> The stable version would seem to be sys-libs/talloc-2.0.1-r1.
>

For lack of anything else better to do, I tried both talloc-2.0.0-r1 and talloc-2.0.1-r1. I see no difference. 

For the record, I had talloc-2.0.1-r1 installed. The order of steps tried was:

1) emerge sys-libs/talloc. This caused a block by samba. I then performed: emerge -C net-fs/samba
2) emerge sys-libs/talloc. This caused installation of sys-libs/talloc-2.0.1-r1 
3) emerge net-fs/samba This caused installation of net-fs/samba-3.4.6 The same error as message as before.

4) mask all versions of talloc > 2.0.0-r1
5) emerge sys-libs/talloc. This caused installation of sys-libs/talloc-2.0.0-r1
6) emerge net-fs/samba This caused installation of net-fs/samba-3.4.6 with same error message as before.

Would you like me to re-post all of the log information again now that I have talloc-2.0.0-r2 installed?
Comment 9 Steve Shumway 2010-05-24 20:37:22 UTC
(In reply to comment #8)
> (In reply to comment #7)
> > (In reply to comment #6)
> > > Seems like the build process is either mis-detecting the version of talloc
> > > installed or you have not installed sys-libs/talloc-2.0.0-r1 .
> > > 
> > > Try to emerge sys-libs/talloc-2.0.0-r1 and after that samba-3.4.6
> > > 
> > 
> > Do you really mean sys-libs/talloc-2.0.0-r1 ? This is masked by keyword ~x86.
> > The stable version would seem to be sys-libs/talloc-2.0.1-r1.
> >
> 
> For lack of anything else better to do, I tried both talloc-2.0.0-r1 and
> talloc-2.0.1-r1. I see no difference. 
> 
> For the record, I had talloc-2.0.1-r1 installed. The order of steps tried was:
> 
> 1) emerge sys-libs/talloc. This caused a block by samba. I then performed:
> emerge -C net-fs/samba
> 2) emerge sys-libs/talloc. This caused installation of sys-libs/talloc-2.0.1-r1 
> 3) emerge net-fs/samba This caused installation of net-fs/samba-3.4.6 The same
> error as message as before.
> 
> 4) mask all versions of talloc > 2.0.0-r1
> 5) emerge sys-libs/talloc. This caused installation of sys-libs/talloc-2.0.0-r1
> 6) emerge net-fs/samba This caused installation of net-fs/samba-3.4.6 with same
> error message as before.
> 
> Would you like me to re-post all of the log information again now that I have
> talloc-2.0.0-r2 installed?
> 

Oops, that last line should have read: Would you like me to re-post all of the log information again now that I have
talloc-2.0.0-r1 installed?

Comment 10 Víctor Ostorga (RETIRED) gentoo-dev 2010-05-24 22:02:06 UTC
(In reply to comment #9)
> (In reply to comment #8)
> > (In reply to comment #7)
> > > (In reply to comment #6)
> > > > Seems like the build process is either mis-detecting the version of talloc
> > > > installed or you have not installed sys-libs/talloc-2.0.0-r1 .
> > > > 
> > > > Try to emerge sys-libs/talloc-2.0.0-r1 and after that samba-3.4.6
> > > > 
> > > 
> > > Do you really mean sys-libs/talloc-2.0.0-r1 ? This is masked by keyword ~x86.
> > > The stable version would seem to be sys-libs/talloc-2.0.1-r1.
> > >
> > 
> > For lack of anything else better to do, I tried both talloc-2.0.0-r1 and
> > talloc-2.0.1-r1. I see no difference. 
> > 
> > For the record, I had talloc-2.0.1-r1 installed. The order of steps tried was:
> > 
> > 1) emerge sys-libs/talloc. This caused a block by samba. I then performed:
> > emerge -C net-fs/samba
> > 2) emerge sys-libs/talloc. This caused installation of sys-libs/talloc-2.0.1-r1 
> > 3) emerge net-fs/samba This caused installation of net-fs/samba-3.4.6 The same
> > error as message as before.
> > 
> > 4) mask all versions of talloc > 2.0.0-r1
> > 5) emerge sys-libs/talloc. This caused installation of sys-libs/talloc-2.0.0-r1
> > 6) emerge net-fs/samba This caused installation of net-fs/samba-3.4.6 with same
> > error message as before.
> > 
> > Would you like me to re-post all of the log information again now that I have
> > talloc-2.0.0-r2 installed?
> > 
> 
> Oops, that last line should have read: Would you like me to re-post all of the
> log information again now that I have
> talloc-2.0.0-r1 installed?
> 
Sorry, I was talking about talloc-2.0.1-r1 . The build log is the same?
Comment 11 Steve Shumway 2010-05-26 01:58:34 UTC
(In reply to comment #10)
> (In reply to comment #9)
> > (In reply to comment #8)
> > > (In reply to comment #7)
> > > > (In reply to comment #6)
> > > > > Seems like the build process is either mis-detecting the version of talloc
> > > > > installed or you have not installed sys-libs/talloc-2.0.0-r1 .
> > > > > 
> > > > > Try to emerge sys-libs/talloc-2.0.0-r1 and after that samba-3.4.6
> > > > > 
> > > > 
> > > > Do you really mean sys-libs/talloc-2.0.0-r1 ? This is masked by keyword ~x86.
> > > > The stable version would seem to be sys-libs/talloc-2.0.1-r1.
> > > >
> > > 
> > > For lack of anything else better to do, I tried both talloc-2.0.0-r1 and
> > > talloc-2.0.1-r1. I see no difference. 
> > > 
> > > For the record, I had talloc-2.0.1-r1 installed. The order of steps tried was:
> > > 
> > > 1) emerge sys-libs/talloc. This caused a block by samba. I then performed:
> > > emerge -C net-fs/samba
> > > 2) emerge sys-libs/talloc. This caused installation of sys-libs/talloc-2.0.1-r1 
> > > 3) emerge net-fs/samba This caused installation of net-fs/samba-3.4.6 The same
> > > error as message as before.
> > > 
> > > 4) mask all versions of talloc > 2.0.0-r1
> > > 5) emerge sys-libs/talloc. This caused installation of sys-libs/talloc-2.0.0-r1
> > > 6) emerge net-fs/samba This caused installation of net-fs/samba-3.4.6 with same
> > > error message as before.
> > > 
> > > Would you like me to re-post all of the log information again now that I have
> > > talloc-2.0.0-r2 installed?
> > > 
> > 
> > Oops, that last line should have read: Would you like me to re-post all of the
> > log information again now that I have
> > talloc-2.0.0-r1 installed?
> > 
> Sorry, I was talking about talloc-2.0.1-r1 . The build log is the same?
> 

Sorry for the delay in getting back to you. Life happens around here some times.

To answer your question:

I re-configured the system such that I was able to emerge talloc-2.0.1-r1, and emerged that revision, and then attempted to re-emerge samba. To my eye, the build seems to fail in the same way. For completeness, I've attached the results of the samba emerge.
Comment 12 Steve Shumway 2010-05-26 01:59:57 UTC
Created attachment 232931 [details]
Output from samba emerge after re-emerge of talloc-2.0.1-r1
Comment 13 Víctor Ostorga (RETIRED) gentoo-dev 2010-05-28 23:10:42 UTC
(In reply to comment #12)
> Created an attachment (id=232931) [details]
> Output from samba emerge after re-emerge of talloc-2.0.1-r1
> 

I've found the error and that is you are using gcc 4.1.2 to build samba.
Please upgrade to the latest stable gcc-4.4.3 and try again.

Remember to execute something like 
# gcc-config i686-pc-linux-gnu-4.4.3
Comment 14 Steve Shumway 2010-05-29 02:10:40 UTC
(In reply to comment #13)
> (In reply to comment #12)
> > Created an attachment (id=232931) [details] [details]
> > Output from samba emerge after re-emerge of talloc-2.0.1-r1
> > 
> 
> I've found the error and that is you are using gcc 4.1.2 to build samba.
> Please upgrade to the latest stable gcc-4.4.3 and try again.
> 
> Remember to execute something like 
> # gcc-config i686-pc-linux-gnu-4.4.3
> 

Do you really mean 4.4.3? I see that 4.4.3 isn't stable under x86. Did you mean 4.3.4? This seems to be the highest stable release.

Funny that you should suggest upgrading the compiler. I was going to do that this weekend because I have the time to do it. :-)
Comment 15 Steve Shumway 2010-05-30 23:53:38 UTC
(In reply to comment #14)
> (In reply to comment #13)
> > (In reply to comment #12)
> > > Created an attachment (id=232931) [details] [details] [details]
> > > Output from samba emerge after re-emerge of talloc-2.0.1-r1
> > > 
> > 
> > I've found the error and that is you are using gcc 4.1.2 to build samba.
> > Please upgrade to the latest stable gcc-4.4.3 and try again.
> > 
> > Remember to execute something like 
> > # gcc-config i686-pc-linux-gnu-4.4.3
> > 
> 
> Do you really mean 4.4.3? I see that 4.4.3 isn't stable under x86. Did you mean
> 4.3.4? This seems to be the highest stable release.
> 
> Funny that you should suggest upgrading the compiler. I was going to do that
> this weekend because I have the time to do it. :-)
> 

OK, I rolled the dice and installed gcc 4.4.3. Then followed the gcc upgrade procedures. Bingo! samba works perfectly.

I'm not sure exactly what the protocol is here, but I'm going to mark this bug as "fixed".

Thanks for your help.
Comment 16 Víctor Ostorga (RETIRED) gentoo-dev 2010-05-31 01:57:58 UTC
(In reply to comment #14)
> (In reply to comment #13)
> > (In reply to comment #12)
> > > Created an attachment (id=232931) [details] [details] [details]
> > > Output from samba emerge after re-emerge of talloc-2.0.1-r1
> > > 
> > 
> > I've found the error and that is you are using gcc 4.1.2 to build samba.
> > Please upgrade to the latest stable gcc-4.4.3 and try again.
> > 
> > Remember to execute something like 
> > # gcc-config i686-pc-linux-gnu-4.4.3
> > 
> 
> Do you really mean 4.4.3? I see that 4.4.3 isn't stable under x86. Did you mean
> 4.3.4? This seems to be the highest stable release.
> 
> Funny that you should suggest upgrading the compiler. I was going to do that
> this weekend because I have the time to do it. :-)
> 

You're right, I meant stable gcc 4.3.4 .
I'll close the bug when I've checked affected samba versions and added a big red warning message to avoid others falling into this issue.

Thanks for your testing.
Comment 17 Víctor Ostorga (RETIRED) gentoo-dev 2010-06-01 14:04:55 UTC
I've added a gcc version check when building with winbind use flag