Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 21050 - hostap 0.0.2 (~x86) ebuild doesn't install kernel modules by default
Summary: hostap 0.0.2 (~x86) ebuild doesn't install kernel modules by default
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Patrick Kursawe (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-15 06:55 UTC by Adrian Head
Modified: 2003-09-28 23:57 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adrian Head 2003-05-15 06:55:26 UTC
The hostap 0.0.2 (~x86) ebuild doesn't seem to build any kernel modules by 
default. 
 
The standard: 
ACCEPT_KEYWORDS="~x86" emerge wireless-tools hostap 
 
Produces: 
>>> emerge (2 of 2) net-wireless/hostap-0.0.2 to / 
>>> md5 ;-) hostap-0.0.2.tar.gz 
>>> Unpacking source... 
>>> Unpacking hostap-0.0.2.tar.gz to /var/tmp/portage/hostap-0.0.2/work 
>>> Source unpacked. 
 * Building the folowing drivers: pci plx 
Select the version to be build: 
make pccard      PC Card (PCMCIA) driver (Prism2 or Prism2.5) 
make plx         PLX-based PCI card with PC Card 
make pci         Prism 2.5 PCI Card 
make crypt       Make hostap_crypt*.o 
make hostap      Make hostap.o 
gcc -march=athlon -O3 -pipe -fomit-frame-pointer -DHOSTAPD_DUMP_STATE 
-I../driver/modules -I../utils   -c -o hostapd.o hostapd.c 
[...CUT...] 
gcc -march=athlon -O3 -pipe -fomit-frame-pointer -DHOSTAPD_DUMP_STATE 
-I../driver/modules -I../utils   -c -o receive.o receive.c 
gcc -o hostapd -march=athlon -O3 -pipe -fomit-frame-pointer 
-DHOSTAPD_DUMP_STATE -I../driver/modules -I../utils hostapd.o eloop.o 
ieee802_1x.o eapol_sm.o radius.o md5.o rc4.o common.o iapp.o ieee802_11.o 
config.o ieee802_11_auth.o accounting.o sta_info.o driver.o receive.o 
 
>>> Install hostap-0.0.2 into /var/tmp/portage/hostap-0.0.2/image/ category 
net-wireless 
cp: cannot stat 
`/var/tmp/portage/hostap-0.0.2/work/hostap-0.0.2/driver/modules/hostap.o': No 
such file or directory 
cp: cannot stat 
`/var/tmp/portage/hostap-0.0.2/work/hostap-0.0.2/driver/modules/hostap_crypt.o': 
No such file or directory 
cp: cannot stat 
`/var/tmp/portage/hostap-0.0.2/work/hostap-0.0.2/driver/modules/hostap_crypt_wep.o': 
No such file or directory 
man: 
strip: 
/var/tmp/portage/hostap-0.0.2/image//usr/sbin/hostapd 
>>> Completed installing into /var/tmp/portage/hostap-0.0.2/image/ 
 
>>> Merging net-wireless/hostap-0.0.2 to / 
--- /lib/ 
--- /lib/modules/ 
--- /lib/modules/2.4.20-gentoo-r5/ 
--- /lib/modules/2.4.20-gentoo-r5/net/ 
--- /usr/ 
--- /usr/share/ 
--- /usr/share/doc/ 
--- /usr/share/doc/hostap-0.0.2/ 
>>> /usr/share/doc/hostap-0.0.2/FAQ.gz 
>>> /usr/share/doc/hostap-0.0.2/README.gz 
>>> /usr/share/doc/hostap-0.0.2/README.prism2.gz 
>>> /usr/share/doc/hostap-0.0.2/ChangeLog.gz 
--- /usr/sbin/ 
>>> /usr/sbin/hostapd 
 
By cheating and using: 
HOSTAP_DRIVERS="pci plx crypt hostap" emerge hostap 
 
Produces: 
>>> Merging net-wireless/hostap-0.0.2 to / 
--- /lib/ 
--- /lib/modules/ 
--- /lib/modules/2.4.20-gentoo-r5/ 
>>> /lib/modules/2.4.20-gentoo-r5/net/ 
>>> /lib/modules/2.4.20-gentoo-r5/net/hostap.o 
>>> /lib/modules/2.4.20-gentoo-r5/net/hostap_crypt.o 
>>> /lib/modules/2.4.20-gentoo-r5/net/hostap_crypt_wep.o 
>>> /lib/modules/2.4.20-gentoo-r5/net/hostap_pci.o 
>>> /lib/modules/2.4.20-gentoo-r5/net/hostap_plx.o 
--- /usr/ 
--- /usr/share/ 
--- /usr/share/doc/ 
--- /usr/share/doc/hostap-0.0.2/ 
>>> /usr/share/doc/hostap-0.0.2/FAQ.gz 
>>> /usr/share/doc/hostap-0.0.2/README.gz 
>>> /usr/share/doc/hostap-0.0.2/README.prism2.gz 
>>> /usr/share/doc/hostap-0.0.2/ChangeLog.gz 
--- /usr/sbin/ 
>>> /usr/sbin/hostapd 
 
By reading the ebuild (I'm a ebuild newbie) it appears that the idea is to 
build for pci & plx by default; therefore, I would expect that hostap_pci.o & 
hostap_plx.o should be installed into the appropriate kernel module 
directories. 
 
The quick fix is to define all required modules as per the second example 
above. 
 
[root@hercules pts/3:0 hostap]# emerge --info 
Portage 2.0.47-r10 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4) 
================================================================= 
System uname: 2.4.20-gentoo-r5 i686 AMD Athlon(tm) Processor 
GENTOO_MIRRORS="http://gentoo.oregonstate.edu/ 
http://distro.ibiblio.org/pub/Linux/distributions/gentoo" 
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config 
/usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/kde/3/share/config 
/usr/share/config" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" 
PORTDIR="/usr/portage" 
DISTDIR="/usr/portage/distfiles" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR_OVERLAY="" 
USE="x86 apm gnome mikmod nls gtkhtml gdbm berkdb slang tetex bonobo svga 
guile X gpm esd gtk motif mmx 3dnow matrox pda cdr cups slp x dga opengl xv 
fbcon directfb kde qt qtmt arts aalib imlib ncurses readline sdl lcms gif jpeg 
png tiff gd avi mpeg quicktime alsa oss nas ggi dvd xmms oggvorbis encode pam 
ssl crypt imap maildir tcpd spell truetype xlm xml2 pdflib java perl python 
libwww libg++ acl samba doc zlib" 
COMPILER="gcc3" 
CHOST="i686-pc-linux-gnu" 
CFLAGS="-march=athlon -O3 -pipe -fomit-frame-pointer" 
CXXFLAGS="-march=athlon -O3 -pipe -fomit-frame-pointer" 
ACCEPT_KEYWORDS="x86" 
MAKEOPTS="-j2" 
AUTOCLEAN="yes" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
FEATURES="sandbox ccache"
Comment 1 Patrick Kursawe (RETIRED) gentoo-dev 2003-05-15 08:24:04 UTC
Please try 0.0.2-r1 which should hit your rsync mirror soon and report if it's ok.
Comment 2 Adrian Head 2003-05-15 10:55:33 UTC
I've tried hostap-0.0.2-r1;  
  
The result of:  
ACCEPT_KEYWORDS="~x86" emerge hostap  
  
is:  
>>> Merging net-wireless/hostap-0.0.2-r1 to /  
--- /lib/  
--- /lib/modules/  
--- /lib/modules/2.4.20-gentoo-r5/  
--- /lib/modules/2.4.20-gentoo-r5/net/  
>>> /lib/modules/2.4.20-gentoo-r5/net/hostap.o  
>>> /lib/modules/2.4.20-gentoo-r5/net/hostap_crypt.o  
>>> /lib/modules/2.4.20-gentoo-r5/net/hostap_crypt_wep.o  
--- /usr/  
--- /usr/share/  
--- /usr/share/doc/  
>>> /usr/share/doc/hostap-0.0.2-r1/  
>>> /usr/share/doc/hostap-0.0.2-r1/FAQ.gz  
>>> /usr/share/doc/hostap-0.0.2-r1/README.gz  
>>> /usr/share/doc/hostap-0.0.2-r1/README.prism2.gz  
>>> /usr/share/doc/hostap-0.0.2-r1/ChangeLog.gz  
--- /usr/sbin/  
>>> /usr/sbin/hostapd  
  
However; part of the output is  
 * Building the folowing drivers: pci plx  
  
Therefore; I'd expect that the following should also be built:  
<<<        obj /lib/modules/2.4.20-gentoo-r5/net/hostap_plx.o  
<<<        obj /lib/modules/2.4.20-gentoo-r5/net/hostap_pci.o  
  
What do you think?  (I'm still learning hostap specifics)  
Comment 3 Patrick Kursawe (RETIRED) gentoo-dev 2003-06-11 00:49:23 UTC
Sorry, completely forgot this bug... yes, you are right, according to the comments pci and plx drivers should be installed if you do not demand something specific. Fixed it for the new 0.0.3 version. Please try.

Comment 4 Patrick Kursawe (RETIRED) gentoo-dev 2003-09-28 23:57:33 UTC
think this was dead