When I try to emerge samba i get: >>> Emerging (1 of 1) net-fs/samba-3.0.22-r2 to / >>> checking ebuild checksums ;-) >>> checking auxfile checksums ;-) >>> checking miscfile checksums ;-) >>> checking samba-3.0.22.tar.gz ;-) >>> checking samba-3-gentoo-0.3.11.tar.bz2 ;-) >>> Unpacking source... >>> Unpacking samba-3.0.22.tar.gz to /var/tmp/portage/samba-3.0.22-r2/work >>> Unpacking samba-3-gentoo-0.3.11.tar.bz2 to /var/tmp/portage/samba-3.0.22-r2/work * Applying various patches (bugfixes/updates) ... * 002_all_samba-3.0.x-smbumount-uid32.patch ... [ ok ] * 003_all_samba-3.0.x-libdirsymlink.patch ... [ ok ] * 004_all_samba-2.2.8-statfs.patch ... [ ok ] * 010_all_samba-3.0.x-extrabins.patch ... [ ok ] * 011_all_samba-3.0.x-subins-configure.patch ... [ ok ] * 012_all_samba-3.0.x-subins-makefile.patch ... [ ok ] * 025_all_samba-3.0.x-pdb-mysql.patch ... [ ok ] * 030_all_samba-3.0.x-cross-compile.patch ... [ ok ] * Done with patching >>> Source unpacked. >>> Compiling source in /var/tmp/portage/samba-3.0.22-r2/work/samba-3.0.22/source ... * Running autoconf ... [ ok ] QA Notice: USE Flag 'linguas_ja' not in IUSE for net-fs/samba-3.0.22-r2 QA Notice: USE Flag 'linguas_pl' not in IUSE for net-fs/samba-3.0.22-r2 QA Notice: USE Flag 'kernel_linux' not in IUSE for net-fs/samba-3.0.22-r2 * econf: updating samba-3.0.22/source/config.guess with /usr/share/gnuconfig/config.guess * econf: updating samba-3.0.22/source/config.sub with /usr/share/gnuconfig/config.sub ./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --with-fhs --sysconfdir=/etc/samba --localstatedir=/var --with-configdir=/etc/samba --with-libdir=/usr/lib/samba --with-swatdir=/usr/share/doc/samba-3.0.22-r2/swat --with-piddir=/var/run/samba --with-lockdir=/var/cache/samba --with-logfilebase=/var/log/samba --with-privatedir=/var/lib/samba/private --with-libsmbclient --without-spinlocks --without-acl-support --without-aio-support --without-automount --enable-cups --without-krb5 --without-pam --without-pam_smbpass --with-python --without-quotas --without-sys-quotas --with-readline --with-smbmount --without-syslog --with-expsam=xml, --with-manpages-langs=en,pl --without-ldapsam --build=i686-pc-linux-gnu SAMBA VERSION: 3.0.22 checking for -fPIE... yes checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether i686-pc-linux-gnu-gcc accepts -g... yes checking for i686-pc-linux-gnu-gcc option to accept ISO C89... none needed ./configure: line 3300: syntax error near unexpected token `;' ./configure: line 3300: `;' !!! Please attach the following file when filing a report to bugs.gentoo.org: !!! /var/tmp/portage/samba-3.0.22-r2/work/samba-3.0.22/source/config.log !!! ERROR: net-fs/samba-3.0.22-r2 failed. Call stack: ebuild.sh, line 1540: Called dyn_compile ebuild.sh, line 940: Called src_compile samba-3.0.22-r2.ebuild, line 104: Called econf '--with-fhs' '--sysconfdir=/etc/samba' '--localstatedir=/var' '--with-configdir=/etc/samba' '--with-libdir=/usr/lib/samba' '--with-swatdir=/usr/share/doc/samba-3.0.22-r2/swat' '--with-piddir=/var/run/samba' '--with-lockdir=/var/cache/samba' '--with-logfilebase=/var/log/samba' '--with-privatedir=/var/lib/samba/private' '--with-libsmbclient' '--without-spinlocks' '--without-acl-support' '--without-aio-support' '--without-automount' '--enable-cups' '--without-krb5' '--without-pam' '--without-pam_smbpass' '--with-python' '--without-quotas' '--without-sys-quotas' '--with-readline' '--with-smbmount' '--without-syslog' '--with-expsam=xml,' '--with-manpages-langs=en,pl' '--without-ldapsam' ebuild.sh, line 541: Called die !!! econf failed !!! If you need support, post the topmost build error, and the call stack if relevant. emerge --info: Portage 2.1.1_pre1-r2 (default-linux/x86/2006.0, gcc-4.1.1/vanilla, glibc-2.4-r3, 2.6.17-gentoo i686) ================================================================= System uname: 2.6.17-gentoo i686 AMD Sempron(tm) 2800+ Gentoo Base System version 1.12.1 dev-lang/python: 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.60 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.17 sys-devel/gcc-config: [Not Present] sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r5 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf" CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.prz.rzeszow.pl http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" LINGUAS="pl" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/banned_branches" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 7zip X alsa apm avi bitmap-fonts cli crypt cups dri eds emboss encode firefox flac foomaticdb gdbm gif gpm gstreamer gtk gtk2 imlib isdnlog java jpeg kde libg++ libwww mad mikmod mmx motif mp3 mpeg ncurses nls nptl nvidia ogg opengl pcre pdf pdflib perl png pppd python qt quicktime readline reflection sdl session spell spl sse ssl svg tcpd tiff truetype truetype-fonts type1-fonts udev userlocales vorbis xml xorg xv zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux linguas_pl userland_GNU video_cards_nvidia" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS
When I switch to autoconf 2-59-r7 problem dissapear, but there is another one, few minutes later: Compiling ubiqx/debugparse.c Compiling utils/smbfilter.c Compiling lib/talloctort.c make: *** No rule to make target `@EXTRA_SUBIN_PROGS@', needed by `all'. Stop. make: *** Waiting for unfinished jobs.... Compiling utils/log2pcaphex.c !!! ERROR: net-fs/samba-3.0.22-r2 failed. Call stack: ebuild.sh, line 1540: Called dyn_compile ebuild.sh, line 940: Called src_compile samba-3.0.22-r2.ebuild, line 130: Called die
Created attachment 90305 [details] log file
I solved problem with "syntax error near unexpected token `;'" "manually": 1. emerge samba 2. wait till autoconf do his job 3. ctrl-z to halt emerge process 4. edit /var/tmp/portage/samba-3.0.22-r2/work/samba-3.0.22/source/configure 5. find each block: ; CFLAGS="$old_CFLAGS"; old_CFLAGS=""; export CFLAGS; CPPFLAGS="$old_CPPFLAGS"; old_CPPFLAGS=""; export CPPFLAGS; LDFLAGS="$old_LDFLAGS"; old_LDFLAGS=""; export LDFLAGS; and remove ";" from the first line of block. 6. Save changes. 7. fg to resume emerge proces. That did the trick and samba compiled without further errors. Still I don't know why autoconf-2.60 returned errors though.
bug isnt actually fixed
Happend to me as well Portage 2.1.1_pre1-r2 (default-linux/x86/2006.0, gcc-3.4.6/vanilla, glibc-2.4-r3, 2.6.16-gentoo-r1 i686) ================================================================= System uname: 2.6.16-gentoo-r1 i686 Pentium Pro Gentoo Base System version 1.12.1 ccache version 2.4 [enabled] dev-lang/python: 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.4-r2 dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.60 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.17 sys-devel/gcc-config: 2.0.0_rc1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r5 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O3 -march=pentiumpro -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-O3 -march=pentiumpro -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://gd.tuwien.ac.at/opsys/linux/gentoo/ " LINGUAS="en de" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 alsa apache apache2 apm arts avi bash-completion berkdb bitmap-fonts bzip2 c3p0 cli crypt cups dri eds emboss encode esd exif foomaticdb fortran gdbm geoip gif gpm gstreamer gtk2 imlib ipv6 isdnlog java jpeg libg++ libwww log4j mad mikmod motif mp3 mpeg mysql nagios-dns nagios-ntp nagios-ping nagios-ssh ncurses nls nptl nptlonly ogg opengl oss pam pcre pdflib perl php png postgres pppd python qt qt3 qt4 quicktime readline reflection samba sdl search session silc spell spl ssl swat syslog tcpd tidy truetype truetype-fonts type1-fonts udev vhosts vim vorbis xml xmms xorg xv zip zlib elibc_glibc kernel_linux linguas_en linguas_de userland_GNU" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
QUICK DIRTY FIX cd /usr/portage/net-fs/samba edit samba-3.0.22-r2, immediately before the "econf" line insert cat ${S} | grep -Ev "^;$" > ${S}/ctmp mv ${S}/ctmp ${S}/configure chmod 755 ${S}/configure then run ebuild samba-3.0.22-r2.ebuild digest should emerge properly.
Alas, that doesn't fix it here (AMD64): * econf: updating samba-3.0.22/source/config.guess with /usr/share/gnuconfig/config.guess * econf: updating samba-3.0.22/source/config.sub with /usr/share/gnuconfig/config.sub ./configure --prefix=/usr --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --with-fhs --sysconfdir=/etc/samba --localstatedir=/var --with-configdir=/etc/samba --with-libdir=/usr/lib64/samba --with-swatdir=/usr/share/doc/samba-3.0.22-r2/swat --with-piddir=/var/run/samba --with-lockdir=/var/cache/samba --with-logfilebase=/var/log/samba --with-privatedir=/var/lib/samba/private --with-libsmbclient --without-spinlocks --without-acl-support --without-aio-support --without-automount --enable-cups --without-krb5 --with-pam --with-pam_smbpass --with-python --without-quotas --without-sys-quotas --with-readline --with-smbmount --without-syslog --with-expsam=mysql, --with-manpages-langs=en,pl --without-ldapsam --libdir=/usr/lib64 --build=x86_64-pc-linux-gnu make: *** No rule to make target `proto'. Stop. !!! ERROR: net-fs/samba-3.0.22-r2 failed. Call stack: ebuild.sh, line 1539: Called dyn_compile ebuild.sh, line 939: Called src_compile samba-3.0.22-r2.ebuild, line 133: Called die !!! SAMBA make proto error !!! If you need support, post the topmost build error, and the call stack if relevant.
(In reply to comment #6) > QUICK DIRTY FIX > > cd /usr/portage/net-fs/samba > > edit samba-3.0.22-r2, immediately before the "econf" line > > insert fixed typo: grep -Ev "^;$" ${S}/configure > ${S}/ctmp mv ${S}/ctmp ${S}/configure chmod 755 ${S}/configure > then run > ebuild samba-3.0.22-r2.ebuild digest > > > should emerge properly. >
Created attachment 90416 [details] configure log file
Created attachment 90478 [details, diff] Fix problem with autoconf 2.60 No probelm with this obvious patch (took me whopping 5min to produce)
(In reply to comment #7) > Alas, that doesn't fix it here (AMD64): > > * econf: updating samba-3.0.22/source/config.guess with > /usr/share/gnuconfig/config.guess > * econf: updating samba-3.0.22/source/config.sub with > /usr/share/gnuconfig/config.sub > ./configure --prefix=/usr --host=x86_64-pc-linux-gnu --mandir=/usr/share/man > --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc > --localstatedir=/var/lib --with-fhs --sysconfdir=/etc/samba > --localstatedir=/var --with-configdir=/etc/samba --with-libdir=/usr/lib64/samba > --with-swatdir=/usr/share/doc/samba-3.0.22-r2/swat --with-piddir=/var/run/samba > --with-lockdir=/var/cache/samba --with-logfilebase=/var/log/samba > --with-privatedir=/var/lib/samba/private --with-libsmbclient > --without-spinlocks --without-acl-support --without-aio-support > --without-automount --enable-cups --without-krb5 --with-pam --with-pam_smbpass > --with-python --without-quotas --without-sys-quotas --with-readline > --with-smbmount --without-syslog --with-expsam=mysql, > --with-manpages-langs=en,pl --without-ldapsam --libdir=/usr/lib64 > --build=x86_64-pc-linux-gnu > make: *** No rule to make target `proto'. Stop. > > !!! ERROR: net-fs/samba-3.0.22-r2 failed. > Call stack: > ebuild.sh, line 1539: Called dyn_compile > ebuild.sh, line 939: Called src_compile > samba-3.0.22-r2.ebuild, line 133: Called die > > !!! SAMBA make proto error > !!! If you need support, post the topmost build error, and the call stack if > relevant. > Same problem with P4 emerge --info: Gentoo Base System version 1.12.1 Portage 2.1.1_pre1-r5 (default-linux/x86/2006.0, gcc-3.4.4/vanilla, glibc-2.4-r3, 2.6.14-kanotix-9 i686) ================================================================= System uname: 2.6.14-kanotix-9 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz dev-lang/python: 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.60 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.17 sys-devel/gcc-config: 2.0.0_rc1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r5 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium4 -O3 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-march=pentium4 -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="C" LC_ALL="C" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X Xaw3d a52 aac aalib acl acpi aim alsa apache apache2 arts audiofile avi bash-completion bcmath berkdb bitmap-fonts bluetooth bzip2 calendar caps cdb cdinstall cdparanoia cdr clamav cli crypt cscope ctype cups curl curlwrappers dbus dedicated directfb dri dts dv dvb dvd dvdr dvdread encode ethereal exif expat fam fastcgi fbcon ffmpeg flac flash foomaticdb ftp gd gdbm ggi gif glut gmp gphoto2 gpm gps gtk gtk2 guile hal howl iconv icq idn ieee1394 imagemagick imap imlib inifile iodbc ipv6 isdnlog jabber java javascript jbig jikes joystick jpeg jpeg2k junit kde kdeenablefinal kdexdeltas lcms ldap libcaca libg++ libgda libwww lirc lm_sensors lua m17n-lib mad maildir mailwrapper matrox mbox mcal mikmod mime ming mng mono mozilla mp3 mpeg msn mysql mysqli ncurses nocd nptl nptlonly nsplugin odbc offensive ofx ogg oggvorbis openal opengl oracle oscar oss pam pcmcia pcre pdf pdflib perl php png posix ppds pppd profile python qt qt3 qt4 quicktime readline reflection ruby samba scanner sdl session sharedext sharedmem slang slp smartcard sndfile snmp sockets speex spell spl sse sse2 ssl startup-notification svg svga symlink tcl tcltk tcpd theora threads tiff tk tokenizer truetype truetype-fonts type1-fonts udev unicode usb v4l vcd videos vorbis wifi win32codecs wmf wxwindows xine xinerama xml xmlreader xmlrpc xmlwriter xmms xorg xosd xprint xsl xv xvid yahoo zlib elibc_glibc input_devices_evdev input_devices_keyboard input_devices_mouse input_devices_-acecad input_devices_-aiptek input_devices_-calcomp input_devices_-citron input_devices_-digitaledge input_devices_-dmc input_devices_-dynapro input_devices_-elo2300 input_devices_-elographics input_devices_-fpit input_devices_-hyperpen input_devices_-jamstudio input_devices_joystick input_devices_-magellan input_devices_-microtouch input_devices_-mutouch input_devices_-palmax input_devices_-penmount input_devices_-spaceorb input_devices_-summa input_devices_synaptics input_devices_-tek4957 input_devices_-ur98 input_devices_vmmouse input_devices_-void input_devices_-wacom kernel_linux userland_GNU video_cards_-apm video_cards_-ark video_cards_-chips video_cards_-cirrus video_cards_-cyrix video_cards_-dummy video_cards_-epson video_cards_fbdev video_cards_-glint video_cards_-i128 video_cards_-i740 video_cards_-i810 video_cards_-imstt video_cards_-mach64 video_cards_-mga video_cards_-neomagic video_cards_-nsc video_cards_-nv video_cards_-r128 video_cards_-radeon video_cards_-rendition video_cards_-s3 video_cards_-s3virge video_cards_-savage video_cards_-siliconmotion video_cards_-sis video_cards_-sisusb video_cards_-tdfx video_cards_-tga video_cards_-trident video_cards_-tseng video_cards_v4l video_cards_vesa video_cards_-vga video_cards_-via video_cards_vmware video_cards_-voodoo" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
(In reply to comment #11) > Same problem with P4 > Opps...missed the fixed typo. Now it works.
*** Bug 139128 has been marked as a duplicate of this bug. ***
*** Bug 139192 has been marked as a duplicate of this bug. ***
+Canal Vorfeed's patch (comment 10)
thanks canal, added to cvs, with patchset 3.0.12
*** Bug 139490 has been marked as a duplicate of this bug. ***