[expert] ethtool.h & Compile problems

2003-07-16 Thread Joerg Mertin
Hi Folks,

I'm trying to compile some tools using the wireless Extensions etc. However - 
everything I compile always bails out on the ethtool.h include file. 
Anyone noticed this before ?

Note - I'm using the  kernel-source-2.4.21-0.18mdk - but recompiled to use the 
C3 Nemiah CPU. No patches applied - except that I use the Alsa-0.9.4 drivers 
on the system - which should not affect any compiling though. May it be a 
gcc-version problem ? The ethtool.h file is the same for gcc and the kernel 
(checked using diff).

Thx for any hint.

Here the output:

g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/lib/qt3/include -I/usr/X11R6/include   
-DQT_THREAD_SUPPORT  -D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long 
-Wbad-function-cast -Wundef -Wall -pedantic -W -Wpointer-arith 
-Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE 
-Wcast-align -Wconversion -O2 -fno-exceptions -fno-check-new  -c -o wwidget.o 
`test -f 'wwidget.cpp' || echo './'`wwidget.cpp
In file included from /usr/include/linux/wireless.h:75,
 from wcard.h:34,
 from wwidget.h:32,
 from wwidget.cpp:18:
/usr/include/linux/ethtool.h:18: 'u32' is used as a type, but is not defined 
as a type.
/usr/include/linux/ethtool.h:19: 'u32' is used as a type, but is not defined 
as a type.
/usr/include/linux/ethtool.h:20: 'u32' is used as a type, but is not defined 
as a type.
/usr/include/linux/ethtool.h:21: 'u16' is used as a type, but is not defined 
as a type.
/usr/include/linux/ethtool.h:22: 'u8' is used as a type, but is not defined as 
a type.
/usr/include/linux/ethtool.h:23: 'u8' is used as a type, but is not defined as 
a type.
/usr/include/linux/ethtool.h:24: 'u8' is used as a type, but is not defined as 
a type.
/usr/include/linux/ethtool.h:25: 'u8' is used as a type, but is not defined as 
a type.
/usr/include/linux/ethtool.h:26: 'u8' is used as a type, but is not defined as 
a type.
/usr/include/linux/ethtool.h:27: 'u32' is used as a type, but is not defined 
as a type.
/usr/include/linux/ethtool.h:28: 'u32' is used as a type, but is not defined 
as a type.
/usr/include/linux/ethtool.h:29: parse error before `[' token
/usr/include/linux/ethtool.h:35: 'u32' is used as a type, but is not defined 
as a type.
/usr/include/linux/ethtool.h:43: 'u32' is used as a type, but is not defined 
as a type.
/usr/include/linux/ethtool.h:44: 'u32' is used as a type, but is not defined 
as a type.
/usr/include/linux/ethtool.h:45: 'u32' is used as a type, but is not defined 
as a type.
/usr/include/linux/ethtool.h:46: 'u32' is used as a type, but is not defined 
as a type.
/usr/include/linux/ethtool.h:52: 'u32' is used as a type, but is not defined 
as a type.
/usr/include/linux/ethtool.h:53: 'u32' is used as a type, but is not defined 
as a type.
/usr/include/linux/ethtool.h:54: 'u32' is used as a type, but is not defined 
as a type.
/usr/include/linux/ethtool.h:55: parse error before `[' token
/usr/include/linux/ethtool.h:60: 'u32' is used as a type, but is not defined 
as a type.
/usr/include/linux/ethtool.h:61: 'u32' is used as a type, but is not defined 
as a type.
/usr/include/linux/ethtool.h:66: 'u32' is used as a type, but is not defined 
as a type.
/usr/include/linux/ethtool.h:67: 'u32' is used as a type, but is not defined 
as a type.
/usr/include/linux/ethtool.h:68: 'u32' is used as a type, but is not defined 
as a type.
/usr/include/linux/ethtool.h:69: parse error before `[' token
/usr/include/linux/ethtool.h:74: 'u32' is used as a type, but is not defined 
as a type.
/usr/include/linux/ethtool.h:75: 'u32' is used as a type, but is not defined 
as a type.
/usr/include/linux/ethtool.h:76: 'u32' is used as a type, but is not defined 
as a type.
/usr/include/linux/ethtool.h:77: 'u32' is used as a type, but is not defined 
as a type.
/usr/include/linux/ethtool.h:78: parse error before `[' token
/usr/include/linux/ethtool.h:83: 'u32' is used as a type, but is not defined 
as a type.
/usr/include/linux/ethtool.h:89: 'u32' is used as a type, but is not defined 
as a type.
/usr/include/linux/ethtool.h:97: 'u32' is used as a type, but is not defined 
as a type.
/usr/include/linux/ethtool.h:104: 'u32' is used as a type, but is not defined 
as a type.
/usr/include/linux/ethtool.h:105: 'u32' is used as a type, but is not defined 
as a type.
/usr/include/linux/ethtool.h:111: 'u32' is used as a type, but is not defined 
as a type.
/usr/include/linux/ethtool.h:119: 'u32' is used as a type, but is not defined 
as a type.
/usr/include/linux/ethtool.h:126: 'u32' is used as a type, but is not defined 
as a type.
/usr/include/linux/ethtool.h:127: 'u32' is used as a type, but is not defined 
as a type.
/usr/include/linux/ethtool.h:134: 'u32' is used as a type, but is not defined 
as a type.
/usr/include/linux/ethtool.h:143: 'u32' is used as a type, but is not defined 
as a type.
/usr/include/linux/ethtool.h:144: 'u32' is used as a type, but is not defined 
as a type.
/usr/include/linux/ethtool.h:150: 'u32' is u

Re: [expert] ethtool.h & Compile problems

2003-07-16 Thread James Sparenberg
On Wed, 2003-07-16 at 04:49, Joerg Mertin wrote:
> Hi Folks,
> 
> I'm trying to compile some tools using the wireless Extensions etc. However - 
> everything I compile always bails out on the ethtool.h include file. 
> Anyone noticed this before ?
> 
> Note - I'm using the  kernel-source-2.4.21-0.18mdk - but recompiled to use the 
> C3 Nemiah CPU. No patches applied - except that I use the Alsa-0.9.4 drivers 
> on the system - which should not affect any compiling though. May it be a 
> gcc-version problem ? The ethtool.h file is the same for gcc and the kernel 
> (checked using diff).
> 
> Thx for any hint.
> 
> Here the output:
> 
> g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/lib/qt3/include -I/usr/X11R6/include   
> -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long 
> -Wbad-function-cast -Wundef -Wall -pedantic -W -Wpointer-arith 
> -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE 
> -Wcast-align -Wconversion -O2 -fno-exceptions -fno-check-new  -c -o wwidget.o 
> `test -f 'wwidget.cpp' || echo './'`wwidget.cpp
> In file included from /usr/include/linux/wireless.h:75,
>  from wcard.h:34,
>  from wwidget.h:32,
>  from wwidget.cpp:18:
> /usr/include/linux/ethtool.h:18: 'u32' is used as a type, but is not defined 
> as a type.


Joerg,

   Just for fun I threw your error message above into google.  It came
back with one hit, and it is related to, get this, Mandrake 9.1 and
wireless.  Specifically covering the amtel drivers in this authors
case.  

http://iprserv.jura.uni-leipzig.de/pipermail/atmel-wlan-usb/2003-April/001564.html

is the link, for the start of the thread.  Apparently the ethtool.h
include line is dispensable and can just be commented out (the thread
provides a link to this info.) and will let you carry on from there.  

James



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] ethtool.h & Compile problems

2003-07-17 Thread Joerg Mertin
Hi James,

thx for the Hint. Looks like that was it. Why was it added - if the include 
file ethtool.h is crap ? Anyway - doesn't matter. Seems it compiles now.

I have to admint though - that next time - I'll dig deeper into it - and I 
should definitly start using Google ;) even for these kind of things  :)

Cheers & Thx

Joerg

On Wednesday 16 July 2003 20:33, James Sparenberg wrote:
[...]
> Joerg,
>
>Just for fun I threw your error message above into google.  It came
> back with one hit, and it is related to, get this, Mandrake 9.1 and
> wireless.  Specifically covering the amtel drivers in this authors
> case.
>
> http://iprserv.jura.uni-leipzig.de/pipermail/atmel-wlan-usb/2003-April/0015
>64.html
>
> is the link, for the start of the thread.  Apparently the ethtool.h
> include line is dispensable and can just be commented out (the thread
> provides a link to this info.) and will let you carry on from there.
>
> James

-- 
An elephant is a mouse with an operating system.

| Joerg Mertin  :  [EMAIL PROTECTED](Home)|
| in Neuchâtel/Schweiz  :  [EMAIL PROTECTED]  (Alt1)|
| Stardust's LiNUX System   :  [EMAIL PROTECTED](Alt2)|
| Web: http://www.solsys.org:  Voice & Fax: +41(0)32 / 725 52 54   |

PGP Fingerprint: AF0F FB75 997B 025F 4538 5AD6 9888 5D97 170B 8B7A


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] ethtool.h & Compile problems

2003-07-17 Thread James Sparenberg
On Thu, 2003-07-17 at 02:39, Joerg Mertin wrote:
> Hi James,
> 
> thx for the Hint. Looks like that was it. Why was it added - if the include 
> file ethtool.h is crap ? Anyway - doesn't matter. Seems it compiles now.
> 
> I have to admint though - that next time - I'll dig deeper into it - and I 
> should definitly start using Google ;) even for these kind of things  :)
> 
> Cheers & Thx
> 
>   Joerg

Dunno... except I do know it matches the one in the vanilla kernel that
it came from.  So I guess we can put it off on the fact that the kernel
the mdk kernel came from was pre release.

James

> 
> On Wednesday 16 July 2003 20:33, James Sparenberg wrote:
> [...]
> > Joerg,
> >
> >Just for fun I threw your error message above into google.  It came
> > back with one hit, and it is related to, get this, Mandrake 9.1 and
> > wireless.  Specifically covering the amtel drivers in this authors
> > case.
> >
> > http://iprserv.jura.uni-leipzig.de/pipermail/atmel-wlan-usb/2003-April/0015
> >64.html
> >
> > is the link, for the start of the thread.  Apparently the ethtool.h
> > include line is dispensable and can just be commented out (the thread
> > provides a link to this info.) and will let you carry on from there.
> >
> > James


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com