Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 156319 - >=net-wireless/ndiswrapper:-1.29 fails to compile
Summary: >=net-wireless/ndiswrapper:-1.29 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Petteri Räty (RETIRED)
URL:
Whiteboard:
Keywords:
: 156706 156859 157454 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-11-26 09:31 UTC by Patrizio
Modified: 2006-12-07 11:46 UTC (History)
16 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
working kernel config (working_config.gz,9.40 KB, application/gzip)
2006-11-28 15:55 UTC, Scott Short
Details
patch for adding KBUILD pointing to the default kernel directory (ndiswrapper-kbuild-ebuild.patch,440 bytes, patch)
2006-12-03 18:53 UTC, Carlo Marcelo Arenas Belon
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Patrizio 2006-11-26 09:31:28 UTC
1.28 works.

Error i get during install:

AS [M]  /var/tmp/portage/net-wireless/ndiswrapper-1.29/work/ndiswrapper-1.29/driver/win2lin_stubs.o
/var/tmp/portage/net-wireless/ndiswrapper-1.29/work/ndiswrapper-1.29/driver/win2lin_stubs.S:266:27: error: win2lin_stubs.h: No such file or directory
make[2]: *** [/var/tmp/portage/net-wireless/ndiswrapper-1.29/work/ndiswrapper-1.29/driver/win2lin_stubs.o] Error 1
make[1]: *** [_module_/var/tmp/portage/net-wireless/ndiswrapper-1.29/work/ndiswrapper-1.29/driver] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.18-gentoo-r2'
make: *** [default] Error 2

!!! ERROR: net-wireless/ndiswrapper-1.29 failed.
Call stack:
  ebuild.sh, line 1568:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  ndiswrapper-1.29.ebuild, line 65:   Called linux-mod_src_compile
  linux-mod.eclass, line 510:   Called die

!!! Unable to make  KBUILD='/usr/src/linux' KSRC=//usr/src/linux KVERS=2.6.18-gentoo-r2 DISABLE_USB=1 -j1 all.
!!! If you need support, post the topmost build error, and the call stack if relevant.




--
emerge --info:
Portage 2.1.2_rc2-r1 (default-linux/amd64/2006.1/desktop, gcc-4.1.1, glibc-2.5-r0, 2.6.18-gentoo-r2 x86_64)
=================================================================
System uname: 2.6.18-gentoo-r2 x86_64 AMD Turion(tm) 64 X2 Mobile Technology TL-50
Gentoo Base System version 1.12.6
Last Sync: Sun, 26 Nov 2006 12:01:01 +0000
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
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: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer -msse3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer -msse3"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="it_IT@euro"
LDFLAGS="-Wl,-O1"
LINGUAS="it en"
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/portage/local/layman/xeffects"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="SSE2 SSE3 X acpi alsa amd64 arts avi berkdb bitmap-fonts bluetooth branding cairo cdr cli cracklib crypt cups dbus divx dlloader dri dvd dvdr eds elibc_glibc emboss encode esd fam ffmpeg firefox fortran gdbm gif gpm gstreamer gtk gtk2 hal iconv input_devices_evdev input_devices_keyboard input_devices_mouse input_devices_ps2 input_devices_touchpad ipv6 isdnlog jpeg jpeg2k kde kdeenablefinal kernel_linux ldap libg++ linguas_en linguas_it mad mikmod mp3 mpeg ncurses nls nptl nptlonly offensive ogg opengl oss pam pcre pdf pdflib perl pic png ppds pppd python qt3 qt4 quicktime readline reflection samba sdl session spell spl sse3 ssl tcpd tiff truetype truetype-fonts type1-fonts udev userland_GNU userlocales video_cards_7300 video_cards_geforce video_cards_geforcego video_cards_nv video_cards_nvidia vorbis xcomposite xine xml xorg xv xvid zeroconf zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Petteri Räty (RETIRED) gentoo-dev 2006-11-26 09:38:43 UTC
It does not seem that ndiswrapper-1.29 was a very good release for upstream as far as amd64 is conserned with this and bug #156265. amd64: Do you think we should mark 1.28 and 1.29 -amd64?
Comment 2 Piotr Jaroszyński (RETIRED) gentoo-dev 2006-11-26 14:37:05 UTC
1.28 works for me with bcmwl5. Will try 1.29 in a sec.
Comment 3 Harlan Lieberman-Berg (RETIRED) gentoo-dev 2006-11-27 16:33:03 UTC
Same errors as the last person.

Portage 2.1.1-r2 (default-linux/amd64/2006.1, gcc-4.1.1, glibc-2.4-r4, 2.6.18-gentoo-r3 x86_64)
=================================================================
System uname: 2.6.18-gentoo-r3 x86_64 AMD Turion(tm) 64 X2
Gentoo Base System version 1.12.6
Last Sync: Mon, 27 Nov 2006 22:50:01 +0000
ccache version 2.3 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
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.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo/ ftp://gentoo.chem.wisc.edu/gentoo/ "
LINGUAS="en en_us 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.namerica.gentoo.org/gentoo-portage"
USE="amd64 64bit 7zip X aac aalib acpi adns aim aimextras alsa amarok amazon amr ao aoss apache2 apm arts async auctex bash-completion berkdb bitmap-fonts bittorrent bl bluetooth bmpx bogofilter branding bzip2 ccache cdb cdda cddb cdparanoia cdr cdrom chm clamav cli colordiff connectionstatus cracklib crypt csv cups cvs cvsgraph daap distribution divx dlloader dri dv dvb dvd dvdr dvdread elibc_glibc emacs emacs-w3 encode epson ffmpeg firefox flac flash flood font-server foomaticdb fortran gdbm gif gimp gimpprint glsa gmail gphoto2 gpm grammar gs gsm gtalk h323 hddtemp http iconv icq ieee1394 imap innodb input_devices_keyboard input_devices_mouse ipv6 irc irda isdnlog jabber java javascript jpeg jpeg2k kde kdecards kdepim kdm kerberos kernel_linux kipi lame latex lcd ldap libg++ libnotify linguas_de linguas_en linguas_en_us lm_sensors logitech-mouse lzo lzw mad maildir matroska matrox mime ming mmkeys mono mozsvg mp3 mp4 mpeg mpeg2 mplayer msn mule musepack musicbrainz mysql mysqli nat ncurses netmeeting nls nntp nptl nptlonly nsplugin ntfs nvidia offensive office ogg ole on-the-fly-crypt opendoc opengl oscar oss pam paranoidmsg pcmcia pcre pda pdf perl png ppds pppd preview-latex print ps python quicktime rar readline reflection samba scanner screen session smp sms speex spell spl sqlite sqlite3 srt ssl stream subtitles subversion svg svgz szip tagwriting tcpd tetex theora thesaurus tidy tiff transcode translator truetype truetype-fonts type1 type1-fonts udev unicode userland_GNU v4l v4l2 vcd video_cards_nvidia vorbis vorbis-psy wifi wma wmf wmp xemacs xine xorg xscreensaver xvid xvmc yahoo zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 4 Tim Cera 2006-11-27 18:02:46 UTC
Me too...

# emerge --info

Portage 2.1.1-r2 (default-linux/amd64/2006.1, gcc-4.1.1, glibc-2.4-r4, 2.6.17-gentoo-r7 x86_64)
=================================================================
System uname: 2.6.17-gentoo-r7 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.12.6
Last Sync: Tue, 28 Nov 2006 00:20:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.3.5-r2, 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
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.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="ftp://mirror.datapipe.net/gentoo http://mirror.datapipe.net/gentoo ftp://gentoo.mirrors.pair.com/ ftp://gentoo.mirrors.tds.net/gentoo http://gentoo.mirrors.tds.net/gentoo"
MAKEOPTS="-j2"
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 /usr/local/sci"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="amd64 3dnowex X X509 aac acpi alsa amd arts artswrappersuid atlas bash-completion bcmath bdf bitmap-fonts cdr cdrom codecs cpudetection cracklib cups daap dbus directfb divx4linux dnd doc dvd dvdr dvdread elibc_glibc emf emul-linux enscript examples exif fb fbdev fftw fits flash fortran gd gdbm geos gif glut gnokii gnuplot gs gsl gstreamer gtk gtk2 gvim hdf hdf5 iconv imagemagick input_devices_keyboard input_devices_mouse input_devices_synaptics iodbc javascript jp2 jpeg jpeg2k kde kdepim kernel_linux kig-scripting live lzo mjpeg mng mono mozcalendar mozdevelop mozilla moznocompose moznoirc moznomail moznoxft mozsvg mp3 mplayer musicbrainz nas ncurses netcdf network nls nptl nptlonly nsplugin numeric nvidia nviz ogdi opengl oss pam pcmcia pcre pda pdf php png pnp postgres ppds python qt qt4 quicktime readline rtc sqlite ssl svg tcltk tiff tk transcode truetype truetype-fonts trusted type1 type1-fonts unicode usb userland_GNU video_cards_nvidia vim vim-with-x visualization wmf wxgtk1 wxwin wxwindows xanim xine xml xml2 xorg xpm xprint xsl xslt xv xvid xvmc"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 5 Mark Haney 2006-11-28 04:33:14 UTC
I have the same problem with 1.2.9 and 2.6.18-gentoo-r3.

/var/tmp/portage/ndiswrapper-1.29/work/ndiswrapper-1.29/driver/win2lin_stubs.S:266:27: win2lin_stubs.h: No such file or directory
make[2]: *** [/var/tmp/portage/ndiswrapper-1.29/work/ndiswrapper-1.29/driver/win2lin_stubs.o] Error 1
make[1]: *** [_module_/var/tmp/portage/ndiswrapper-1.29/work/ndiswrapper-1.29/driver] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.18-gentoo-r3'
make: *** [default] Error 2

!!! ERROR: net-wireless/ndiswrapper-1.29 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  ndiswrapper-1.29.ebuild, line 65:   Called linux-mod_src_compile
  linux-mod.eclass, line 510:   Called die

!!! Unable to make  KBUILD='/usr/src/linux' KSRC=//usr/src/linux KVERS=2.6.18-gentoo-r3 DISABLE_USB=1 -j1 all.
!!! If you need support, post the topmost build error, and the call stack if relevant.


---------------------------

Emerge info:

Portage 2.1.1-r2 (default-linux/amd64/2006.1, gcc-3.4.6, glibc-2.4-r4, 2.6.18-gentoo-r3 x86_64)
=================================================================
System uname: 2.6.18-gentoo-r3 x86_64 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System version 1.12.6
Last Sync: Mon, 27 Nov 2006 10:50:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.3.5, 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
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.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -pipe -O2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=k8 -pipe -O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://gentoo.seren.com/gentoo"
MAKEOPTS="-j2"
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.namerica.gentoo.org/gentoo-portage"
USE="amd64 X acpi alsa apache2 berkdb bitmap-fonts cdr cli cracklib crypt cups dlloader dri dvdr dvdread elibc_glibc fortran gdbm gpm iconv input_devices_keyboard input_devices_mouse ipv6 isdnlog kde kernel_linux libg++ mad ncurses nls nptl nptlonly nsplugin opengl pam pcre perl ppds pppd python qt readline reflection session spl ssl symlink tcpd truetype-fonts type1-fonts udev unicode userland_GNU video_cards_radeon video_cards_vesa vorbis xorg yahoo zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 6 Scott Short 2006-11-28 15:55:34 UTC
Created attachment 102957 [details]
working kernel config
Comment 7 Scott Short 2006-11-28 15:58:07 UTC
Not positive of the problem. However, mine works correctly. I attached my kernel configuration & info to possibly help. 

Portage 2.1.2_rc2-r2 (default-linux/amd64/2006.1, gcc-4.1.1, glibc-2.5-r0, 2.6.18-gentoo-r3 x86_64)
=================================================================
System uname: 2.6.18-gentoo-r3 x86_64 AMD Turion(tm) 64 Mobile Technology ML-34
Gentoo Base System version 1.12.6
Last Sync: Tue, 28 Nov 2006 17:00:02 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib64/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks fixpackages metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://node0 http://www.gtlib.gatech.edu/pub/gentoo"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
MAKEOPTS="-j2"
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://node0/gentoo-portage"
USE="amd64 X acpi alsa apache2 arts berkdb bitmap-fonts bmpx bzip2 cli cracklib crypt cups dbus divx dlloader dri dvd dvdr dvdread elibc_glibc encode ffmpeg flac fortran gdbm gif gimp gmedia gnutls gphoto2 gpm gtk hal iconv icu imagemagic input_devices_evdev input_devices_keyboard input_devices_mouse input_devices_synaptics ipv6 isdnlog java jpeg kde kernel_linux libg++ lm_sensors logrotate moznoirc moznomail moznoroaming mp3 mp4 ncurses nls nptl nptlonly nsplugin objc objc++ offensive opengl pam pcre pdf pengl perl png ppds pppd python qt3 quicktime readline realmedia reflection ruby session spell spl ssl stream tcpd truetype-fonts type1-fonts udev unicode usb userland_GNU vcd video_cards_radeon wifi wmp xorg xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 8 Alexis Lahouze 2006-11-29 10:21:14 UTC
Mine doesn't work for version 1.29 neither for version 1.30 (I copied the 1.29 ebuild)

But...
/var/tmp/portage/net-wireless/ndiswrapper-1.30/work/ndiswrapper-1.30

I get :
# make 
make -C driver
make[1]: entrant dans le r
Comment 9 Alexis Lahouze 2006-11-29 10:21:14 UTC
Mine doesn't work for version 1.29 neither for version 1.30 (I copied the 1.29 ebuild)

But...
/var/tmp/portage/net-wireless/ndiswrapper-1.30/work/ndiswrapper-1.30

I get :
# make 
make -C driver
make[1]: entrant dans le répertoire « /var/tmp/portage/net-wireless/ndiswrapper-1.30/work/ndiswrapper-1.30/driver »
make -C /lib/modules/2.6.18-gentoo-r3/build M=/var/tmp/portage/net-wireless/ndiswrapper-1.30/work/ndiswrapper-1.30/driver
make[2]: entrant dans le répertoire « /usr/src/linux-2.6.18-gentoo-r3 »
  LD      /var/tmp/portage/net-wireless/ndiswrapper-1.30/work/ndiswrapper-1.30/driver/built-in.o
  CC [M]  /var/tmp/portage/net-wireless/ndiswrapper-1.30/work/ndiswrapper-1.30/driver/crt.o
  CC [M]  /var/tmp/portage/net-wireless/ndiswrapper-1.30/work/ndiswrapper-1.30/driver/hal.o
  CC [M]  /var/tmp/portage/net-wireless/ndiswrapper-1.30/work/ndiswrapper-1.30/driver/iw_ndis.o
  CC [M]  /var/tmp/portage/net-wireless/ndiswrapper-1.30/work/ndiswrapper-1.30/driver/loader.o
  CC [M]  /var/tmp/portage/net-wireless/ndiswrapper-1.30/work/ndiswrapper-1.30/driver/ndis.o
  CC [M]  /var/tmp/portage/net-wireless/ndiswrapper-1.30/work/ndiswrapper-1.30/driver/ntoskernel.o
  CC [M]  /var/tmp/portage/net-wireless/ndiswrapper-1.30/work/ndiswrapper-1.30/driver/ntoskernel_io.o
  CC [M]  /var/tmp/portage/net-wireless/ndiswrapper-1.30/work/ndiswrapper-1.30/driver/pe_linker.o
  CC [M]  /var/tmp/portage/net-wireless/ndiswrapper-1.30/work/ndiswrapper-1.30/driver/pnp.o
  CC [M]  /var/tmp/portage/net-wireless/ndiswrapper-1.30/work/ndiswrapper-1.30/driver/proc.o
  CC [M]  /var/tmp/portage/net-wireless/ndiswrapper-1.30/work/ndiswrapper-1.30/driver/rtl.o
  CC [M]  /var/tmp/portage/net-wireless/ndiswrapper-1.30/work/ndiswrapper-1.30/driver/wrapmem.o
  CC [M]  /var/tmp/portage/net-wireless/ndiswrapper-1.30/work/ndiswrapper-1.30/driver/wrapndis.o
  CC [M]  /var/tmp/portage/net-wireless/ndiswrapper-1.30/work/ndiswrapper-1.30/driver/wrapper.o
  CC [M]  /var/tmp/portage/net-wireless/ndiswrapper-1.30/work/ndiswrapper-1.30/driver/usb.o
  AS [M]  /var/tmp/portage/net-wireless/ndiswrapper-1.30/work/ndiswrapper-1.30/driver/win2lin_stubs.o
  LD [M]  /var/tmp/portage/net-wireless/ndiswrapper-1.30/work/ndiswrapper-1.30/driver/ndiswrapper.o
  Building modules, stage 2.
  MODPOST
  CC      /var/tmp/portage/net-wireless/ndiswrapper-1.30/work/ndiswrapper-1.30/driver/ndiswrapper.mod.o
  LD [M]  /var/tmp/portage/net-wireless/ndiswrapper-1.30/work/ndiswrapper-1.30/driver/ndiswrapper.ko
make[2]: quittant le répertoire « /usr/src/linux-2.6.18-gentoo-r3 »
make[1]: quittant le répertoire « /var/tmp/portage/net-wireless/ndiswrapper-1.30/work/ndiswrapper-1.30/driver »
make -C utils
make[1]: entrant dans le répertoire « /var/tmp/portage/net-wireless/ndiswrapper-1.30/work/ndiswrapper-1.30/utils »
gcc -g -Wall -I../driver -o loadndisdriver loadndisdriver.c
make[1]: quittant le répertoire « /var/tmp/portage/net-wireless/ndiswrapper-1.30/work/ndiswrapper-1.30/utils »

So, I dont' think the problem is from the kernel configuration.

File 'win2lin_stubs.h' (in 'driver' directory) is generated by make.

I think there is a problem while doing linux-mod_src_compile...

Where are objects generated by "linux-mod_src_compile" put into?
Comment 10 Petteri Räty (RETIRED) gentoo-dev 2006-11-29 10:32:14 UTC
--- ndiswrapper-1.28.ebuild     2006-11-05 01:54:07.000000000 +0200
+++ ndiswrapper-1.29.ebuild     2006-11-26 12:33:53.000000000 +0200
@@ -1,6 +1,6 @@
 # Copyright 1999-2006 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-wireless/ndiswrapper/ndiswrapper-1.28.ebuild,v 1.1 2006/11/04 23:54:07 betelgeuse Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/ndiswrapper/ndiswrapper-1.29.ebuild,v 1.2 2006/11/26 10:33:53 betelgeuse Exp $

 inherit eutils linux-mod

@@ -55,7 +55,14 @@

        use usb || params="DISABLE_USB=1"

-       BUILD_PARAMS="${BUILD_PARAMS} ${params}" linux-mod_src_compile
+       # Does not like parallel builds
+       # http://bugs.gentoo.org/show_bug.cgi?id=154213
+
+       # KBUILD trick needed to build against sources where only make
+       # modules_prepare has been run so /lib/modules/$(uname -r) does
+       # not exists yet
+
+       BUILD_PARAMS="KBUILD='${KERNEL_DIR}' ${BUILD_PARAMS} ${params} -j1" linux-mod_src_compile
 }

 src_install() {

Could you guys try removing the KBUILD line and see if that fixes the problem?
Comment 11 Alexis Lahouze 2006-11-29 10:59:03 UTC
(In reply to comment #9)
> 
> Could you guys try removing the KBUILD line and see if that fixes the problem?
> 
It worked with version 1.30...
Comment 12 ta2002 2006-11-29 22:35:09 UTC
Well, 1.29 worked for me, but not 1.30:

  CC [M]  /var/tmp/portage/ndiswrapper-1.30/work/ndiswrapper-1.30/driver/usb.o
  AS [M]  /var/tmp/portage/ndiswrapper-1.30/work/ndiswrapper-1.30/driver/win2lin_stubs.o
/var/tmp/portage/ndiswrapper-1.30/work/ndiswrapper-1.30/driver/win2lin_stubs.S:266:27: error: win2lin_stubs.h: No such file or directory
make[2]: *** [/var/tmp/portage/ndiswrapper-1.30/work/ndiswrapper-1.30/driver/win2lin_stubs.o] Error 1
make[1]: *** [_module_/var/tmp/portage/ndiswrapper-1.30/work/ndiswrapper-1.30/driver] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.18-gentoo-r3'
make: *** [default] Error 2

!!! ERROR: net-wireless/ndiswrapper-1.30 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  ndiswrapper-1.30.ebuild, line 65:   Called linux-mod_src_compile
  linux-mod.eclass, line 510:   Called die

!!! Unable to make  KBUILD='/usr/src/linux' KSRC=//usr/src/linux KVERS=2.6.18-gentoo-r3  -j1 all.
!!! If you need support, post the topmost build error, and the call stack if relevant.

I thought this might have something to do with 2.6.18 kernels (which broke older versions of vmware), but I successfully installed ndiswrapper 1.29 with 2.6.18-r3 before.
Comment 13 Scott Short 2006-11-29 22:40:47 UTC
(In reply to comment #11)
> Well, 1.29 worked for me, but not 1.30:
> 
>   CC [M]  /var/tmp/portage/ndiswrapper-1.30/work/ndiswrapper-1.30/driver/usb.o
>   AS [M] 
> /var/tmp/portage/ndiswrapper-1.30/work/ndiswrapper-1.30/driver/win2lin_stubs.o
> /var/tmp/portage/ndiswrapper-1.30/work/ndiswrapper-1.30/driver/win2lin_stubs.S:266:27:
> error: win2lin_stubs.h: No such file or directory
> make[2]: ***
> [/var/tmp/portage/ndiswrapper-1.30/work/ndiswrapper-1.30/driver/win2lin_stubs.o]
> Error 1
> make[1]: ***
> [_module_/var/tmp/portage/ndiswrapper-1.30/work/ndiswrapper-1.30/driver] Error
> 2
> make[1]: Leaving directory `/usr/src/linux-2.6.18-gentoo-r3'
> make: *** [default] Error 2
> 
> !!! ERROR: net-wireless/ndiswrapper-1.30 failed.
> Call stack:
>   ebuild.sh, line 1546:   Called dyn_compile
>   ebuild.sh, line 937:   Called src_compile
>   ndiswrapper-1.30.ebuild, line 65:   Called linux-mod_src_compile
>   linux-mod.eclass, line 510:   Called die
> 
> !!! Unable to make  KBUILD='/usr/src/linux' KSRC=//usr/src/linux
> KVERS=2.6.18-gentoo-r3  -j1 all.
> !!! If you need support, post the topmost build error, and the call stack if
> relevant.
> 
> I thought this might have something to do with 2.6.18 kernels (which broke
> older versions of vmware), but I successfully installed ndiswrapper 1.29 with
> 2.6.18-r3 before.
> 

I can confirm this; 1.29 worked for me, but 1.30 fails with the same errors. 
Comment 14 Patrizio 2006-11-30 16:11:49 UTC
***


BUILD_PARAMS="KBUILD='${KERNEL_DIR}' ${BUILD_PARAMS} ${params} -j1"
linux-mod_src_compile

If i remove KBUILD='${KERNEL_DIR}' IT DOES WORK!!!


***
Comment 15 Jakub Moc (RETIRED) gentoo-dev 2006-11-30 16:41:53 UTC
*** Bug 156706 has been marked as a duplicate of this bug. ***
Comment 16 Petteri Räty (RETIRED) gentoo-dev 2006-11-30 23:04:12 UTC
kernel:
What is the correct way to fix this as changing KBUILD seems to break amd64 and without it does not build unless you have made make modules_install to create the /lib/modules directory.
Comment 17 Jakub Moc (RETIRED) gentoo-dev 2006-12-02 01:31:47 UTC
*** Bug 156859 has been marked as a duplicate of this bug. ***
Comment 18 Carlo Marcelo Arenas Belon 2006-12-03 18:49:58 UTC
not sure how/why it worked in x86, but doesn't look like an arch specific problem to me, or even a kernel issue but just an ebuild bash script error.

attached patch for what would be ndiswrapper-1.30-r1 with a fixed logic that works in both cases (fully configured kernel and only modules_prepare'd
Comment 19 Carlo Marcelo Arenas Belon 2006-12-03 18:53:16 UTC
Created attachment 103299 [details, diff]
patch for adding KBUILD pointing to the default kernel directory

tested in amd64 with kernel gentoo kernels 2.6.18-r3 (fully configured) and 2.6.19-r1 (only modules_prepare'd)
Comment 20 Scott Short 2006-12-03 19:24:29 UTC
(In reply to comment #18)
> Created an attachment (id=103299) [edit]
> patch for adding KBUILD pointing to the default kernel directory
> 
> tested in amd64 with kernel gentoo kernels 2.6.18-r3 (fully configured) and
> 2.6.19-r1 (only modules_prepare'd)
> 

Worked for me (x86_64 / 2.6.18-r3) Thanks :)
Bug 156265 seems to be corrected also.  
Comment 21 Alexis Lahouze 2006-12-03 23:09:16 UTC
Seems good for me too (x86_64) :)
Thanks a lot guys!
Comment 22 Petteri Räty (RETIRED) gentoo-dev 2006-12-05 10:34:44 UTC
ifeq ($(CONFIG_X86_64),y)
OBJS += win2lin_stubs.o
win2lin_stubs.o: win2lin_stubs.h win2lin_stubs.S

Yeah defenitely amd64 problem. I would like to know why the patch fixes before blindly applying it.
Comment 23 nuitari 2006-12-06 22:02:40 UTC
(In reply to comment #18)
> Created an attachment (id=103299) [edit]
> patch for adding KBUILD pointing to the default kernel directory
> 
> tested in amd64 with kernel gentoo kernels 2.6.18-r3 (fully configured) and
> 2.6.19-r1 (only modules_prepare'd)
> 

Fixed it for me too. What changed was removing the ' around ${KERNEL_DIR}
Comment 24 Petteri Räty (RETIRED) gentoo-dev 2006-12-07 10:44:59 UTC
Quotes removed. Please reopen if you still have issues. Hopefully will at some point find the root cause of it failing as quotes should be allowed in the KBUILD value to work with pathes with spaces in them.
Comment 25 Jakub Moc (RETIRED) gentoo-dev 2006-12-07 11:46:50 UTC
*** Bug 157454 has been marked as a duplicate of this bug. ***