Skip to contentSkip to conversation

batman and Kernel 2.6.26-rc8&rc9

B.A.T.M.A.N. Mark Kelly 3 participants 5 messages Jul 14, 2008 – Jul 18, 2008

lore
Share & tools
lore

Mark Kelly

author
#0 lore raw

The batman layer3 kernel module does not appear to compile on the 2.6.26-rc8 & rc9 kernels. Is this a known bug?

author
#2 lore raw

Hey Simon,

I just got around to trying this again on 2.6.26 final and I'm still getting a fail error on the gateway module, and I've tried it using r1099 and r1100 under openwrt on an ixp4xx board.

make[3]: Entering directory
`/opt/openwrt/k1/build_dir/linux-ixp4xx_generic/linux-2.6.26'
CC
[M] /opt/openwrt/k1/build_dir/armeb/batman-0.3-r1100/linux/modules/gateway.o /opt/openwrt/k1/build_dir/armeb/batman-0.3-r1100/linux/modules/gateway.c: In function 'init_module':
/opt/openwrt/k1/build_dir/armeb/batman-0.3-r1100/linux/modules/gateway.c:93: error: implicit declaration of function 'class_device_create' /opt/openwrt/k1/build_dir/armeb/batman-0.3-r1100/linux/modules/gateway.c: In function 'cleanup_module':
/opt/openwrt/k1/build_dir/armeb/batman-0.3-r1100/linux/modules/gateway.c:118: error: implicit declaration of function 'class_device_destroy' make[4]: ***
[/opt/openwrt/k1/build_dir/armeb/batman-0.3-r1100/linux/modules/gateway.o] Error 1
make[3]: ***
[_module_/opt/openwrt/k1/build_dir/armeb/batman-0.3-r1100/linux/modules]
Error 2
make[3]: Leaving directory
`/opt/openwrt/k1/build_dir/linux-ixp4xx_generic/linux-2.6.26'
make[2]: *** [/opt/openwrt/k1/build_dir/armeb/batman-0.3-r1100/.built]
Error 2
make[2]: Leaving directory `/opt/openwrt/packages/net/batman'
make[1]: *** [package/batman/compile] Error 2
make[1]: Leaving directory `/opt/openwrt/k1'
make: *** [package/batman-compile] Error 2

Quoted 22 lines · Simon Wunderlich

Hello Mark,

thanks for the report. The issue should be fixed with revision 1099.

regards
Simon

Quoted 9 lines · Mark Kelly

The batman layer3 kernel module does not appear to compile on the 2.6.26-rc8 & rc9 kernels. Is this a known bug?

_______________________________________________
B.A.T.M.A.N mailing list
[email protected]
https://list.open-mesh.net/mm/listinfo/b.a.t.m.a.n

_______________________________________________
B.A.T.M.A.N mailing list
[email protected]
https://list.open-mesh.net/mm/listinfo/b.a.t.m.a.n

#3 lore raw
Quoted 3 lines · On Friday 18 July 2008 03:48:27 Mark Kelly wrote:

I just got around to trying this again on 2.6.26 final and I'm still getting a fail error on the gateway module, and I've tried it using r1099 and r1100 under openwrt on an ixp4xx board.

Please look at device.c on line 88 till 92. There should be a #if section with should definitly use device_create_drvdata instead of class_device_create. Please check if it is there... your debug output looks like it isn't there (which sounds like a broken svn checkout). I think that it is that because your line numbers in your build log are different.

If it is correct, please check the version numbers in our linux toplevel Makefile (should be VERSION = 2, PATCHLEVEL = 6 and SUBLEVEL = 26).

I tried it now with vanilla 2.6.29-rc9 and it worked fine for me. I will try it on openwrt later

regards,
Sven

#4 lore raw
In reply to Mark Kelly

Hello Mark,

the lines of your error messages seem to be wrong. As Sven pointed out, your SVN checkout might be broken. Please check your gateway.c file against the latest trunk:
https://dev.open-mesh.net/svn/batman/trunk/batman/linux/modules/gateway.c
and see if it is matching. There is no code about class_device_* on line 93 and 118 in the latest file. The module compiles fine against linux 2.6.26 final on my system...

regards
Simon

Quoted 59 lines · Mark Kelly

Hey Simon,

I just got around to trying this again on 2.6.26 final and I'm still getting a fail error on the gateway module, and I've tried it using r1099 and r1100 under openwrt on an ixp4xx board.

make[3]: Entering directory
`/opt/openwrt/k1/build_dir/linux-ixp4xx_generic/linux-2.6.26'
CC
[M] /opt/openwrt/k1/build_dir/armeb/batman-0.3-r1100/linux/modules/gateway.o /opt/openwrt/k1/build_dir/armeb/batman-0.3-r1100/linux/modules/gateway.c: In function 'init_module':
/opt/openwrt/k1/build_dir/armeb/batman-0.3-r1100/linux/modules/gateway.c:93: error: implicit declaration of function 'class_device_create' /opt/openwrt/k1/build_dir/armeb/batman-0.3-r1100/linux/modules/gateway.c: In function 'cleanup_module':
/opt/openwrt/k1/build_dir/armeb/batman-0.3-r1100/linux/modules/gateway.c:118: error: implicit declaration of function 'class_device_destroy' make[4]: ***
[/opt/openwrt/k1/build_dir/armeb/batman-0.3-r1100/linux/modules/gateway.o] Error 1
make[3]: ***
[_module_/opt/openwrt/k1/build_dir/armeb/batman-0.3-r1100/linux/modules]
Error 2
make[3]: Leaving directory
`/opt/openwrt/k1/build_dir/linux-ixp4xx_generic/linux-2.6.26'
make[2]: *** [/opt/openwrt/k1/build_dir/armeb/batman-0.3-r1100/.built]
Error 2
make[2]: Leaving directory `/opt/openwrt/packages/net/batman'
make[1]: *** [package/batman/compile] Error 2
make[1]: Leaving directory `/opt/openwrt/k1'
make: *** [package/batman-compile] Error 2

Quoted 18 lines · Simon Wunderlich

Hello Mark,

thanks for the report. The issue should be fixed with revision 1099.

regards
Simon

Quoted 9 lines · Mark Kelly

The batman layer3 kernel module does not appear to compile on the 2.6.26-rc8 & rc9 kernels. Is this a known bug?

_______________________________________________
B.A.T.M.A.N mailing list
[email protected]
https://list.open-mesh.net/mm/listinfo/b.a.t.m.a.n

Quoted 4 lines

_______________________________________________
B.A.T.M.A.N mailing list
[email protected]
https://list.open-mesh.net/mm/listinfo/b.a.t.m.a.n

_______________________________________________
B.A.T.M.A.N mailing list
[email protected]
https://list.open-mesh.net/mm/listinfo/b.a.t.m.a.n