Here's the output of my emerge: notlie ~ # emerge ndiswrapper Calculating dependencies ...done! >>> emerge (1 of 1) net-wireless/ndiswrapper-1.2 to / >>> md5 files ;-) ndiswrapper-1.2.ebuild >>> md5 files ;-) files/digest-ndiswrapper-1.2 >>> md5 files ;-) files/ndiswrapper-1.2-suspend2.patch >>> md5 src_uri ;-) ndiswrapper-1.2.tar.gz * Determining the location of the kernel source code * Found kernel source directory: * /usr/src/linux * Found sources for kernel version: * 2.6.13-gentoo-r3 * Checking for suitable kernel configuration options: find: invalid predicate `-quit' * * Unable to detect what version of GCC was used to compile * the kernel. Build will continue, but you may experience problems. >>> Unpacking source... >>> Unpacking ndiswrapper-1.2.tar.gz to /var/tmp/portage/ndiswrapper-1.2/work * Applying ndiswrapper-1.2-suspend2.patch ... [ ok ] * The only kernels that will work are gentoo-sources, vanilla-sources, and suspend2-sources. * No other kernels are supported. Kernels like the mm kernels will NOT work. * Converting ndiswrapper-1.2/driver/Makefile to use M= instead of SUBDI [ ok ] >>> Source unpacked. I'm not sure what causes the problem, although there seems there's being sent an erroronous "predicate" to "find". It also says I may experience problems. Indeed I am. Reproducible: Always Steps to Reproduce: 1. emerge ndiswrapper 2. modprobe ndiswrapper Actual Results: * Unable to detect what version of GCC was used to compile * the kernel. Build will continue, but you may experience problems. and FATAL: Error inserting ndiswrapper (/lib/modules/2.6.13-gentoo-r3/misc/ndiswrapper.ko): Operation not permitted Expected Results: Emerged without warning, probed without any error notlie ~ # emerge info Portage 2.0.51.22-r3 (default-linux/x86/2005.1, gcc-3.3.5-20050130, glibc-2.3.4.20041102-r1, 2.6.13-gentoo-r3 i686) ================================================================= System uname: 2.6.13-gentoo-r3 i686 Intel(R) Celeron(R) M processor 1500MHz Gentoo Base System version 1.6.13 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.3 [enabled] dev-lang/python: 2.3.5 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.5 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer" CHOST="i686-pc-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="-O2 -march=pentium3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distcc distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://mirror.gentoo.no/" MAKEOPTS="-j6" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 S3TC X X509 aac acl acpi activefilter aim alsa ansi aper apm arts artworkextra audiofile authdaemond avantgo avi bash-completion bcmath bdf berkdb bidi bitmap-fonts blender-game bzip2 bzlib cap cddb cdinstall cdparanoia cdrom chroot cjk clanJavaScript clanVoice client codecs cpdflib crypt css ctype cups curl curlwrappers dba dhcp dio djbfft dnd droproot dts dv dvdr dvdread edl eds eep emboss encode erandom evo exif ext-png ext-zlib extensions fbcon ffmpeg fluidsynth fmod foomaticdb foreign-package foreign-sysvinit fortran fpx freetype freewnn ftp gb gcl gd gdbm geoip gif gimp gimpprint ginac glade glgd glitz glut gmp gmtfull gnokii gnome gnomedb gnuplot gpm graphviz gs gsl gstreamer gtk gtk2 gtkhtml hal hbci hdf iconv icq ide idl image imagemagick imap imlib imlib2 ipv6 irmc j2ee jabber java javacomm javadoc javamail javascript jbig jboss jce jms jmx jp2 jpeg jpeg2k jta jython kadu-modules kadu-voice kakasi kde kerberos krb4 latex lcms leim libclamav libdsk libg++ libgd libgda libsamplerate libwww live lua lufsusermount lzo lzw lzw-tiff m17n-lib mad maildir matroska mbox mcal mdb memlimit migemo mikmod mime mixer mjpeg mls mmap mmx mng monkey motif mozcalendar mozdevelop mozp3p mozsvg mozxmlterm mp3 mpeg mpeg4 mpi mplayer msn mule music mythtv nagios-dns nagios-ntp nagios-ping nagios-ssh native ncurses net netcdf network neural nis nls nowin nptl ntlm nviz oav objc ocaml offensive ofx ogg oggvorbis openal opengl opie oscar ospfapi oss pam parse-clocks pcap pcntl pcre pda pdf pdflib perl pg-hier pg-intdatetime pg-vacuumdelay physfs pic plotutils png portaudio posix povray ppds pri print procmail pthreads python qt quicktime quotes readline real resperl rhino rogue rplay samba sasl sdl servlet-2.3 servlet-2.4 session sftplogging shared sharedmem silc simplexml skk slp smime sndfile snortsam sockets socks5 sox spell spl sse sse2 ssl stencil-buffer stroke struts svg sysvipc szip t1lib tcpd tcsim tga theora tidy tiff transcode truetype truetype-fonts type1-fonts udev uim unicode usb v4l v4l2 vcd vda videos virus-scan vorbis wddx win32codecs winbind wmf wxwindows xanim xatrix xchatdccserver xchattext xface xgetdefault xine xml2 xmlrpc xmms xosd xpm xprint xrandr xscreensaver xsl xv xvid xvmc yahoo yaz yp yv12 zaptel zeo zlib zvbi userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY ---- Probing other modules works without issues.
Please test with ndiswrapper 1.4 and re-open if the problem still presists.
John, looks like a problem with the vermagic check in linux-mod.eclass?
notlie ~ # emerge -av =net-wireless/ndiswrapper-1.4 These are the packages that I would merge, in order: Calculating dependencies emerge: there are no ebuilds to satisfy "=net-wireless/ndiswrapper-1.4". -- It doesn't seem to be there. And I've synced earlier today, so...
It was only just added - wait a few hours, resync and retry.
OK, so now I've installed 1.4. And there's slight progress. I suppose. The error message has changed from "Operation not permitted" to "Invalid argument": notlie linux # modprobe ndiswrapper FATAL: Error inserting ndiswrapper (/lib/modules/2.6.13-gentoo-r3/misc/ndiswrapper.ko): Invalid argument
this is because the version of gcc (or some other similar tool/variable) has changed since you built the kernel. Recompile the kernel, rebuild the module, reboot and test again please.
Well, I got it to work, with a different driver and different hardware. My problem was probably that I hadn't even installed a driver yet when I did "modprobe ndiswrapper". I figured doing it before or after installing the driver was no different, but apparently it was. I'd set the report to invalid was such an option available, but alas, it's not, so I did what seemed most appropriate, and closed it.