when i try to emerge --update samba, i get compile errors. : Compiling smbwrapper/smbsh.c Compiling smbwrapper/shared.c Linking bin/smbsh Compiling smbwrapper/smbw.c with -fPIC smbwrapper/smbw.c:1523: warning: no semicolon at end of struct or union smbwrapper/smbw.c:1523: parse error before '.' token smbwrapper/smbw.c:1525: parse error before '.' token smbwrapper/smbw.c:1527: parse error before '.' token smbwrapper/smbw.c:1531: parse error before '}' token smbwrapper/smbw.c: In function `xstat_convert': smbwrapper/smbw.c:1548: dereferencing pointer to incomplete type smbwrapper/smbw.c:1549: dereferencing pointer to incomplete type smbwrapper/smbw.c:1550: dereferencing pointer to incomplete type smbwrapper/smbw.c:1551: dereferencing pointer to incomplete type smbwrapper/smbw.c:1552: dereferencing pointer to incomplete type smbwrapper/smbw.c:1553: dereferencing pointer to incomplete type smbwrapper/smbw.c:1554: dereferencing pointer to incomplete type smbwrapper/smbw.c:1555: dereferencing pointer to incomplete type smbwrapper/smbw.c:1556: dereferencing pointer to incomplete type smbwrapper/smbw.c:1557: dereferencing pointer to incomplete type smbwrapper/smbw.c:1558: dereferencing pointer to incomplete type smbwrapper/smbw.c:1559: dereferencing pointer to incomplete type smbwrapper/smbw.c:1560: dereferencing pointer to incomplete type make: *** [smbwrapper/smbw.po] Error 1 !!! ERROR: net-fs/samba-2.2.8_pre1 failed. !!! Function src_compile, Line 121, Exitcode 2 !!! samba compile problem Reproducible: Always Steps to Reproduce: 1.emerge -u samba 2. 3. [root@gui - 00:38:24 - ~] # emerge info Portage 2.0.46-r12 (default-x86-1.4, gcc-3.2.2, glibc-2.3.2_pre1-r0) ================================================================= System uname: 2.4.19-gentoo-r10 i686 AMD Athlon(TM) MP 2400+ GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://mirrors.sunsite.dk/gentoo/ ftp://sunsite.dk/mirrors/gentoo/ http://gentoo.linux.no/ ftp://gentoo.linux.no/pub/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://ftp.dale.ro/pub/mirrors/ftp.ibiblio.org/pub/Linux/distributions/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo/ ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo/ ftp://ftp.rez-gif.supelec.fr/pub/Linux/distrib/gentoo/ " CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/usr/var/tmp" PORTDIR_OVERLAY="" USE="x86 gnome libg++ mikmod spell zlib gtkhtml gdbm berkdb slang tetex guile libwww perl python 3dnow acpi alsa apm arts avi bonobo cdr crypt cups dga doc dvd encode esd evo fbcon ggi gif gphoto2 gpm gtk imap imlib java jikes jpeg kde mmx motif mozilla mozxmlterm mpeg nas ncurses nls oggvorbis opengl oss pam pdflib png qt qtmt quicktime readline samba sdl ssl svga tcltk tcpd tiff truetype usb x X xml2 xmms xv" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=athlon-mp -O3 -pipe" CXXFLAGS="-march=athlon-mp -O3 -pipe" ACCEPT_KEYWORDS="x86 ~x86" MAKEOPTS="-j3" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache"
same for me
same here. emerge fails in exactly the same place. # emerge info Portage 2.0.46-r12 (default-x86-1.4, gcc-3.2.2, glibc-2.3.2_pre1-r0) ================================================================= System uname: 2.4.19-gentoo-r10 i686 Intel(R) Pentium(R) 4 Mobile CPU 2.00GHz GENTOO_MIRRORS="http://gentoo.oregonstate.edu/ http://www.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="" USE="x86 oss 3dnow apm avi encode gif jpeg libg++ libwww mikmod mmx mpeg ncurses nls pdflib png qtmt quicktime spell truetype xml2 xmms xv zlib gdbm berkdb slang readline arts svga tcltk java guile sdl gpm tcpd pam ssl perl python esd imlib oggvorbis qt kde motif opengl mozilla cdr scanner X gtk cups alsa crypt acpi4linux -gnome -lolo-sources" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=pentium4 -O3 -pipe" CXXFLAGS="-march=pentium4 -O3 -pipe" ACCEPT_KEYWORDS="x86 ~x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache"
Same for me
same here
Same for me This seems to come from the source thought ... The only fix I see is to report the bug at Samba's developpers ... Maybe downgrade the ebuild to version 2.2.7 ?
good news is that the failure is not related to 2.2.8 ... 2.2.7 fails in the same way ...
cant reproduce this, worksforme. good news is that i'll just remove smbwrapper/smbsh as they've been broken for a long time anyways with some wacky glibc issue. just never really got around to cleaning it out.
samba 2.2.8_pre1 fails here too with the same error.
Some more information on this. It seems to have something to do with configuration, as I'm having every version of samba in portage failing to compile (2.2.5-r1, 2.2.6-r2, 2.2.7, 2.2.7a and 2.2.8-pre1 [I've not tried 3.0 yet]). They all fail in the same place, line 1523 of smbw.c. Emerge info below: Portage 2.0.47-r6 (default-x86-1.4, gcc-3.2.2, glibc-2.3.2_pre1-r0,2.2.5-r4) ================================================================= System uname: 2.4.20-gentoo-r1 i686 AMD Duron(tm) processor GENTOO_MIRRORS="http://gentoo.oregonstate.edu/ http://distro.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="" USE="x86 oss apm avi crypt cups encode gif jpeg kde libg++ mikmod mmx mpeg ncurses nls pdflib png qtmt quicktime spell xml2 xmms xv zlib gtkhtml alsa gdbm berkdb slang readline arts tetex aalib bonobo svga tcltk java guile postgres X sdl gpm tcpd pam libwww ssl perl python esd imlib oggvorbis gnome gtk motif opengl gphoto2 cdr pda mozilla gpg gpgme 3dnow sse jpilot -qt truetype ogg" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=athlon-tbird -mcpu=athlon-tbird -O3 -pipe" CXXFLAGS="-march=athlon-tbird -mcpu=athlon-tbird -O3 -pipe" ACCEPT_KEYWORDS="x86 ~x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache"
I found a thread in comp.protocols.smb that explicitly states that smbwrapper will not work under linux. The ebuild should be modified to remove the --with-smbwrapper flag.
jim, did you not see what i already said in comment #7? please read it again.
Let me start off by saying that I'm not an authority on Gentoo or fixing bugs in general. However, can I offer a suggestion? Instead of arguing about whether it works for someone and doesn't work for someone, can we find out the common denominator for each of those cases? My guess would be that glibc-2.3.2_pre1 is the common denominator for people where samba is not compiling anymore. Spanky hit it right on the head with comment 6, and Jim in comment 9, and I agree that it seems like it is a configuration related change. Re-emerging 2.2.7, 2.2.7a, 2.2.8_pre-1 (yes, I tried all 3 one-by-one) all fail at the same stage, line 1523 in smbw.c. Looking at http://cvs.samba.org/cgi-bin/cvsweb/samba/source/smbwrapper/smbw.c that file hasn't been modified in 3 months in the samba CVS. Plus, can we get beyond the smbwrapper issue, since some of us already had 2.2.7a installed (whether smbwrapper was working or not, at least the ebuild compiled) and (gasp!) cannot reinstall 2.2.7a again after something else changed in our system (gasp!)? Surely, if I have 2.2.7a installed, I should be able to rebuild that ebuild, broken smbwrapper/smbsh or not (unless something else in my system changed which is causing the compile to fail). So, let's find that "something else". If that "something else" is indeed glibc, then let's remove the --with-smbwrapper from the ebuild and file another bug for glibc so that the original issue of line 1523 is not forgotten. BTW, I can also confirm that by commenting out references to smbwrapper from 2.2.8_pre1 ebuild, the ebuild emerges fine. 3.0-alpha21 emerges fine without any modifications. Portage 2.0.47-r7 (default-x86-1.4, gcc-3.2.2, glibc-2.3.2_pre1-r0) ACCEPT_KEYWORDS="x86 ~x86"
Previous comment repeat with line-breaks... Let me start off by saying that I'm not an authority on Gentoo or fixing bugs in general. However, can I offer a suggestion? Instead of arguing about whether it works for someone and doesn't work for someone, can we find out the common denominator for each of those cases? My guess would be that glibc-2.3.2_pre1 is the common denominator for people where samba is not compiling anymore. Spanky hit it right on the head with comment 6, and Jim in comment 9, and I agree that it seems like it is a configuration related change. Re-emerging 2.2.7, 2.2.7a, 2.2.8_pre-1 (yes, I tried all 3 one-by-one) all fail at the same stage, line 1523 in smbw.c. Looking at http://cvs.samba.org/cgi-bin/cvsweb/samba/source/smbwrapper/smbw.c that file hasn't been modified in 3 months in the samba CVS. Plus, can we get beyond the smbwrapper issue, since some of us already had 2.2.7a installed (whether smbwrapper was working or not, at least the ebuild compiled) and (gasp!) cannot reinstall 2.2.7a again after something else changed in our system (gasp!)? Surely, if I have 2.2.7a installed, I should be able to rebuild that ebuild, broken smbwrapper/smbsh or not (unless something else in my system changed which is causing the compile to fail). So, let's find that "something else". If that "something else" is indeed glibc, then let's remove the --with-smbwrapper from the ebuild and file another bug for glibc so that the original issue of line 1523 is not forgotten. BTW, I can also confirm that by commenting out references to smbwrapper from 2.2.8_pre1 ebuild, the ebuild emerges fine. 3.0-alpha21 emerges fine without any modifications. Portage 2.0.47-r7 (default-x86-1.4, gcc-3.2.2, glibc-2.3.2_pre1-r0) ACCEPT_KEYWORDS="x86 ~x86"
Please just try this one. *samba-2.2.8_pre2 (01 Mar 2003) 01 Mar 2003; Donny Davies <woodchip@gentoo.org> : About another 30 bugs fixed in this _pre update. Quell smbwrapper/smbsh. Post any new bugs against it.
I can confirm samba-2.2.8_pre2 emerges fine with my setup Portage 2.0.47-r7 (default-x86-1.4, gcc-3.2.2, glibc-2.3.2_pre1-r0)