Since one of my kernel upgrades, wavemon started giving me the following when trying to start: fatal error: could not get range information I tried several workarounds, until I found the solution here: http://martybugs.net/wireless/rh9.cgi I applied his work around, substituting the wireless.h from /usr/src/linux/include/linux/ into /usr/include/linux/ which worked. In addition and I noted the following: slocate wireless.h /usr/include/linux/wireless.h /usr/include/wireless.h /usr/src/linux-2.6.14-gentoo-r2/include/linux/wireless.h /usr/src/linux-2.6.14-gentoo-r2/include/config/net/wireless.h /usr/src/linux-2.6.14-gentoo-r3/include/linux/wireless.h /usr/src/linux-2.6.14-gentoo-r3/include/config/net/wireless.h sgala@marlow ~ $ equery belongs /usr/include/wireless.h [ Searching for file(s) /usr/include/wireless.h in *... ] net-wireless/wireless-tools-28_pre12 (/usr/include/wireless.h) sgala@marlow ~ $ equery belongs /usr/include/linux/wireless.h [ Searching for file(s) /usr/include/linux/wireless.h in *... ] sys-kernel/linux-headers-2.6.11-r3 (/usr/include/linux/wireless.h) i.e., the problem is that the header (v19) coming from wireless-tools is not really used by wavemon in the ebuild, and the one in linux-headers it too old for modern kernels. Reproducible: Always Steps to Reproduce: 1.emerge wavemon 2. wavemon Actual Results: fatal error: could not get range information Expected Results: started
http://martybugs.net/wireless/rh9.cgi claims to have a reso: Further investigation indicated it was due to a mismatch of versions of the wireless header files, caused by the earlier upgrade of the wireless tools. /usr/include/linux/wireless.h was from wireless extensions version 15, while /include/wireless.h was from wireless extensions version 17. The later version was copied over the top of the older version: cp /usr/include/linux/wireless.h /usr/include/linux/wireless.h.old cp /include/wireless.h /usr/include/linux/wireless.h and wavemon now successfully worked after being recompiled. but I do not really understand what to do. What is /usr/include/linux/ about and how is generated 'usually' ? http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=328442 also have the same problem, actually unsolved.
Fixed in net-wireless/wavemon-0.4b-r1.
(In reply to comment #2) > Fixed in net-wireless/wavemon-0.4b-r1. > Upgrading wavemon to 0.4b-r1 did not help, I do not believe this to be fixed. My system contains two different versions of wireless.h. wavemon seems to be compiling against the older wireless.h that comes with linux-headers. px@pmobilex ~ $ equery belongs /usr/include/linux/wireless.h [ Searching for file(s) /usr/include/linux/wireless.h in *... ] sys-kernel/linux-headers-2.6.11-r3 (/usr/include/linux/wireless.h) px@pmobilex ~ $ equery belongs /usr/include/wireless.h [ Searching for file(s) /usr/include/wireless.h in *... ] net-wireless/wireless-tools-28_pre13 (/usr/include/wireless.h) ==> /usr/include/linux/wireless.h <== /* * This file define a set of standard wireless extensions * * Version : 17 21.6.04 * * Authors : Jean Tourrilhes - HPL - <jt@hpl.hp.com> * Copyright (c) 1997-2004 Jean Tourrilhes, All Rights Reserved. */ #ifndef _LINUX_WIRELESS_H ==> /usr/include/wireless.h <== /* * This file define a set of standard wireless extensions * * Version : 19 18.3.05 * * Authors : Jean Tourrilhes - HPL - <jt@hpl.hp.com> * Copyright (c) 1997-2005 Jean Tourrilhes, All Rights Reserved. */ #ifndef _LINUX_WIRELESS_H