2006年3月28日の日記の2番目の記事へのコメント
■gimp-2.2.10
入れようと思ったらmodules/controller_linux_input.c コンパイルするところでなんかエラーががが↓.あれーと思ったら2.2.9でも同じようなのが出ました.
In file included from controller_linux_input.c:31: /usr/include/linux/input.h:801: error: syntax error before "kernel_ulong_t" /usr/include/linux/input.h:805: error: syntax error before "evbit" /usr/include/linux/input.h:805: error: `BITS_PER_LONG' undeclared here (not in a function) /usr/include/linux/input.h:806: error: syntax error before "keybit" /usr/include/linux/input.h:806: error: `BITS_PER_LONG' undeclared here (not in a function) /usr/include/linux/input.h:807: error: syntax error before "relbit" /usr/include/linux/input.h:807: error: `BITS_PER_LONG' undeclared here (not in a function)
「kernel_ulong_t」ってどこで定義されてるのかなーとgrepしてみると /usr/include/linux/mod_devicetable.h で定義されてるようなんですが,周囲を見ると
#ifdef __KERNEL__ #include <linux/types.h> typedef unsigned long kernel_ulong_t; #endif
とかなってるし・・・.2.6.15.1だと /usr/include/linux/input.h には「kernel_ulong_t」なんて書いてなくて,普通に「unsigned long」って書いてあんですけど.「BITS_PER_LONG」の方もやっぱ未定義で,こっちは /usr/include/asm/types.h に書いてあるんですが,やっぱり「#ifdef __KERNEL__」の中にあったりしてどうしたもんか.とりあえずめんどくさいからcontroller_linux_input.cにベタ書きでいいや('A`).
しかしググってもそれらしいのが出てこないんですが,ひょっとして普通はまらないパターン?あー,/usr/include/linux を /usr/src/linux/include/linux のリンクにしないとかそんな話?って2.6.16.1出てるし!
2006年3月28日の日記の2番目の記事へのコメント
[コメントを書く]