ndiswrapper-1.55 fail on compile for 2.6.31 kernel /var/tmp/portage/net-wireless/ndiswrapper-1.55/work/ndiswrapper-1.55/driver/ntoskernel.h:905: error: implicit declaration of function 'cmpxchg8b' building in 2.6.30-r6 but fails the same when building in 2.6.31 kernel Reproducible: Always Steps to Reproduce: 1.emerge ndiswrapper 2. 3. Actual Results: ERROR: net-wireless/ndiswrapper-1.55 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 3406: Called linux-mod_src_compile * environment, line 2602: Called die * The specific snippet of code: * eval "emake HOSTCC=\"$(tc-getBUILD_CC)\" CROSS_COMPILE=${CHOST}- LDFLAGS=\"$(get_abi_LDFLAGS)\" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CROSS_COMPILE=${CHOST}- LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}"; * The die message: * Unable to emake HOSTCC=i686-pc-linux-gnu-gcc CROSS_COMPILE=i686-pc-linux-gnu- LDFLAGS= KSRC=/usr/src/linux KVERS=2.6.31-gentoo KBUILD=/usr/src/linux -j1 all Expected Results: succesful /var/tmp/portage/net-wireless/ndiswrapper-1.55/work/ndiswrapper-1.55/driver/ntos kernel.h:905: error: implicit declaration of function 'cmpxchg8b' make[2]: *** [/var/tmp/portage/net-wireless/ndiswrapper-1.55/work/ndiswrapper-1. 55/driver/crt.o] Error 1 make[1]: *** [_module_/var/tmp/portage/net-wireless/ndiswrapper-1.55/work/ndiswr apper-1.55/driver] Error 2 make[1]: Leaving directory `/usr/src/linux-2.6.31-gentoo' make: *** [modules] Error 2 * * ERROR: net-wireless/ndiswrapper-1.55 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 3406: Called linux-mod_src_compile * environment, line 2602: Called die * The specific snippet of code: * eval "emake HOSTCC=\"$(tc-getBUILD_CC)\" C ROSS_COMPILE=${CHOST}- LDFLAGS=\"$(get_ abi_LDFLAGS)\" ${BUILD_FIXES} $ {BUILD_PARAMS} ${BUILD_TARGETS} " || di e "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CROSS_COMPILE=${CHOST}- LDFLAGS="$ (get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}"; * The die message: * Unable to emake HOSTCC=i686-pc-linux-gnu-gcc CROSS_COMPILE=i686-pc-linux-gn u- LDFLAGS= KSRC=/usr/src/linux KVERS=2.6.31-gentoo KBUILD=/usr/src/linux -j1 all * * If you need support, post the topmost build error, and the call stack if rele vant. * A complete build log is located at '/var/tmp/portage/net-wireless/ndiswrapper -1.55/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/net-wireless/ndis wrapper-1.55/temp/environment'. * >>> Failed to emerge net-wireless/ndiswrapper-1.55, Log file: Portage 2.1.6.13 (default/linux/x86/2008.0, gcc-4.4.1, glibc-2.10.1-r0, 2.6.30-gentoo-r6 i686) ================================================================= System uname: Linux-2.6.30-gentoo-r6-i686-Intel-R-_Pentium-R-_III_Mobile_CPU_1000MHz-with-gentoo -2.0.1 Timestamp of tree: Sat, 12 Sep 2009 06:45:02 +0000 app-shells/bash: 4.0_p33 dev-java/java-config: 2.1.9 dev-lang/python: 2.6.2-r1, 3.1.1 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.4.3-r3 sys-apps/sandbox: 2.1 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.9.6-r2, 1.10.2, 1.11 sys-devel/binutils: 2.19.1-r1 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.30-r1 ACCEPT_KEYWORDS="x86 ~x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/g conf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans use rfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/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" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X acl berkdb bzip2 cli cracklib crypt cups dri fortran gdbm gnome gpm gtk hbci iconv ipv6 isdnlog java jpeg mp3 mpeg mudflap ncurses nls nptl nptlonly ofx openmp pam pcre pdf perl png pppd python qt3 r eadline reflection server session spl sqlite ssl svg sysfs tcpd tiff truetype unicode usb wma wmf x86 x org 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-mod em ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 io plug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_M ODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm au thz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock defla te dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_ca che mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias " ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz63 3 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 m ga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
*** This bug has been marked as a duplicate of bug 280057 ***