Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 114535 - wavemon exits with a fatal error
Summary: wavemon exits with a fatal error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Mobile Herd (OBSOLETE)
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2005-12-05 07:47 UTC by Santiago Gala
Modified: 2006-01-14 17:56 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 Santiago Gala 2005-12-05 07:47:20 UTC
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
Comment 1 DEMAINE Benoît-Pierre, aka DoubleHP 2005-12-23 04:45:04 UTC
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.
Comment 2 Henrik Brix Andersen 2006-01-14 13:33:31 UTC
Fixed in net-wireless/wavemon-0.4b-r1. 
Comment 3 bunkacid 2006-01-14 17:56:26 UTC
(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