Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 159676 - net-wireless/kismet - bcm43xx support was not built error
Summary: net-wireless/kismet - bcm43xx support was not built error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Christian Heim (RETIRED)
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2007-01-01 22:31 UTC by indarios
Modified: 2007-01-14 19:40 UTC (History)
2 users (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 indarios 2007-01-01 22:31:03 UTC
After a clean install and proper configuration of Kismet, running It returns an error saying. "FATAL: Support for capture source type 'bcm43xx' was not built.  Check the output from 'configure' for more information about why it might not have been compiled in."

Wireless card is configured correctly and works fine. Wireless PCI info;
pci bus 0x0002 cardnum 0x04 function 0x00: vendor 0x14e4 device 0x4320
 Broadcom Corporation BCM4306 802.11b/g Wireless LAN Controller

emerge --info
Portage 2.1.1-r2 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.5-r0, 2.6.19-beyond2 i686)
=================================================================
System uname: 2.6.19-beyond2 i686 Intel(R) Pentium(R) M processor 1.60GHz
Gentoo Base System version 1.12.6
Last Sync: Thu, 28 Dec 2006 20:30:01 +0000
ccache version 2.3 [disabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3, 2.17.50.0.8
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -O2 -pipe -ggdb"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-march=pentium-m -O2 -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/custom-kernels /usr/portage/local/layman/gnome-experimental"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 7zip X X509 aac aalib acpi alsa alsa_cards_ali5451 alsa_cards_als4000 alsa_cards_atiixp alsa_cards_atiixp-modem alsa_cards_bt87x alsa_cards_ca0106 alsa_cards_cmipci alsa_cards_emu10k1x alsa_cards_ens1370 alsa_cards_ens1371 alsa_cards_es1938 alsa_cards_es1968 alsa_cards_fm801 alsa_cards_hda-intel alsa_cards_intel8x0 alsa_cards_intel8x0m alsa_cards_maestro3 alsa_cards_trident alsa_cards_usb-audio alsa_cards_via82xx alsa_cards_via82xx-modem alsa_cards_ymfpci alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol bash-completion berkdb bindist bitmap-fonts bl bluetooth cairo cdparanoia cdr cdrom cli cpudetection cracklib crypt cups daap dbus directfb divx dlloader dri dts dv dvb dvd dvdr dvdread elibc_glibc encode fbcon fbsplash ffmpeg firefox flac fortran fping gdbm ggi gif gmedia gnome gnutls gpm gstreamer gtk gtk2 hal hddtemp iconv idn ieee1394 imagemagick imap imlib input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 irda isdnlog java javascript jpeg kernel_linux lame libcaca libg++ libnotify lzo mad mikmod mmx mono mp3 mpeg mplayer msn multiuser musepack nas ncurses njb nls nntp nptl nptlonly nsplugin offensive ogg opengl pam pam_console pcmcia pcre perl png pop ppds pppd python quicktime readline real realmedia reflection rtc samba sasl sdl sensord session skey snmp spell spl sse sse2 ssl startup-notification subtitles subversion svg svga sysfs tcpd theora threads tiff truetype truetype-fonts type1 type1-fonts udev unicode upnp urandom usb userland_GNU vcd video_cards_apm video_cards_ark video_cards_ati video_cards_chips video_cards_cirrus video_cards_cyrix video_cards_dummy video_cards_fbdev video_cards_glint video_cards_i128 video_cards_i740 video_cards_i810 video_cards_imstt video_cards_mga video_cards_neomagic video_cards_nsc video_cards_nv video_cards_rendition video_cards_s3 video_cards_s3virge video_cards_savage video_cards_siliconmotion video_cards_sis video_cards_sisusb video_cards_tdfx video_cards_tga video_cards_trident video_cards_tseng video_cards_v4l video_cards_vesa video_cards_vga video_cards_via video_cards_vmware video_cards_voodoo videos vim vorbis wifi win32codecs wireshark wma wmf wmp x264 xanim xorg xv xvid xvmc zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Matt 2007-01-11 19:35:27 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.



Comment 2 Martin Vysny 2007-01-13 11:02:14 UTC
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"
Comment 3 indarios 2007-01-14 16:39:27 UTC
Removing the line worked form me, Ill have to try changing the line to --with-linuxheaders="${KV_DIR}" || die "econf failed" next.
Comment 4 Christian Heim (RETIRED) gentoo-dev 2007-01-14 19:40:17 UTC
(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.