MOL bk-devel 0.9.71 and kernel 2.6.9 on albook15" : sheep build
Adam Done
mlist at donestudios.com
Fri Nov 5 18:32:49 MST 2004
On Wed, 2004-10-27 at 15:09, eric.bachard wrote:
> Hi,
>
> After I have downloaded the latest 2.6.9 kernel, + BenH patch for my
> powerbook (alu15") , I couldn't compile MOL : a union with a member
> called "ethernet" couldn't be found...So, after some investigations, I
> have found that linux/skbuff.h from linux-2.6.9-rc3 and from linux-2.6.9
> are differents...
>
> Even, the new linux/skbuff.h seems to be wrong, because of a strange
> union (if I'm not wrong), with only one member :
>
>
> eric at alube:~/essai/patches$ cat -n skbuff.h | head -225 | tail -10
>
> 216 struct ipv6hdr *ipv6h;
> 217 struct arphdr *arph;
> 218 unsigned char *raw;
> 219 } nh;
> 220
> 221 union {
> 222 unsigned char *raw;
> 223 } mac;
> 224
> 225 struct dst_entry *dst;
>
> So, making a diff between linux/skbuff.h of linux-2.6.9-rc3 and
> linux-2.6.9, I have made a very little (following) patch
>
>
> """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
> --- skbuff.h_old 2004-10-18 23:55:36.000000000 +0200
> +++ skbuff.h 2004-10-27 21:20:43.000000000 +0200
> @@ -219,6 +219,7 @@
> } nh;
>
> union {
> + struct ethhdr *ethernet;
> unsigned char *raw;
> } mac;
>
> """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
>
> Now, this is really an union, with a least two members for mac :-)
>
>
> It works for me (sheep : verified) , so I now have both MacOnLinux (on
> Mac OS 10.3.3) *and* sleep on my alu 15"
>
>
>
> Finally, many many thanks to BenH, Paul Mackerras and all the MOL Team :-)
I am gathering that this patch would take care of my mol errors when
compiling the kernel modules?
This is what I get as well.
mol/src/netdriver/build/.kuname
CC [M] /usr/src/modules/mol/src/netdriver/build/sheep.o
/usr/src/modules/mol/src/netdriver/build/sheep.c: In function
`sheep_net_receiver':
/usr/src/modules/mol/src/netdriver/build/sheep.c:156: error: union has
no member named `ethernet'
/usr/src/modules/mol/src/netdriver/build/sheep.c:170: error: union has
no member named `ethernet'
/usr/src/modules/mol/src/netdriver/build/sheep.c:181: error: union has
no member named `ethernet'
/usr/src/modules/mol/src/netdriver/build/sheep.c:185: error: union has
no member named `ethernet'
/usr/src/modules/mol/src/netdriver/build/sheep.c:190: error: union has
no member named `ethernet'
/usr/src/modules/mol/src/netdriver/build/sheep.c:218: error: union has
no member named `ethernet'
/usr/src/modules/mol/src/netdriver/build/sheep.c: In function
`sheep_net_open':
/usr/src/modules/mol/src/netdriver/build/sheep.c:252: warning: use of
cast expressions as lvalues is deprecated
/usr/src/modules/mol/src/netdriver/build/sheep.c: In function
`sheep_net_writev':
/usr/src/modules/mol/src/netdriver/build/sheep.c:399: error: union has
no member named `ethernet'
make[6]: *** [/usr/src/modules/mol/src/netdriver/build/sheep.o] Error 1
make[5]: *** [_module_/usr/src/modules/mol/src/netdriver/build] Error 2
make[4]: Leaving directory `/usr/src/modules/mol/src/netdriver'
make[3]: Leaving directory `/usr/src/modules/mol'
Would I patch this against the /usr/src/modules/mol?
-Adam
More information about the mol-general
mailing list