Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 306851 - stabilize net-wireless/madwifi-ng{,tools}-0.9.4.4119.20100201 (was: net-wireless/madwifi-ng-0.9.4.4100.20090929 fails to build with 2.6.33)
Summary: stabilize net-wireless/madwifi-ng{,tools}-0.9.4.4119.20100201 (was: net-wirel...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Peter Volkov (RETIRED)
URL:
Whiteboard:
Keywords: STABLEREQ
Depends on:
Blocks: 302457
  Show dependency tree
 
Reported: 2010-02-25 18:59 UTC by Oschtan
Modified: 2010-06-26 17:39 UTC (History)
8 users (show)

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


Attachments
Kernel-config (kernel-config-x86_64-2.6.33-gentoo,61.80 KB, text/plain)
2010-02-25 19:26 UTC, Oschtan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Oschtan 2010-02-25 18:59:51 UTC
madwifi-0.9.4-r4100-20090929.tar.gz RMD160 SHA1 SHA256 size ;-) ...                                                                                [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                  [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                 [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                [ ok ]
 * checking madwifi-0.9.4-r4100-20090929.tar.gz ;-) ...                                                                                               [ ok ]
 * CPV:  net-wireless/madwifi-ng-0.9.4.4100.20090929
 * REPO: gentoo
 * USE:  amd64 elibc_glibc kernel_linux multilib userland_GNU
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found kernel object directory:
 *     /lib/modules/2.6.33-gentoo/build
 * Found sources for kernel version:
 *     2.6.33-gentoo
 * Checking for suitable kernel configuration options...
 *   madwifi-ng-0.9.4.4100.20090929 requires CONFIG_WIRELESS_EXT selected by Wireless LAN drivers (non-hamradio) & Wireless Extensions
 * Please check to make sure these options are set correctly.
 * Failure to do so may cause unexpected problems.
 * Once you have satisfied these options, please try merging
 * this package again.
 * ERROR: net-wireless/madwifi-ng-0.9.4.4100.20090929 failed:
 *   Incorrect kernel configuration options
 *
 * Call stack:
 *                               ebuild.sh, line  48:  Called pkg_setup
 *   madwifi-ng-0.9.4.4100.20090929.ebuild, line  39:  Called linux-mod_pkg_setup
 *                        linux-mod.eclass, line 585:  Called linux-info_pkg_setup
 *                       linux-info.eclass, line 888:  Called check_extra_config
 *                       linux-info.eclass, line 782:  Called die
 * The specific snippet of code:
 *              die "Incorrect kernel configuration options"
 *
 * If you need support, post the output of 'emerge --info =net-wireless/madwifi-ng-0.9.4.4100.20090929',
 * the complete build log and the output of 'emerge -pqv =net-wireless/madwifi-ng-0.9.4.4100.20090929'.
 * The complete build log is located at '/var/tmp/portage/net-wireless/madwifi-ng-0.9.4.4100.20090929/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-wireless/madwifi-ng-0.9.4.4100.20090929/temp/die.env'.
 * S: '/var/tmp/portage/net-wireless/madwifi-ng-0.9.4.4100.20090929/work/madwifi-0.9.4-r4100-20090929'

Reproducible: Always

Steps to Reproduce:




emerge --info                                                                                                                                   
Portage 2.2_rc63 (default/linux/amd64/10.0, gcc-4.4.3, glibc-2.11-r1, 2.6.33-gentoo x86_64)                                                              
=================================================================                                                                                           
System uname: Linux-2.6.33-gentoo-x86_64-AMD_Phenom-tm-_8450_Triple-Core_Processor-with-gentoo-2.0.1                                                     
Timestamp of tree: Thu, 25 Feb 2010 08:45:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p2
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.4-r1
dev-python/pycrypto: 2.1.0
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.0-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.0-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20
sys-devel/gcc:       4.4.3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.32
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA PUEL sun-prerelease-jdk7 skype-eula dlj-1.1"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS=" -O2 -pipe -march=amdfam10 -mtune=amdfam10"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/red5/conf /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb /var/lib/red5-webapps"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS=" -O2 -pipe -march=amdfam10 -mtune=amdfam10"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests buildpkg ccache collision-protect distlocks fixpackages metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sets sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles http://trumpetti.atm.tut.fi/gentoo ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror http://distfiles.gentoo.org"
LANG="ru_RU.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1"
LINGUAS="ru"
MAKEOPTS="-j4"
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"
SYNC="rsync://linux.rz.ruhr-uni-bochum.de/gentoo-portage"
USE="3dnow 3dnowext X a52 aac aalib acl acpi additions alsa amd64 amr apm berkdb bindist bzip2 cairo cgi clamav cleartype cli consolekit cracklib ctype custom-cflags cxx dbus djvu dri dv dvd emerald enca encode exif extras faac faad fastcgi fbcondecor ffmpeg fontconfig fortran ftp fuse gd gecko gif git glitz google-gadgets gphoto2 gpm gstreamer hal hddtemp iconv imagemagick imlib jabber java jbig jpeg jpeg2k kde lame lastfm latin1 lcms libnotify lm_sensors lzma mad midi mikmod mjpeg mmx mmxext mng modules mp3 mp4 mpeg mplayer mudflap multilib multitarget mysql ncurses nls npp nptl nptlonly nsplugin objc objc++ objc-gc ogg opencore-amr openexr opengl openmp oscar pam pcre pdf perl php plasma png povray pppd python qt3 qt3support qt4 quicktime rar rcc readline reflection rtc samba schroedinger sdl semantic-desktop sensord session skey slang smbclient sndfile source speex spell spl sqlite sqlite3 srt sse sse2 ssl startup-notification subversion suid svg symlink sysfs syslog taglib tcpd templates theora thumbnail tidy tiff truetype unicode unsupported usb utempter vcd vdpau vorbis webdav-neon wmf wxwidgets x264 xattr xcb xcomposite xine xml xorg xpm xscreensaver xulrunner xv xvid yv12 zip zlib" ALSA_CARDS="hda-intel" 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" CAMERAS="adc65 agfa_cl20 aox barbie canon casio_qv clicksmart310 digigr8 digita dimagev dimera3500 directory enigma13 fuji gsmart300 hp215 iclick jamcam jd11 kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 konica konica_qm150 largan lg_gsm mars mustek panasonic_coolshot panasonic_dc1000 panasonic_dc1580 panasonic_l859 pccam300 pccam600 polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ptp2 ricoh ricoh_g3 samsung sierra sipix_blink sipix_blink2 sipix_web2 smal sonix sony_dscf1 sony_dscf55 soundvision spca50x sq905 stv0674 stv0680 sx330z template toshiba_pdrm11 jl2005a topfield" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPT
Comment 1 Oschtan 2010-02-25 19:00:41 UTC
less /etc/kernels/kernel-config-x86_64-2.6.33-gentoo | grep CONFIG_WIRELESS_EXT
CONFIG_WIRELESS_EXT_SYSFS=y
Comment 2 Oschtan 2010-02-25 19:25:06 UTC
Add to .config CONFIG_WIRELESS_EXT=y:
=========================

Compiling source in /var/tmp/portage/net-wireless/madwifi-ng-0.9.4.4100.20090929/work/madwifi-0.9.4-r4100-20090929 ...
 * Preparing ath_hal module
make -j4 HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS= KERNELPATH=/lib/modules/2.6.33-gentoo/build all
./../kernelversion.c:13:30: error: linux/utsrelease.h: No such file or directory
make -C /lib/modules/2.6.33-gentoo/build M=/var/tmp/portage/net-wireless/madwifi-ng-0.9.4.4100.20090929/work/madwifi-0.9.4-r4100-20090929/ath_hal modules
make[1]: Entering directory `/usr/src/linux-2.6.33-gentoo'
  HOSTCC  /var/tmp/portage/net-wireless/madwifi-ng-0.9.4.4100.20090929/work/madwifi-0.9.4-r4100-20090929/ath_hal/uudecode
  CC [M]  /var/tmp/portage/net-wireless/madwifi-ng-0.9.4.4100.20090929/work/madwifi-0.9.4-r4100-20090929/ath_hal/ah_os.o
  UUDECODE /var/tmp/portage/net-wireless/madwifi-ng-0.9.4.4100.20090929/work/madwifi-0.9.4-r4100-20090929/ath_hal/x86_64-elf.bin
  UNMANGLE /var/tmp/portage/net-wireless/madwifi-ng-0.9.4.4100.20090929/work/madwifi-0.9.4-r4100-20090929/ath_hal/x86_64-elf.hal.o
/var/tmp/portage/net-wireless/madwifi-ng-0.9.4.4100.20090929/work/madwifi-0.9.4-r4100-20090929/ath_hal/ah_os.c:447: error: unknown field 'ctl_name' specified in initializer
/var/tmp/portage/net-wireless/madwifi-ng-0.9.4.4100.20090929/work/madwifi-0.9.4-r4100-20090929/ath_hal/ah_os.c:447: error: 'CTL_UNNUMBERED' undeclared here (not in a function)
/var/tmp/portage/net-wireless/madwifi-ng-0.9.4.4100.20090929/work/madwifi-0.9.4-r4100-20090929/ath_hal/ah_os.c:454: error: unknown field 'ctl_name' specified in initializer
/var/tmp/portage/net-wireless/madwifi-ng-0.9.4.4100.20090929/work/madwifi-0.9.4-r4100-20090929/ath_hal/ah_os.c:461: error: unknown field 'ctl_name' specified in initializer
/var/tmp/portage/net-wireless/madwifi-ng-0.9.4.4100.20090929/work/madwifi-0.9.4-r4100-20090929/ath_hal/ah_os.c:492: error: unknown field 'ctl_name' specified in initializer
/var/tmp/portage/net-wireless/madwifi-ng-0.9.4.4100.20090929/work/madwifi-0.9.4-r4100-20090929/ath_hal/ah_os.c:492: error: initializer element is not constant
/var/tmp/portage/net-wireless/madwifi-ng-0.9.4.4100.20090929/work/madwifi-0.9.4-r4100-20090929/ath_hal/ah_os.c:492: error: (near initialization for 'ath_hal_table[0].procname')
/var/tmp/portage/net-wireless/madwifi-ng-0.9.4.4100.20090929/work/madwifi-0.9.4-r4100-20090929/ath_hal/ah_os.c:499: error: unknown field 'ctl_name' specified in initializer
/var/tmp/portage/net-wireless/madwifi-ng-0.9.4.4100.20090929/work/madwifi-0.9.4-r4100-20090929/ath_hal/ah_os.c:499: error: initializer element is not constant
/var/tmp/portage/net-wireless/madwifi-ng-0.9.4.4100.20090929/work/madwifi-0.9.4-r4100-20090929/ath_hal/ah_os.c:499: error: (near initialization for 'ath_ath_table[0].procname')
/var/tmp/portage/net-wireless/madwifi-ng-0.9.4.4100.20090929/work/madwifi-0.9.4-r4100-20090929/ath_hal/ah_os.c:506: error: unknown field 'ctl_name' specified in initializer
/var/tmp/portage/net-wireless/madwifi-ng-0.9.4.4100.20090929/work/madwifi-0.9.4-r4100-20090929/ath_hal/ah_os.c:506: warning: initialization makes pointer from integer without a cast
make[2]: *** [/var/tmp/portage/net-wireless/madwifi-ng-0.9.4.4100.20090929/work/madwifi-0.9.4-r4100-20090929/ath_hal/ah_os.o] Error 1
make[1]: *** [_module_/var/tmp/portage/net-wireless/madwifi-ng-0.9.4.4100.20090929/work/madwifi-0.9.4-r4100-20090929/ath_hal] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.33-gentoo'
make: *** [all] Error 2
 * ERROR: net-wireless/madwifi-ng-0.9.4.4100.20090929 failed:
 *   Unable to emake HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS=  KERNELPATH=/lib/modules/2.6.33-gentoo/build all
 *
 * Call stack:
 *     ebuild.sh, line   48:  Called src_compile
 *   environment, line 3615:  Called linux-mod_src_compile
 *   environment, line 2778:  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}";
 *
 * If you need support, post the output of 'emerge --info =net-wireless/madwifi-ng-0.9.4.4100.20090929',
 * the complete build log and the output of 'emerge -pqv =net-wireless/madwifi-ng-0.9.4.4100.20090929'.
 * The complete build log is located at '/var/tmp/portage/net-wireless/madwifi-ng-0.9.4.4100.20090929/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-wireless/madwifi-ng-0.9.4.4100.20090929/temp/environment'.
 * S: '/var/tmp/portage/net-wireless/madwifi-ng-0.9.4.4100.20090929/work/madwifi-0.9.4-r4100-20090929'
Comment 3 Oschtan 2010-02-25 19:26:17 UTC
Created attachment 221177 [details]
Kernel-config
Comment 4 Andrey 2010-02-27 15:49:31 UTC
Confirm. I try madwifi-ng-9999 from arcon overlay, result is same. Build log: http://dpaste.com/165578/
Comment 5 Andrey 2010-02-27 18:16:03 UTC
Finally success!
To build madwfi-ng with .33 kernel you need:
	1) SVN version of madwifi-ng-tools
	2) SVN version of madwifi-ng
	3) you _MUST_ have CONFIG_WIRELESS_EXT in kernel config

1) copy madwifi-ng-tools and madwifi-ng from arcon overlay to your local overlay
2) edit madwifi-ng-9999.ebuild: comment 2 lines with "epatch" to prevent patch errors
3) make ebuild madwifi-ng-9999.ebuild digest as root
4) add to package.keywords:
	net-wireless/madwifi-ng ~x86 **
	net-wireless/madwifi-ng-tools ~x86 **

5) Linux 2.6.33 enables wireless extensions (CONFIG_WIRELESS_EXT) only if some driver in the kernel needs that.
What I do to enable CONFIG_WIRELESS_EXT:
	- enable CONFIG_WLAN Device Drivers -> Network device support -> Wireless LAN
	- enable CONFIG_PCMCIA Bus options (PCI etc.) -> PCCard (PCMCIA/CardBus) support
	- enable Aviator/Raytheon 2.4GHz wireless support as module
after this CONFIG_WIRELESS_EXT will be enabled
	
6) now you may build madwifi-ng

P.S. Sorry for my English
Comment 6 Oschtan 2010-02-28 08:52:43 UTC
Do not see any reason to install madwifi-ng from the overlay acron provided that the inclusion of these options, the kernel provides a successful build madwifi-ng as version 0.9 * or later
Comment 7 Oschtan 2010-02-28 09:04:37 UTC
Please add information about the inclusion CONFIG_WIRELESS_EXT kernel 2.6.33 in ebuild madwifi-ng driver
Comment 8 Andrey 2010-02-28 10:14:20 UTC
Latest portage version of madwifi-ng (0.9.4.4100.20090929) failed to build with 2.6.33 kernel. Build log: http://dpaste.com/165873/

News about supporting 2.6.33 kernel in madwifi-ng: http://kerneltrap.org/mailarchive/madwifi-devel/2010/1/11/6697083
Comment 9 Oschtan 2010-02-28 10:24:11 UTC
Right. Version 0.9 * is not going to. However, going to version 0.10.5.6. Ebuilds can be found in overlay pentoo. Bug about adding this version of the tree was drowned one of the developers Gentoo ... And it is sad despite the inability to often create a full-fledged AP driver ath5k from the kernel.
Comment 10 Vadim Dyadkin 2010-02-28 22:18:56 UTC
(In reply to comment #5)
> Finally success!

For me it fails :(
Comment 11 Vadim Dyadkin 2010-02-28 23:21:23 UTC
(In reply to comment #10)
> (In reply to comment #5)
> > Finally success!
> 
> For me it fails :(
> 

Ohhh, sorry, the way suggested by Andrey works fine
Comment 12 Peter Volkov (RETIRED) gentoo-dev 2010-03-03 12:35:21 UTC
madwifi 0.9.4.4119.20100201 was added to the tree. 
Comment 13 Bradley Gallagher 2010-03-23 05:52:51 UTC
I have the same problem with net-wireless/ndiswrapper-1.55-r1

I can confirm that this is a kernel bug.

The kernel .config does not have CONFIG_WIRELESS_EXT in it. Even though the menuconfig '/' for it shows that it is "available". It is selected by many things, and I met 3 of the dozens that it mentioned. 

The only thing in the .config is CONFIG_WIRELESS_EXT_SYSFS which does no good for anything.

> <SNIP> requires CONFIG_WIRELESS_EXT selected by
> Wireless LAN drivers (non-hamradio) & Wireless Extensions
> </SNIP>
Comment 14 Peter Volkov (RETIRED) gentoo-dev 2010-03-23 07:48:59 UTC
(In reply to comment #13)
> I have the same problem with net-wireless/ndiswrapper-1.55-r1
> I can confirm that this is a kernel bug.

There is no bug in the kernel. To enable WIRELESS_EXT, please, read comment #5 here.


Arch teams, please, stabilize:
net-wireless/madwifi-ng{,tools}-0.9.4.4119.20100201

This version fixes build issue for 2.6.32 too, so it time to go.
Comment 15 Da Fox 2010-03-28 18:14:57 UTC
(In reply to comment #14)
> (In reply to comment #13)
> > I have the same problem with net-wireless/ndiswrapper-1.55-r1
> > I can confirm that this is a kernel bug.
> 
> There is no bug in the kernel. To enable WIRELESS_EXT, please, read comment #5
> here.
> 
> 
> Arch teams, please, stabilize:
> net-wireless/madwifi-ng{,tools}-0.9.4.4119.20100201
> 
> This version fixes build issue for 2.6.32 too, so it time to go.
> 

(In reply to comment #14)
> (In reply to comment #13)
> > I have the same problem with net-wireless/ndiswrapper-1.55-r1
> > I can confirm that this is a kernel bug.
> 
> There is no bug in the kernel. To enable WIRELESS_EXT, please, read comment #5
> here.
> 
> 
> Arch teams, please, stabilize:
> net-wireless/madwifi-ng{,tools}-0.9.4.4119.20100201
> 
> This version fixes build issue for 2.6.32 too, so it time to go.
> 

Thanks, that seems to work, but it is an ugly work-around.
This should be fixed either in madwifi (don't depend on CONFIG_WIRELESS_EXT)
or in the kernel (allow CONFIG_WIRELESS_EXT to be set even if no in-kernel driver uses it. Currently this does not work; when I manually add CONFIG_WIRELESS_EXT to .config, it is removed again when running make.).
Comment 16 Markus Meier gentoo-dev 2010-04-12 18:58:21 UTC
amd64/x86 stable
Comment 17 Omar Saleem 2010-05-02 21:02:32 UTC
the information in comment #5 (enabling Aviator/Raytheon 2.4GHz) helped fix my problem (ndiswrapper complaining about CONFIG_WIRELESS_EXT)

however, i'm not convinced this is a fix, just a workaround. i shouldn't have to enable a driver for something i don't even have to get ndiswrapper to work, especially when the kernel .config says nothing of the sort and searching for CONFIG_WIRELESS_EXT gets you a few different things. 
Comment 18 nixnut (RETIRED) gentoo-dev 2010-06-26 17:39:20 UTC
ppc stable