net-fs/samba-3.0.20b fails to build in amd64. In file included from /usr/include/asm/system.h:7, from /usr/include/asm/../asm-x86_64/processor.h:19, from /usr/include/asm/processor.h:7, from /usr/include/linux/prefetch.h:15, from /usr/include/linux/list.h:5, 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/../asm-x86_64/system.h:245: error: syntax error at '#' token /usr/include/asm/../asm-x86_64/system.h:245: error: parse error before "DONT_USE _CPLUSPLUS_RESERVED_NAMES" /usr/include/asm/../asm-x86_64/system.h: In function `__cmpxchg': /usr/include/asm/../asm-x86_64/system.h:248: error: `size' undeclared (first use in this function) /usr/include/asm/../asm-x86_64/system.h:248: error: (Each undeclared identifier is reported only once /usr/include/asm/../asm-x86_64/system.h:248: error: for each function it appears in.) /usr/include/asm/../asm-x86_64/system.h:252: error: syntax error at '#' token /usr/include/asm/../asm-x86_64/system.h:252: error: `error' undeclared (first us e in this function) /usr/include/asm/../asm-x86_64/system.h:252: error: parse error before "DONT_USE _CPLUSPLUS_RESERVED_NAMES" /usr/include/asm/../asm-x86_64/system.h:258: error: syntax error at '#' token /usr/include/asm/../asm-x86_64/system.h:258: error: parse error before "DONT_USE _CPLUSPLUS_RESERVED_NAMES" /usr/include/asm/../asm-x86_64/system.h:264: error: syntax error at '#' token /usr/include/asm/../asm-x86_64/system.h:264: error: parse error before "DONT_USE _CPLUSPLUS_RESERVED_NAMES" /usr/include/asm/../asm-x86_64/system.h:270: error: syntax error at '#' token /usr/include/asm/../asm-x86_64/system.h:270: error: parse error before "DONT_USE _CPLUSPLUS_RESERVED_NAMES" /usr/include/asm/../asm-x86_64/system.h:274: error: `old' undeclared (first use in this function) make: *** [client/smbmount.o] Error 1 make: *** Waiting for unfinished jobs.... !!! ERROR: net-fs/samba-3.0.20b failed. !!! Function src_compile, Line 135, Exitcode 2 !!! SAMBA make everything error !!! If you need support, post the topmost build error, NOT this status message. Possibly missing dependencies with kernel-headers package? Portage 2.0.51.22-r3 (default-linux/amd64/2005.0, gcc-3.4.3, glibc-2.3.4.20041102-r1, 2.6.12-cko3 x86_64) ================================================================= System uname: 2.6.12-cko3 x86_64 AMD Athlon(tm) 64 Processor 3000+ Gentoo Base System version 1.4.16 distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [disabled] dev-lang/python: 2.3.4, 2.4.1-r1 sys-apps/sandbox: 1.2.11 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.90.0.1.1-r3 sys-devel/libtool: 1.5.20 virtual/os-headers: 2.6.8.1-r4 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -mmmx -msse -msse2 -m3dnow -m64 -pipe -fexpensive-optimizations -ffast-math -fPIC -mfpmath=sse,387" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/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/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -mmmx -msse -msse2 -m3dnow -m64 -pipe -fexpensive-optimizations -ffast-math -fPIC -mfpmath=sse,387" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig candy distlocks prelink sfperms strict" GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/" LANG="fi_FI@euro" LINGUAS="fi" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://trumpetti.atm.tut.fi/gentoo-portage" USE="X alsa amd64 apache2 arts audiofile avi berkdb bitmap-fonts bzip2 cdr crypt cups curl dvd eds emboss encode esd ethereal exif expat fam ffmpeg foomaticdb fortran freetype gdbm gif glut gmp gpm gstreamer gtk2 idn imagemagick imlib java jpeg kde kdeenablefinal kdefinal lcms libwww lzw lzw-tiff mad mhash mikmod mng motif mozilla mp3 mpeg mysql ncurses nls nptl ogg openal opengl pam pcre pdflib perl php png python qt quicktime readline recode ruby samba sdl slang slp snmp spell ssl tcpd tiff truetype truetype-fonts type1 type1-fonts usb userlocales vorbis xine xml2 xmms xpm xprint xv zlib linguas_fi userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LC_ALL, LDFLAGS Reproducible: Always Steps to Reproduce: 1. 2. 3.
Maybe, as you say, kernel headers. For amd64 the latest (stable) choice is =sys-kernel/linux-headers-2.6.11-r2. Could you try this?
Well, eero?
yes, it fixes it.
ok, works now.