Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 243392 - net-wireless/acx-0.3.37_p20080112 fails to compile with kernel gentoo-sources-2.6.27
Summary: net-wireless/acx-0.3.37_p20080112 fails to compile with kernel gentoo-sources...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Mobile Herd (OBSOLETE)
Depends on:
Blocks: 242708
  Show dependency tree
Reported: 2008-10-23 14:24 UTC by Tapan
Modified: 2010-07-17 17:41 UTC (History)
1 user (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description Tapan 2008-10-23 14:24:52 UTC
(excuse my english) Compile acx driver fails with kernel gentoo-sources-2.6.27. With previous kernel (<2.6.27) work driver good. With 2.6.27 cannot driver create kernel module and wifi not work.

Reproducible: Always

Steps to Reproduce:
1. emerge =gentoo-sources-2.6.27
2. compile kernel, copy image to boot partition, boot this kernel
3. emerge acx

Actual Results:  
/var/tmp/portage/net-wireless/acx-0.3.37_p20080112/work/acx-20080112/ioctl.c:559: error: too few arguments to function 'iwe_stream_add_point'                                         
/var/tmp/portage/net-wireless/acx-0.3.37_p20080112/work/acx-20080112/ioctl.c:574: warning: passing argument 1 of 'iwe_stream_add_value' from incompatible pointer type                
/var/tmp/portage/net-wireless/acx-0.3.37_p20080112/work/acx-20080112/ioctl.c:574: warning: passing argument 4 of 'iwe_stream_add_value' from incompatible pointer type                
/var/tmp/portage/net-wireless/acx-0.3.37_p20080112/work/acx-20080112/ioctl.c:574: warning: passing argument 5 of 'iwe_stream_add_value' makes pointer from integer without a cast     
/var/tmp/portage/net-wireless/acx-0.3.37_p20080112/work/acx-20080112/ioctl.c:574: error: too few arguments to function 'iwe_stream_add_value'                                         
make[1]: *** [/var/tmp/portage/net-wireless/acx-0.3.37_p20080112/work/acx-20080112/ioctl.o] Error 1                                                                                   
make: *** [_module_/var/tmp/portage/net-wireless/acx-0.3.37_p20080112/work/acx-20080112] Error 2                                                                                      
make: Leaving directory `/usr/src/linux-2.6.27-gentoo'                                     
 * ERROR: net-wireless/acx-0.3.37_p20080112 failed.                                        
 * Call stack:                                                                             
 *, line   49:  Called src_compile                                               
 * environment, line 3227:  Called linux-mod_src_compile                                   
 * environment, line 2497:  Called die                                                     
 * The specific snippet of code:                                                           
 * eval "emake HOSTCC="$(tc-getBUILD_CC)"                                               CC="$(get-KERNEL_CC)"                                              LDFLAGS="$(get_abi_LDFLAGS)"                                               ${BUILD_FIXES}                            ${BUILD_PARAMS}                                          ${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CC="$(get-KERNEL_CC)" LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}";                                               
 * The die message:                                                                        
 * Unable to emake HOSTCC=x86_64-pc-linux-gnu-gcc CC=x86_64-pc-linux-gnu-gcc LDFLAGS=  -C /usr/src/linux SUBDIRS=/var/tmp/portage/net-wireless/acx-0.3.37_p20080112/work/acx-20080112 modules                                                                                    
 * If you need support, post the topmost build error, and the call stack if relevant.      
 * A complete build log is located at '/var/tmp/portage/net-wireless/acx-0.3.37_p20080112/temp/build.log'.                                                                            
 * The ebuild environment file is located at '/var/tmp/portage/net-wireless/acx-0.3.37_p20080112/temp/environment'.                                                                   

>>> Failed to emerge net-wireless/acx-0.3.37_p20080112, Log file:

>>>  '/var/tmp/portage/net-wireless/acx-0.3.37_p20080112/temp/build.log'
Comment 1 Thomas Sachau gentoo-dev 2008-10-24 12:37:29 UTC
Could you pleasae add the output of "emerge --info"?
Comment 2 Tapan 2008-10-24 13:10:46 UTC
emerge --info               
Portage 2.2_rc12 (default/linux/amd64/2008.0/desktop, gcc-4.3.2, glibc-2.8_p20080602-r0, 2.6.26-gentoo-r2 x86_64)                                                                     
System uname: Linux-2.6.26-gentoo-r2-x86_64-AMD_Athlon-tm-_64_Processor_3000+-with-glibc2.2.5                                                                                         
Timestamp of tree: Fri, 24 Oct 2008 03:30:01 +0000                                         
app-shells/bash:     3.2_p39                                                               
dev-java/java-config: 1.3.7, 2.1.6-r1                                                      
dev-lang/python:     2.5.2-r8                                                              
dev-util/cmake:      2.6.2                                                                 
sys-apps/baselayout: 2.0.0                                                                 
sys-apps/openrc:     0.3.0-r1                                                              
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.1-r1                          
sys-devel/binutils:  2.18-r3                                                               
sys-devel/gcc-config: 1.4.0-r4                                                             
sys-devel/libtool:   2.2.6a                                                                
virtual/os-headers:  2.6.26                                                                
ACCEPT_KEYWORDS="amd64 ~amd64"                                                             
CFLAGS="-march=k8 -O2 -pipe"                                                               
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/4.1/env /usr/kde/4.1/share/config /usr/kde/4.1/shutdown /usr/share/config"             
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d"                                                                                 
CXXFLAGS="-march=k8 -O2 -pipe"                                                             
FEATURES="distlocks parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"                                                                      
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"                                                                                   
USE="3dnow 3dnowext X acl acpi alsa amd64 avahi bash-completation berkdb bluetooth branding bzip2 cairo cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread eds emboss encode esd evo fam firefox fortran gdbm gif gnome gpm gstreamer gtk hal iconv icq ipv6 isdnlog jpeg kdekdeprefix kerberos ldap libnotify mad midi mikmod mmx mmxext mp3 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3 qt3support qt4 quicktime readline reflection samba sdl session spell spl sse sse2 ssl startup-notification svg symlink sysfs tcpd tiff truetype unicode usb v4l vorbis wifi xcomposite xml xorg xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="cs" USERLAND="GNU" VIDEO_CARDS="fglrx radeon vesa"
Comment 3 Tapan 2008-11-11 19:33:45 UTC
With kernel gentoo-sources-2.6.27-r2 similar problem, similar print-out.
Comment 4 Daniel Drake (RETIRED) gentoo-dev 2008-12-02 20:34:07 UTC
To fix this you need to pass the info parameter that comes into the get_scan handler to iwe_stream_add_point and co, and adjst references to IW_EV_LCP_LEN to use iwe_stream_lcp_len(info)

Upstream commit that included this API change and ported drivers (good for examples):;a=commitdiff;h=ccc580571cf0799d0460a085a7632b77753f083e
Comment 5 Daniel Drake (RETIRED) gentoo-dev 2008-12-09 21:14:47 UTC
Reminder to maintainers: 2.6.27 is planned to go stable on December 15th, it would be great if you could work on this before then
Comment 6 Drakos7 /Greg Wilson/ 2008-12-21 19:07:39 UTC
A possible patch exists here:
Comment 7 Edouard SONG 2008-12-24 23:10:41 UTC
I have got the same problem, how can we fix that ? Should we patch the kernel ?
Comment 8 Drakos7 /Greg Wilson/ 2008-12-26 15:39:01 UTC
(In reply to comment #6)
> A possible patch exists here:

Ok, I confirmed that this patch against the ACX source works for me on AMD64 with gentoo kernel 2.6.27. You do not need to patch the kernel, just the acx sources.
Comment 9 Audiodef 2009-02-02 00:17:31 UTC
Where/what exactly is this patch and how do I apply it?
Comment 10 Stefan de Konink 2009-03-22 19:02:05 UTC
(In reply to comment #8)
> (In reply to comment #6)
> > A possible patch exists here:
> >
> Ok, I confirmed that this patch against the ACX source works for me on AMD64
> with gentoo kernel 2.6.27. You do not need to patch the kernel, just the acx
> sources.

Currently it is also required to patch the SHIRQ stuff; and I wasn't able to get the USB part working anymore... git version if this thing is hopeless too.
Comment 11 Fabio Erculiani (RETIRED) gentoo-dev 2009-12-14 17:42:06 UTC
Thanks for reporting, a new version of net-wireless/acx is available in Portage with fixes for kernels up to 2.6.32 (included), please test it and open new bugs if your issues persist.
Comment 12 Janez Zemva 2010-07-17 17:41:44 UTC
The bug reappers for gentoo-sources 2.6.34. The module fails to compile.