Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 270269 - =net-wireless/rfswitch-1.1: fails to compile with "proc_root undeclared"
Summary: =net-wireless/rfswitch-1.1: fails to compile with "proc_root undeclared"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-18 09:49 UTC by glarnernet
Modified: 2012-11-29 13:39 UTC (History)
0 users

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


Attachments
rfswitch-1.3.ebuild (rfswitch-1.3.ebuild,1.11 KB, text/plain)
2012-11-18 14:59 UTC, Samuli Suominen (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description glarnernet 2009-05-18 09:49:28 UTC
I want to install rfswitch because the hardware button to control the radio of my ipw2200 interface doesn't react under linux.
but net-wireless/rfswitch-1.1 doesn't compile because some function or variable is undeclared; is there a header file missing?


Reproducible: Always

Steps to Reproduce:
1. emerge net-wireless/rfswitch

Actual Results:  
emerge failed, with followings relevant messages:
[ebuild  N    ] net-wireless/rfswitch-1.1  0 kB
[...]
 * Preparing av5100 module
make -j2 HOSTCC=i686-pc-linux-gnu-gcc CROSS_COMPILE=i686-pc-linux-gnu- LDFLAGS=
KSRC=/usr/src/linux modules
make -C /usr/src/linux M=/home/tmp/portage/net-wireless/rfswitch-1.1/work/rfswit
ch-1.1 MODVERDIR=/home/tmp/portage/net-wireless/rfswitch-1.1/work/rfswitch-1.1/t
mp/.tmp_versions modules
make[1]: entrant dans le répertoire « /usr/local/src/linux-2.6.28-gentoo-r5 »
  CC [M]  /home/tmp/portage/net-wireless/rfswitch-1.1/work/rfswitch-1.1/av5100.o
  CC [M]  /home/tmp/portage/net-wireless/rfswitch-1.1/work/rfswitch-1.1/pbe5.o
/home/tmp/portage/net-wireless/rfswitch-1.1/work/rfswitch-1.1/av5100.c: In funct
ion ‘av5100_proc_cleanup’:
/home/tmp/portage/net-wireless/rfswitch-1.1/work/rfswitch-1.1/av5100.c:122: erre
ur: ‘proc_root’ undeclared (first use in this function)
[...]
make[2]: *** [/home/tmp/portage/net-wireless/rfswitch-1.1/work/rfswitch-1.1/av51
00.o] Erreur 1
make[2]: *** Attente des tâches non terminées....
/home/tmp/portage/net-wireless/rfswitch-1.1/work/rfswitch-1.1/pbe5.c: In functio
n ‘pbe5_proc_cleanup’:
/home/tmp/portage/net-wireless/rfswitch-1.1/work/rfswitch-1.1/pbe5.c:154: erreur
: ‘proc_root’ undeclared (first use in this function)
[...]
make[2]: *** [/home/tmp/portage/net-wireless/rfswitch-1.1/work/rfswitch-1.1/pbe5
.o] Erreur 1
make[1]: *** [_module_/home/tmp/portage/net-wireless/rfswitch-1.1/work/rfswitch-
1.1] Erreur 2
make[1]: quittant le répertoire « /usr/local/src/linux-2.6.28-gentoo-r5 »
make: *** [modules] Erreur 2
 *
 * ERROR: net-wireless/rfswitch-1.1 failed.
 * Call stack:
 *               ebuild.sh, line   48:  Called src_compile
 *             environment, line 3212:  Called linux-mod_src_compile
 *             environment, line 2470:  Called die
 * The specific snippet of code:
 *               eval "emake HOSTCC="$(tc-getBUILD_CC)"                        C
ROSS_COMPILE=${CHOST}-                                          LDFLAGS="$(get_a
bi_LDFLAGS)"                                            ${BUILD_FIXES}         $
{BUILD_PARAMS}                                          ${BUILD_TARGETS} " || di
e "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CROSS_COMPILE=${CHOST}- LDFLAGS="$
(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}";
 *  The die message:
 *   Unable to emake HOSTCC=i686-pc-linux-gnu-gcc CROSS_COMPILE=i686-pc-linux-gn
u- LDFLAGS=  KSRC=/usr/src/linux modules


from home/tmp/portage/net-wireless/rfswitch-1.1/temp/environment
I can read the following:
ERROR_IPW2100='rfswitch-1.1 requires support for ipw2100 (CONFIG_IPW2100).'
but ipw2100 is compiled as a module and loaded (as is ipw2200)
$ grep CONFIG_IPW2100 .config
CONFIG_IPW2100=m
# CONFIG_IPW2100_MONITOR is not set
# CONFIG_IPW2100_DEBUG is not set




fwiw: my /usr/src/linux is linked to /usr/local/src/linux

is there a workaround to use software to switch radio on/off on my ipw2200 wifi interface?

$ emerge --info
Portage 2.1.6.11 (default/linux/x86/2008.0/desktop, gcc-4.3.2, glibc-2.8_p20080602-r1, 2.6.28-gentoo-r5 i686)
=================================================================
System uname: Linux-2.6.28-gentoo-r5-i686-Intel-R-_Pentium-R-_M_processor_1.70GHz-with-glibc2.0
Timestamp of tree: Wed, 13 May 2009 09:15:02 +0000
app-shells/bash:     3.2_p39
dev-lang/python:     2.4.4-r13, 2.5.4-r2
dev-python/pycrypto: 2.0.1-r8
dev-util/cmake:      2.6.2-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium-m -pipe"
DISTDIR="/usr/local/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo "
LANG="fr_FR.UTF8"
LDFLAGS="-Wl,-O1"
LINGUAS="fr en"
MAKEOPTS="-j2"
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="/home/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 acl acpi alsa berkdb branding bzip2 cairo cdda cddb cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread eds emboss encode esd evo fam ffmpeg firefox fortran gdbm gif gpm gstreamer hal iconv ipv6 isdnlog jpeg kde kpathsea latex ldap libcaca libnotify lm_sensors mad midi mikmod mjpeg mp3 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl pmu png ppds pppd python qt3 qt3support qt4 quicktime readline reflection sdl session spell spl ssl startup-notification svg sysfs tcpd tiff truetype unicode usb v4l v4l2 vorbis win32codecs x86 xml xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr en" USERLAND="GNU" VIDEO_CARDS="fglrx radeon radeonhd"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Pacho Ramos gentoo-dev 2012-10-28 12:05:51 UTC
Probably time to treeclean if 1.2 version neither works (I can try to bump it as it's x86 only)
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2012-11-18 14:59:51 UTC
Created attachment 329846 [details]
rfswitch-1.3.ebuild

Here is building capable ebuild of version 1.3 (latest from upstream)

I tested building on ~amd64 system and Linux 3.5

No kind of runtime testing done -> I recommend removing this package from Portage because it's HW specific and needs a dedicated maintainer
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2012-11-18 15:06:08 UTC
For the reference, I just stole the existing &proc_root -> NULL code from here:

http://lists.linbit.com/pipermail/drbd-dev/2008-July/000940.html
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2012-11-28 21:25:29 UTC
Added 1.3 to Portage anyway (so it can be found in the CVS Attic for restoration at later date, maybe)
Comment 5 SpanKY gentoo-dev 2012-11-29 06:31:12 UTC
(In reply to comment #2)

"HW specific" isn't a valid reason for removal.  there are plenty of packages that are "HW specific" in the tree.  like just about every single driver package.
Comment 6 Pacho Ramos gentoo-dev 2012-11-29 08:17:18 UTC
Since rfswitch doesn't have any other opened bug report, if this one is fixed by bump, I guess we can keep it a bit more...
Comment 7 Samuli Suominen (RETIRED) gentoo-dev 2012-11-29 09:18:01 UTC
do whatever you want with the pkg, even unmask and close this as wontfix is fine by me
Comment 8 Samuli Suominen (RETIRED) gentoo-dev 2012-11-29 13:39:39 UTC
OK, unmasked now