2011-06-23 16 views
1

こんにちは私はLinuxのためのドライバuLanのビルドに問題があります。 私はそれをコンパイルする場合、私はエラーを取得:module_param_array()ubuntu 11.04(kernel 2.6.38)問題

/home/tomas/hairc/ulan-build/host/ul_drv/ul_drv/ul_linux.c:73:1: error: ‘param_ops_char’ undeclared here (not in a function) 
/home/tomas/hairc/ulan-build/host/ul_drv/ul_drv/ul_linux.c:73:1: error: called object ‘""’ is not a function 
/home/tomas/hairc/ulan-build/host/ul_drv/ul_drv/ul_linux.c:73:1: error: expected ‘)’ before string constant 
/home/tomas/hairc/ulan-build/host/ul_drv/ul_drv/ul_linux.c:73:1: error: bit-field ‘<anonymous>’ width not an integer constant 
/home/tomas/hairc/ulan-build/host/ul_drv/ul_drv/ul_linux.c:73:1: error: invalid initializer 
/home/tomas/hairc/ulan-build/host/ul_drv/ul_drv/ul_linux.c:73:1: error: expected ‘,’ or ‘;’ before string constant 

これはエラーでは、ラインの多くについても同様です。コードがあります:

#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)) 
module_param_array(chip, charp, &chip_specified, 0); //this is line 73 
module_param_array(my_adr, int, &my_adr_specified, 0); 
module_param_array(baud, int, &baud_specified, 0); 
module_param_array(irq, int, &irq_specified, 0); 
module_param_array(port, int, &port_specified, 0); 
module_param_array(baudbase, int, &baudbase_specified, 0); 
#if defined(UL_WITH_PCI) || defined(UL_WITH_USB) 
module_param_array(slot, charp, &slot_specified, 0); 
#endif 
module_param(debug, int, 0); 
module_param(ul_usb_msg_inpr, int, 0); 
module_param(ulbuffer, int, 0); 

古いバージョンのカーネルでは、正常に実行されます(今は2.6.38を持っています)。 誰がどこに問題があるか知っていますか? それは私に多くの助けになります。 ありがとう

+0

uLanドライバをどのようにコンパイルしようとしていますか?カーネルモジュールをコンパイルするために、すべてのビルド依存関係がインストールされていますか? (適切なカーネルヘッダを含む?) – sarnold

答えて

1

GITリポジトリから実際に更新されたバージョンは2.6.38で正常にテストされました。 2.6.39 upと3.0 Linuxカーネルバージョンでのビルドには、まだいくつかのアップデートが必要です。

ところで、なぜプロジェクト開発者と(http://sourceforge.net/projects/ulan/フォーラムと電子メール)通信するために標準チャンネルを使用しないのですか?