When emerging zd1211 I have the following error during the compilation: /var/tmp/portage/zd1211-74/work/zd1211-driver-r74/src/zd1205.c:4772: error: structure has no member named `iw_stats' The same error on both kernel versions I've tryed: kernel-2.6.15-r1 kernel-2.6.16-r6 I have the stable portage branch and manually unmask zd1211-74
*** Bug 116750 has been marked as a duplicate of this bug. ***
root:/home/bob# emerge --info Portage 2203-svn (default-linux/x86/2006.0, gcc-3.3.6, glibc-2.3.6-r3, 2.6.16-gentoo-r6 i686) ================================================================= System uname: 2.6.16-gentoo-r6 i686 AMD Athlon(tm) XP 3100+ Gentoo Base System version 1.6.14 dev-lang/python: 2.3.5-r2, 2.4.2 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O3 -march=athlon-xp -pipe -fomit-frame-pointer -mfpmath=sse" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=athlon-xp -pipe -fomit-frame-pointer -mfpmath=sse" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://mirror.switch.ch/mirror/gentoo/ http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" LANG="en_GB.utf8" LC_ALL="" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow X aac alsa apache2 apm audiofile avi berkdb bidi bitmap-fonts bzip2 cdr cli crypt cups curl divx4linux dri dvb dvd dvdr dvdread eds emboss encode esd exif expat faad fam ffmpeg flac foomaticdb fortran gd gdbm gif glut gpm gstreamer gtk gtk2 icc idn imagemagick imlib ipv6 isdnlog jack java jpeg kde lcms ldap libg++ libwww mad matroska mikmod mjpeg mmx mng motif mozilla mp3 mpeg mysql ncurses nls nptl nptlonly nvidia ogg opengl oss pam pcre pdflib perl png pppd python qt quicktime readline real reflection sdl session slang spell spl sse ssl svga tcltk tcpd tiff truetype truetype-fonts type1-fonts udev unicode usb v41 v412 vorbis wxwindows x86 xine xml xml2 xmms xorg xv xvid zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, INSTALL_MASK, LDFLAGS, LINGUAS, MAKEOPTS
root:/home/bob# emerge zd1211 Calculating dependencies ...done! >>> emerge (1 of 1) net-wireless/zd1211-74 to / >>> md5 files ;-) zd1211-74.ebuild >>> md5 files ;-) files/digest-zd1211-74 >>> md5 src_uri ;-) zd1211-driver-r74.tgz * Determining the location of the kernel source code * Found kernel source directory: * /usr/src/linux * Found sources for kernel version: * 2.6.16-gentoo-r6 >>> Unpacking source... >>> Unpacking zd1211-driver-r74.tgz to /var/tmp/portage/zd1211-74/work >>> Source unpacked. * Preparing zd1211 module cd ..; make ZD1211REV_B=0 make[1]: Entering directory `/var/tmp/portage/zd1211-74/work/zd1211-driver-r74' /usr/src/linux /var/tmp/portage/zd1211-74/work/zd1211-driver-r74 -I/var/tmp/portage/zd1211-74/work/zd1211-driver-r74/src/include -fomit-frame-pointer -O2 -Wall -Wstrict-prototypes -pipe -DZDCONF_WE_STAT_SUPPORT=1 -DHOST_IF_USB -DAMAC -DGCCK -DOFDM -DHOSTAPD_SUPPORT -DUSE_EP4_SET_REG -DDOWNLOADFIRMWARE -DfTX_GAIN_OFDM=0 -DfNEW_CODE_MAP=1 -DfWRITE_WORD_REG=1 -DfREAD_MUL_REG=1 -DENHANCE_RX=1 -DZD1211 src/zd1205.o src/zdasocsvc.o src/zdauthreq.o src/zdauthrsp.o src/zdmmrx.o src/zdshared.o src/zdhci.o src/zdglobal.o src/zdencrypt.o src/zdpmfilter.o src/zdpsmon.o src/zdsynch.o src/zdbuf.o src/zd1205_proc.o src/zdhw.o src/zddebug.o src/zdtkipseed.o src/zdmic.o src/zdusb.o src/zd1211.o make -C /usr/src/linux SUBDIRS=/var/tmp/portage/zd1211-74/work/zd1211-driver-r74 modules make[2]: Entering directory `/usr/src/linux-2.6.16-gentoo-r6' CC [M] /var/tmp/portage/zd1211-74/work/zd1211-driver-r74/src/zd1205.o /var/tmp/portage/zd1211-74/work/zd1211-driver-r74/src/zd1205.c:734: warning: `zd_readl' declared inline after being called /var/tmp/portage/zd1211-74/work/zd1211-driver-r74/src/zd1205.c: In function `zd1205_validate_frame': /var/tmp/portage/zd1211-74/work/zd1211-driver-r74/src/zd1205.c:2805: warning: unused variable `len1' /var/tmp/portage/zd1211-74/work/zd1211-driver-r74/src/zd1205.c: In function `zd1205wext_iw_get_stats': /var/tmp/portage/zd1211-74/work/zd1211-driver-r74/src/zd1205.c:4772: error: structure has no member named `iw_stats' /var/tmp/portage/zd1211-74/work/zd1211-driver-r74/src/zd1205.c: In function `zd1205_translate_scan': /var/tmp/portage/zd1211-74/work/zd1211-driver-r74/src/zd1205.c:7175: warning: int format, U32 arg (arg 4) /var/tmp/portage/zd1211-74/work/zd1211-driver-r74/src/zd1205.c:7175: warning: unknown conversion type character `,' in format /var/tmp/portage/zd1211-74/work/zd1211-driver-r74/src/zd1205.c:7175: warning: spurious trailing `%' in format /var/tmp/portage/zd1211-74/work/zd1211-driver-r74/src/zd1205.c: In function `zd1205_list_bss': /var/tmp/portage/zd1211-74/work/zd1211-driver-r74/src/zd1205.c:7380: warning: int format, U32 arg (arg 2) /var/tmp/portage/zd1211-74/work/zd1211-driver-r74/src/zd1205.c:7380: warning: spurious trailing `%' in format /var/tmp/portage/zd1211-74/work/zd1211-driver-r74/src/zd1205.c: In function `CalculateQuality': /var/tmp/portage/zd1211-74/work/zd1211-driver-r74/src/zd1205.c:10066: warning: unused variable `rxOffset' make[3]: *** [/var/tmp/portage/zd1211-74/work/zd1211-driver-r74/src/zd1205.o] Error 1 make[2]: *** [_module_/var/tmp/portage/zd1211-74/work/zd1211-driver-r74] Error 2 make[2]: Leaving directory `/usr/src/linux-2.6.16-gentoo-r6' make[1]: *** [all] Error 2 make[1]: Leaving directory `/var/tmp/portage/zd1211-74/work/zd1211-driver-r74' make: *** [all] Error 2 !!! ERROR: net-wireless/zd1211-74 failed. !!! Function linux-mod_src_compile, Line 512, Exitcode 2 !!! Unable to make KERNEL_SOURCE=/usr/src/linux KDIR=/usr/src/linux KERN_26=y all. !!! If you need support, post the topmost build error, NOT this status message.
(In reply to comment #1) > *** Bug 116750 has been marked as a duplicate of this bug. *** > If the Bug 116750 is not actually resolved and closed, why to mark it as duplicate?
The problem seems to be in file: zd1205.h line 616-618 #ifdef CONFIG_NET_WIRELESS struct iw_statistics iw_stats; #endif The CONFIG_NET_WIRELESS is not defined in any headers in the project.
(In reply to comment #5) > The problem seems to be in file: zd1205.h line 616-618 > > #ifdef CONFIG_NET_WIRELESS > struct iw_statistics iw_stats; > #endif > > The CONFIG_NET_WIRELESS is not defined in any headers in the project. > Simply commenting the "#ifdef" helps to overcome the error, however produces some warning, so I'm not sure that it's a right way ...
After both commending #ifdef and #define CONFIG_NET_WIRELESS the package is compiling, however it produces the warning: Building modules, stage 2. MODPOST *** Warning: "wireless_send_event" [/var/tmp/portage/zd1211-74/work/zd1211-driver-r74/zd1211.ko] undefined! And after, modprobe zd1211 produce the error: root:~# modprobe zd1211 FATAL: Error inserting zd1211 (/lib/modules/2.6.16-gentoo-r6/net/zd1211.ko): Unknown symbol in module, or unknown parameter (see dmesg) root:~# dmesg | grep zd1211 zd1211b: Unknown symbol wireless_send_event zd1211: Unknown symbol wireless_send_event
CONFIG_NET_RADIO has to be set in the kernel !!!
I added a check for NET_RADIO to be enabled in the zd1211 ebuild, thanks for reporting!