Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 50852 - net-wireless/hostap-driver-0.1.2-r1 will not build with a 2.6 kernel
Summary: net-wireless/hostap-driver-0.1.2-r1 will not build with a 2.6 kernel
Status: RESOLVED DUPLICATE of bug 41141
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Mobile Herd (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-12 08:06 UTC by Josh Glover (RETIRED)
Modified: 2005-07-17 13:06 UTC (History)
0 users

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


Attachments
emerge --info (emerge.info,1.32 KB, text/plain)
2004-08-24 11:08 UTC, Eric Pretorious
Details
.config from linux-2.6.8-gentoo-r1 (on PPC) (.config,28.92 KB, text/plain)
2004-08-24 11:10 UTC, Eric Pretorious
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Josh Glover (RETIRED) gentoo-dev 2004-05-12 08:06:00 UTC
With a 2.6 kernel (sys-kernel/gentoo-dev-sources-2.6.5-r1), emerging net-wireless/hostap-driver-0.1.2-r1 bombs out with the following errors:

Building the following drivers:  pci plx
gcc -I/usr/src/linux/include -O2 -D__KERNEL__ -DMODULE -Wall -g -c -DPRISM2_DOWNLOAD_SUPPORT -DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h -fomit-frame-pointer -E -D__GENKSYMS__ driver/modules/hostap.c | \
        /sbin/genksyms -k 2.6.5 > driver/modules/hostap.ver
<command line>:138479997:2496: /usr/src/linux/include/linux/modversions.h: No such file or directory

Run 'make install_pccard' as root to install hostap_cs.o
Run 'make install_plx' as root to install hostap_plx.o
Run 'make install_pci' as root to install hostap_pci.o

In file included from /usr/src/linux/include/linux/irq.h:20,
                 from /usr/src/linux/include/asm/hardirq.h:6,
                 from /usr/src/linux/include/linux/interrupt.h:11,
                 from /usr/src/linux/include/linux/netdevice.h:507,
                 from /usr/src/linux/include/linux/if_arp.h:26,
                 from driver/modules/hostap.c:25:
/usr/src/linux/include/asm/irq.h:16:25: irq_vectors.h: No such file or directory

[ Snipping lots more of the same ]

make: *** [driver/modules/hostap.o] Error 1

!!! ERROR: net-wireless/hostap-driver-0.1.2-r1 failed.
!!! Function src_compile, Line 72, Exitcode 2
!!! (no error message)


A Google search explained that 0.1.2 would not build with the 2.6 kernels, so all we should do here is add a dependency for a 2.4 kernel being available and then make sure to select that kernel for building hostap-driver. The easiest thing is to require that /usr/src/linux is a symlink to a 2.4 kernel.
Comment 1 Eric Pretorious 2004-08-24 11:06:43 UTC
> Mobile Herd wrote:
> A Google search explained that 0.1.2 would not build with the 2.6 kernels...

I've been experiencing problems with hostap-driver-0.1.2-r1 and the linux-2.6.8-gentoo-r1 kernel (on PPC) *except*that* hostap-driver-0.1.2-r1 compiles correctly but won't load. In /var/log/syslog, cardmgr 
complains...

Comment 2 Eric Pretorious 2004-08-24 11:06:43 UTC
> Mobile Herd wrote:
> A Google search explained that 0.1.2 would not build with the 2.6 kernels...

I've been experiencing problems with hostap-driver-0.1.2-r1 and the linux-2.6.8-gentoo-r1 kernel (on PPC) *except*that* hostap-driver-0.1.2-r1 compiles correctly but won't load. In /var/log/syslog, cardmgr 
complains...

 linux2go cardmgr[6484]: + FATAL: Error inserting hostap_cs (/lib/modules/2.6.8-gentoo-r1/pcmcia/hostap_cs.ko): Unknown symbol in module, or unknown parameter (see dmesg) 
 linux2go cardmgr[6484]: module /lib/modules/2.6.8-gentoo-r1/pcmcia/hostap_cs.o not available 
 linux2go cardmgr[6484]: bind 'hostap_cs' to socket 0 failed: Invalid argument

dmesg reports...

 hostap_cs: Unknown symbol CardServices
Comment 3 Eric Pretorious 2004-08-24 11:08:29 UTC
Created attachment 38108 [details]
emerge --info

Output from `emerge --info`
Comment 4 Eric Pretorious 2004-08-24 11:10:01 UTC
Created attachment 38109 [details]
.config from linux-2.6.8-gentoo-r1 (on PPC)

.config from linux-2.6.8-gentoo-r1 (on PPC)
Comment 5 Doug Goldstein (RETIRED) gentoo-dev 2004-08-25 11:53:39 UTC

*** This bug has been marked as a duplicate of 41141 ***