Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 332803 - sys-apps/busybox-1.17.1 fails to compile, missing linux/rfkill.h
Summary: sys-apps/busybox-1.17.1 fails to compile, missing linux/rfkill.h
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-15 06:40 UTC by Hans Nieser
Modified: 2010-08-15 17:29 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 Hans Nieser 2010-08-15 06:40:21 UTC
I was updating busybox as part of an 'emerge -DNu world', and it failed to compile due to a missing header:

miscutils/rfkill.c:10:26: error: linux/rfkill.h: No such file or directory
miscutils/rfkill.c: In function ‘rfkill_main’:
miscutils/rfkill.c:21: error: storage size of ‘event’ isn’t known
miscutils/rfkill.c:46: error: ‘RFKILL_TYPE_ALL’ undeclared (first use in this function)
miscutils/rfkill.c:46: error: (Each undeclared identifier is reported only once
miscutils/rfkill.c:46: error: for each function it appears in.)
miscutils/rfkill.c:65: error: ‘RFKILL_EVENT_SIZE_V1’ undeclared (first use in this function)
miscutils/rfkill.c:105: error: ‘RFKILL_OP_CHANGE_ALL’ undeclared (first use in this function)
miscutils/rfkill.c:110: error: ‘RFKILL_OP_CHANGE’ undeclared (first use in this function)
miscutils/rfkill.c:21: warning: unused variable ‘event’
  CC      libbb/lineedit.o
make[1]: *** [miscutils/rfkill.o] Error 1


My emerge --info:

emerge --info
Portage 2.1.8.3 (default/linux/amd64/10.0/desktop, gcc-4.4.4, glibc-2.12.1-r0, 2.6.35-gentoo x86_64)
=================================================================
System uname: Linux-2.6.35-gentoo-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-gentoo-2.0.1
Timestamp of tree: Sun, 15 Aug 2010 06:00:01 +0000
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.7.9-r1, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=nocona -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
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/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=nocona -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://gentoo.tiscali.nl/pub/mirror/gentoo "
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/x11 /usr/local/aphax-overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 audacious automount avahi berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus dirac divx djvu dri dts dv dvd dvdr eds emboss encode evo exif fam ffmpeg firefox flac fortran fuse gdbm gif gnome gnome-keyring gpm gstreamer gtk gtk2 hal iconv ieee1394 ipv6 jpeg jpeg2k lcms ldap libnotify mad matroska mikmod mmx mng modules mono moonlight mp3 mp4 mpeg mudflap multilib nautilus ncurses nls nntp nptl nptlonly nvidia ogg opengl openmp pam pango pcre pdf perl png policykit ppds pppd python qt3support qt4 readline reflection samba sdl session spell spl sse sse2 ssl ssse3 startup-notification svg sysfs tcpd theora threads tiff truetype unicode usb v4l v4l2 vcd vim-syntax vorbis wmf wmp wxwindows x264 xcb xinerama xml xorg xulrunner xv xvid xvmc 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 cgi cgid 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" CAMERAS="canon" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vesa radeon radeonhd" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Reproducible: Always

Steps to Reproduce:
Comment 1 Hans Nieser 2010-08-15 07:02:04 UTC
After some more thinking I realized I was using an outdated sys-kernel/linux-headers (2.6.30), which didn't have this header, while 2.6.34 does.. This probably means this bug can be closed.. sorry for the noise
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2010-08-15 10:35:25 UTC
(In reply to comment #1)
> After some more thinking I realized I was using an outdated
> sys-kernel/linux-headers (2.6.30), which didn't have this header, while 2.6.34
> does.. This probably means this bug can be closed.. sorry for the noise
> 

I'd say this is a valid bug. Either dependencies of this busybox version need adjustment or older linux-headers packages should ship rfkill.h as well (if that file exists in older versions of linux-headers).
Comment 3 SpanKY gentoo-dev 2010-08-15 17:29:12 UTC
there's no need to enable rfkill by default in a recovery shell

http://sources.gentoo.org/sys-apps/busybox/busybox-1.17.1.ebuild?r1=1.2&r2=1.3