Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 280057 - net-wireless/ndiswrapper-1.55-r1 doesn't compile with linux >= 2.6.33
Summary: net-wireless/ndiswrapper-1.55-r1 doesn't compile with linux >= 2.6.33
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal with 1 vote (vote)
Assignee: Mobile Herd (OBSOLETE)
URL:
Whiteboard:
Keywords:
: 284793 325099 (view as bug list)
Depends on: 322313
Blocks:
  Show dependency tree
 
Reported: 2009-08-02 15:05 UTC by Octavian
Modified: 2010-08-09 23:32 UTC (History)
7 users (show)

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


Attachments
ebuild that compiles with 2.6.31-rc4 (ndiswrapper-1.55.ebuild,2.97 KB, text/plain)
2009-08-02 15:08 UTC, Octavian
Details
patch to include cmpxchg8b during compilation (ndiswrapper-2.6.31.patch,580 bytes, patch)
2009-08-02 15:09 UTC, Octavian
Details | Diff
ndiswrapper ebuild compiling with 2.6.33 (ndiswrapper-1.55-r2.ebuild,3.05 KB, text/plain)
2010-01-12 21:37 UTC, Octavian
Details
patch for compilation with 2.6.33 kernel (ndiswrapper-1.55-2.6.33.patch,2.45 KB, patch)
2010-01-12 21:39 UTC, Octavian
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Octavian 2009-08-02 15:05:54 UTC
Since I am the owner of an intel graphic chipset I had to move to a 2.6.31 kernel to get the latest drm fixes for intel. However, ndiswrapper does not compile with 2.6.31 kernel (https://sourceforge.net/tracker/index.php?func=detail&aid=2807437&group_id=93482&atid=604450).

I have tried using b43 driver without any luck. Then I started investigated the compilation issues.

Attached you may find an e-build for ndiswrapper (1.55) which compiles on 2.6.31.



Reproducible: Always
Comment 1 Octavian 2009-08-02 15:08:55 UTC
Created attachment 199935 [details]
ebuild that compiles with 2.6.31-rc4
Comment 2 Octavian 2009-08-02 15:09:50 UTC
Created attachment 199936 [details, diff]
patch to include  cmpxchg8b during compilation
Comment 3 James Earl Spahlinger 2009-08-03 01:50:37 UTC
Please include your 'emerge --info' output by pasting it into a bugzilla comment.
Comment 4 Octavian 2009-08-06 20:00:53 UTC
Portage 2.1.6.13 (default/linux/x86/2008.0/desktop, gcc-4.1.2, glibc-2.9_p20081201-r2, 2.6.31-rc4 i686)
=================================================================
System uname: Linux-2.6.31-rc4-i686-Genuine_Intel-R-_CPU_U2500_@_1.20GHz-with-glibc2.0
Timestamp of tree: Wed, 05 Aug 2009 06:45:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.5.4-r3
dev-util/cmake:      2.6.4
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo http://mirror.gentoo.se/"
LDFLAGS="-Wl,-O1"
LINGUAS="en nl de fr hu ro en_GB"
MAKEOPTS="-j 3"
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"
PORTDIR_OVERLAY="/usr/local/portage/layman/sunrise /usr/local/portage/layman/kde-testing /usr/local/portage/layman/x11 /usr/local/portage/octavsly"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac aalib accessibility acl acpi alsa asf automount avi beagle berkdb bitmap-fonts bluetooth branding bzip2 cairo cddb cdparanoia cdr cli consolekit cracklib crypt css cups curl dbus dell deprecated dga directfb dlloader doc dri dts dvb dvd dvdnav dvdr dvdread eds effects emboss encode esd evo fam fbcondecor fbsplash ffmpeg fftw firefox flac foomaticdb fortran gd gdbm gif gimpprint gnome gpm gs gstreamer gtk gtkhtml h264 hal ical iconv ieee1394 imagemagick inkjar ipv6 irda isdnlog jadetex java jpeg jpeg2k kde kqemu ldap libg++ libnotify libwww lirc live lm_sensors logrotate mad mikmod mjpeg mmx mmxext mng mono mp3 mp4 mpeg mplayer mudflap mysql ncurses network networkmanager new-login nfs nls nptl nptlonly nsplugin ogg opengl openmp openntpd oss pam pcre pdf pdflib perl plotutils plugin png posix postscript ppds pppd python qt3 qt3support qt4 quicktime rdesktop readline reflection regex rtc samba sdl server session sms smtp sndfile sound spell spl sse sse2 ssl startup-notification subtitles svg sysfs tcpd thumbnail thunderbird tiff tk transcode truetype truetype-fonts type1-fonts udev unicode usb v4l v4l2 vcd vorbis webkit wifi win32codecs x264 x86 xcb xcomposite xext xine xinerama xml xorg xprint xscreensaver xulrunner xv xvid xvmc yahoo zlib zvbi" 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-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en nl de fr hu ro en_GB" USERLAND="GNU" VIDEO_CARDS="intel"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 5 Bartosz Brachaczek 2009-09-10 20:17:52 UTC
2.6.31 is has already been released and is in ~arch, and this is still not fixed - ndiswrapper doesn't build.
Comment 6 Octavian 2009-09-10 20:29:53 UTC
(In reply to comment #5)
> 2.6.31 is has already been released and is in ~arch, and this is still not
> fixed - ndiswrapper doesn't build.
> 

Try the attached ebuild. That should work.
Comment 7 Bartosz Brachaczek 2009-09-10 20:43:35 UTC
Thanks, I've used the patch previously and compiled ndiswrapper successfully. I was trying to say that this patch should be in portage tree (because kernel 2.6.31 already is).
Comment 8 Janne Tanskanen 2009-09-12 14:54:31 UTC
Just wanted to confirm that ebuild w/ patch works w/ 2.6.31. Hopefully this'll be added to portage soon.
Comment 9 Kenneth Miller 2009-09-13 23:18:08 UTC
*** Bug 284793 has been marked as a duplicate of this bug. ***
Comment 10 Omar Saleem 2009-09-15 03:24:05 UTC
Just wondering what is stopping this patch from being sent to portage? It definitely works for 2.6.31 and 1.55, and it's been a few days since it's come out.
Comment 11 Samuli Suominen (RETIRED) gentoo-dev 2009-09-16 13:05:48 UTC
+*ndiswrapper-1.55-r1 (16 Sep 2009)
+
+  16 Sep 2009; Samuli Suominen <ssuominen@gentoo.org>
+  +ndiswrapper-1.55-r1.ebuild, +files/ndiswrapper-1.55-2.6.31.patch:
+  Fix building with Linux 2.6.31 wrt #280057.

It could be that the revision bump isn't necessary but I've added it because I've got no clue about backwards compability of this patch. Only compile tested on 2.6.29.

I want to emphatize that i'm not the maintainer... Piotr, do you still maintain this? A honest question, not trying to insult or anything. :)
Comment 12 Audiodef 2009-10-30 00:56:50 UTC
This didn't work for me when I tried it. It failed with the same error the ebuild in portage fails with under a .31 kernel. 

I REALLY want to get this working, so let me know what I should post and I will get right to it. 
Comment 13 Octavian 2009-10-31 21:16:43 UTC
(In reply to comment #12)
> This didn't work for me when I tried it. It failed with the same error the
> ebuild in portage fails with under a .31 kernel. 
> 
> I REALLY want to get this working, so let me know what I should post and I will
> get right to it. 
> 

Could you post the error message? 
What version of the ndiswrapper are you trying to compile. On what kernel version?
Personaly I have 
ndiswrapper-1.55-r1
gentoo-sources-2.6.31
both from official portage tree
Comment 14 Octavian 2010-01-12 21:25:44 UTC
I reopened this bug since ndiswrapper needs update for kernel 2.6.33.

I will attach a new e-build and a patch file. Some more info is to be found in #248450. 

Can somebody put it in the official tree?

Thank you in advance,
Octavian
Comment 15 Octavian 2010-01-12 21:37:44 UTC
Created attachment 216287 [details]
ndiswrapper ebuild compiling with 2.6.33

minor modifications to compile with kernel 2.6.33. It has a strange requirement for IPW2200 in order to pull in CONFIG_WEXT_PRIV which is not user selectable. See Bug 248450.
Comment 16 Octavian 2010-01-12 21:39:22 UTC
Created attachment 216288 [details, diff]
patch for compilation with 2.6.33 kernel

patch for successful compilation with 2.6.33
Comment 17 Samuli Suominen (RETIRED) gentoo-dev 2010-02-09 15:20:11 UTC
Removing myself from CC. That said, this should have not been reopened, but a new bug should have been filed instead. For this, I'm ignoring any requests in this bug.
Comment 18 Samuli Suominen (RETIRED) gentoo-dev 2010-06-22 20:34:30 UTC
*** Bug 325099 has been marked as a duplicate of this bug. ***
Comment 19 Samuli Suominen (RETIRED) gentoo-dev 2010-06-22 20:37:04 UTC
1.56 needs to be added to tree, bug 322313, solving this one too
Comment 20 Christoph Mende (RETIRED) gentoo-dev 2010-06-22 21:18:56 UTC
fixed with 1.56
Comment 21 Octavian 2010-06-25 18:53:43 UTC
side comment: 1.56 does not compile with 2.6.35. Still need to write a bug upstream. 
Comment 22 Grzegorz Golec 2010-08-02 20:23:45 UTC
(In reply to comment #21)
> side comment: 1.56 does not compile with 2.6.35. Still need to write a bug
> upstream. 
> 

Bug has been already reported in ndiswrapper project. Try to comment there, maybe someone makes bugfix quicker... 
Comment 23 Grzegorz Golec 2010-08-02 20:24:18 UTC
adding self to CC.
Comment 24 Omar Saleem 2010-08-04 11:18:56 UTC
(In reply to comment #21)
> side comment: 1.56 does not compile with 2.6.35. Still need to write a bug
> upstream. 
> 

I can confirm, still waiting on fix...?
Comment 25 Grzegorz Golec 2010-08-04 12:00:01 UTC
Someone has added patch on ndiswrapper site http://sourceforge.net/tracker/?func=detail&aid=3034422&group_id=93482&atid=604452 I tried to add patching to ebuild but ndiswrapper still doesn't compile. Perhaps some developers could take a look on that. 

Please reopen this bug. thanks!
Comment 26 Bartosz Brachaczek 2010-08-09 23:32:04 UTC
(In reply to comment #25)
> Someone has added patch on ndiswrapper site
> http://sourceforge.net/tracker/?func=detail&aid=3034422&group_id=93482&atid=604452
> I tried to add patching to ebuild but ndiswrapper still doesn't compile.
> Perhaps some developers could take a look on that. 
> 
> Please reopen this bug. thanks!
> 

I've opened Bug #331961 for that.