Trying: ebuild /usr/portage/net-fs/samba/samba-3.0.20-r1.ebuild compile yields: Compiling client/smbmount.c In file included from /usr/include/linux/list.h:6, from /usr/include/linux/wait.h:12, from /usr/include/linux/fs.h:12, from /usr/include/linux/smb_fs.h:15, from client/smbmount.c:25: /usr/include/asm/system.h:486: error: syntax error at '#' token /usr/include/asm/system.h:486: error: parse error before "DONT_USE_CPLUSPLUS_RESERVED_NAMES" /usr/include/asm/system.h: In function `__cmpxchg_u8': /usr/include/asm/system.h:508: error: syntax error at '#' token /usr/include/asm/system.h:508: error: `error' undeclared (first use in this function) /usr/include/asm/system.h:508: error: (Each undeclared identifier is reported only once /usr/include/asm/system.h:508: error: for each function it appears in.) /usr/include/asm/system.h:508: error: parse error before "DONT_USE_CPLUSPLUS_RESERVED_NAMES" /usr/include/asm/system.h:509: error: syntax error at '#' token /usr/include/asm/system.h: At top level: /usr/include/asm/system.h:515: error: syntax error at '#' token /usr/include/asm/system.h:515: error: parse error before "DONT_USE_CPLUSPLUS_RESERVED_NAMES" /usr/include/asm/system.h: In function `__cmpxchg_u16': /usr/include/asm/system.h:537: error: syntax error at '#' token /usr/include/asm/system.h:537: error: `error' undeclared (first use in this function) /usr/include/asm/system.h:537: error: parse error before "DONT_USE_CPLUSPLUS_RESERVED_NAMES" /usr/include/asm/system.h:538: error: syntax error at '#' token /usr/include/asm/system.h: At top level: /usr/include/asm/system.h:544: error: syntax error at '#' token /usr/include/asm/system.h:544: error: parse error before "DONT_USE_CPLUSPLUS_RESERVED_NAMES" /usr/include/asm/system.h: In function `__cmpxchg_u32': /usr/include/asm/system.h:562: error: `m' undeclared (first use in this function) /usr/include/asm/system.h:563: error: `old' undeclared (first use in this function) /usr/include/asm/system.h:563: error: syntax error at '#' token /usr/include/asm/system.h:563: error: `error' undeclared (first use in this function) /usr/include/asm/system.h:563: error: parse error before "DONT_USE_CPLUSPLUS_RESERVED_NAMES" /usr/include/asm/system.h: At top level: /usr/include/asm/system.h:569: error: syntax error at '#' token /usr/include/asm/system.h:569: error: parse error before "DONT_USE_CPLUSPLUS_RESERVED_NAMES" /usr/include/asm/system.h: In function `__cmpxchg_u64': /usr/include/asm/system.h:587: error: `m' undeclared (first use in this function) /usr/include/asm/system.h:588: error: `old' undeclared (first use in this function) /usr/include/asm/system.h:588: error: syntax error at '#' token /usr/include/asm/system.h:588: error: `error' undeclared (first use in this function) /usr/include/asm/system.h:588: error: parse error before "DONT_USE_CPLUSPLUS_RESERVED_NAMES" /usr/include/asm/system.h: At top level: /usr/include/asm/system.h:598: error: syntax error at '#' token /usr/include/asm/system.h:598: error: parse error before "DONT_USE_CPLUSPLUS_RESERVED_NAMES" /usr/include/asm/system.h: In function `__cmpxchg': /usr/include/asm/system.h:600: error: `size' undeclared (first use in this function) /usr/include/asm/system.h:602: error: `ptr' undeclared (first use in this function) /usr/include/asm/system.h:602: error: `old' undeclared (first use in this function) /usr/include/asm/system.h:602: error: syntax error at '#' token /usr/include/asm/system.h:602: error: `error' undeclared (first use in this function) /usr/include/asm/system.h:602: error: parse error before "DONT_USE_CPLUSPLUS_RESERVED_NAMES" /usr/include/asm/system.h:604: error: syntax error at '#' token /usr/include/asm/system.h:604: error: parse error before "DONT_USE_CPLUSPLUS_RESERVED_NAMES" /usr/include/asm/system.h:606: error: syntax error at '#' token /usr/include/asm/system.h:606: error: parse error before "DONT_USE_CPLUSPLUS_RESERVED_NAMES" /usr/include/asm/system.h:608: error: syntax error at '#' token /usr/include/asm/system.h:608: error: parse error before "DONT_USE_CPLUSPLUS_RESERVED_NAMES" make: *** [client/smbmount.o] Error 1 emerge info: Portage 2.0.52-r1 (default-linux/alpha/2005.0, gcc-3.4.4, glibc-2.3.4.20041102-r1, 2.4.21-alpha-r17 alpha) ================================================================= System uname: 2.4.21-alpha-r17 alpha EV56 Gentoo Base System version 1.12.0_pre8 dev-lang/python: 2.3.5, 2.4.1-r1 sys-apps/sandbox: 1.2.13 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.20 virtual/os-headers: 2.6.8.1-r4 ACCEPT_KEYWORDS="alpha ~alpha" AUTOCLEAN="yes" CBUILD="alpha-unknown-linux-gnu" CFLAGS="-mieee -pipe -O3 -mcpu=ev56" CHOST="alpha-unknown-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-mieee -pipe -O3 -mcpu=ev56" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/ownportage" SYNC="rsync://ftp.belnet.be/gentoo-portage" USE="alpha X arts berkdb bitmap-fonts crypt cups curl eds encode esd fam font-server foomaticdb fortran gdbm gif gpm gstreamer gtk gtk2 imagemagick imlib jpeg kde libg++ libwww mad mikmod motif mp3 mpeg ncurses nis nls ogg oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba scanner sdl slang spell ssl tcpd tetex tiff truetype truetype-fonts type1-fonts vorbis xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS
I also get this error when emerging samba 3.0.20-r1 on alpha. This bug is very interesting because DONT_USE_CPLUSPLUS_RESERVED_NAMES isn't in system.h and there is no '#' on line 508. /usr/include/asm/system.h:486: error: parse error before "DONT_USE_CPLUSPLUS_RESERVED_NAMES" ... /usr/include/asm/system.h:508: error: syntax error at '#' token My best guess is that there are preprocessor macros in a samba header file that are having unintended effects. A quick "grep -r DONT_USE_CPLUSPLUS_RESERVED_NAMES *" in /usr/include yields no results. Portage 2.0.51.22-r3 (default-linux/alpha/2005.0, gcc-3.3.2, glibc-2.3.4.20041102-r1, 2.6.13.4 alpha) ================================================================= System uname: 2.6.13.4 alpha EV56 Gentoo Base System version 1.6.13 dev-lang/python: 2.3.5-r2, 2.4.1-r1 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.8.1-r4 ACCEPT_KEYWORDS="alpha" AUTOCLEAN="yes" CBUILD="alpha-unknown-linux-gnu" CFLAGS="-mieee -O3 -mcpu=ev4" CHOST="alpha-unknown-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-mieee -O3 -mcpu=ev4" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="ftp://gentoo.risq.qc.ca/ http://mirror.arcticnetwork.ca/pub/gentoo/ http://adelie.polymtl.ca/ http://gentoo.cites.uiuc.edu/pub/gentoo/ ftp://gentoo.arcticnetwork.ca/pub/gentoo/" LDFLAGS="-Wl,-O1" LINGUAS="en" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.ca.gentoo.org/gentoo-portage" USE="alpha apache2 arts berkdb bitmap-fonts crypt cups curl eds encode font-server foomatic foomaticdb fortran gd gdbm gif gstreamer gtk2 imlib jabber jpeg libg++ libwww mad mp3 mpeg mysql ncurses nls nptl nptlonly ogg pam pdflib perl png postgres python readline spell ssl tcpd tiff truetype truetype-fonts type1-fonts udev vorbis xml2 zlib linguas_en userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL
The problem is caused by linux-headers-2.6.8.1-r4 (and possibly previous versions). After upgrading to linux-headers-2.6.11-r2 I was able to emerge samba-3.0.20-r1 without the compile error. linux-headers-2.6.11-r2 is still waiting on the ~alpha keyword. See Bug #107593
linux-headers-2.6.11-r2 is ~alpha'd now. Thanks and sorry for that one. Cheers, Ferdy