Summary: | net-wireless/kismet - bcm43xx support was not built error | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | indarios |
Component: | Current packages | Assignee: | Christian Heim (RETIRED) <phreak> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | latexer, matt.palermo |
Priority: | High | Keywords: | InVCS |
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
indarios
2007-01-01 22:31:03 UTC
Actually *NO* wireless support was built. I re-emerged it last night only to find that. I looked watched the ./configure script exectute and watched it complain that it couldn't find the kernel header file "linux/wireless.h". I then tried running a ./configure on the package myself (meaning NOT using portage to do it) and found that the configure script ran just fine. I nano'ed the .ebuild and found this: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src_compile() { # the configure script only honors '--disable-foo' local config="--disable-gpsmap" if ! use ncurses; then config="${config} --disable-curses --disable-panel" fi # need to set CC and CXX for FEATURES=confcache, bug #129479 CC=$(tc-getCC) CXX=$(tc-getCXX) \ econf \ ${config} \ --with-linuxheaders="${KV_DIR}"/include || die "econf failed" einfo "You may safely ignore the warning about the missing .depend file" emake dep || die "emake dep failed" emake || die "emake failed" } ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ I found that if I took out the "--with-linuxheaders" part of it, it configured 100% find. Here is the way I edited it: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src_compile() { # the configure script only honors '--disable-foo' local config="--disable-gpsmap" if ! use ncurses; then config="${config} --disable-curses --disable-panel" fi # need to set CC and CXX for FEATURES=confcache, bug #129479 CC=$(tc-getCC) CXX=$(tc-getCXX) \ econf \ ${config} || die "econf failed" einfo "You may safely ignore the warning about the missing .depend file" emake dep || die "emake dep failed" emake || die "emake failed" } ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (notice I ONLY took out the header file check) Now, I'm no Code-ist, and have never written an .ebuild so I have no idea what this edit could break down-the-line (nor do I have any idea why it failed to begin with since the file is indeed here on my system), but, it works 100% fine here on my machine (Orinoco chip). I also use the 2.6.19 (suspend2) kernel. The file is there: # ls -l /usr/src/linux-2.6.19-suspend2-r1/include/linux/wireless.h -rw-r--r-- 1 root root 41219 Jan 8 07:49 /usr/src/linux-2.6.19-suspend2-r1/include/linux/wireless.h Anyway, I'm not sure what the problem is, but that's waht I did to work around it. I am getting the same error while trying to use kismet with madwifi on amd64, 2.6.19-suspend2. The problem is that ./configure cannot be used with --with-linuxheaders=/usr/src/linux/include, but with --with-linuxheaders=/usr/src/linux It seems as a bug in ebuild. The line --with-linuxheaders="${KV_DIR}"/include || die "econf failed" should be --with-linuxheaders="${KV_DIR}" || die "econf failed" Removing the line worked form me, Ill have to try changing the line to --with-linuxheaders="${KV_DIR}" || die "econf failed" next. (In reply to comment #3) > Removing the line worked form me, Ill have to try changing the line to > --with-linuxheaders="${KV_DIR}" || die "econf failed" next. Yup, works for me too. Commiting it to the tree as I write this. Thanks for the report. |