こんにちは、仲田です。いつもお世話になってます。 コンパイルが通らないのですが、何か間違っているのでしょうか。 # apt-get install kernel-headers kernel-source kernel-doc で、version 2.4.20-0vl20.2 のソース一式をいただきました。 # cd /usr/src/linux (← ちゃんと linux-2.4.20 を指しています) # patch<linux-2.4.21-pre5-xconfigfailure.patch can't find file to patch at input line 3 Perhaps you should have used the -p or --strip option? The text leading up to this was: -------------------------- |--- drivers/net/Config.in~ 2003-03-28 15:53:49.000000000 +0900 |+++ drivers/net/Config.in 2003-03-30 23:17:31.000000000 +0900 -------------------------- File to patch: drivers/net/Config.in (← 手で入力) patching file drivers/net/Config.in # make mrproper # make xconfig (← ここまでは通ります) # make bzImage gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/split-include scripts/split-include.c scripts/split-include include/linux/autoconf.h include/config gcc -D__KERNEL__ -I/usr/src/linux-2.4.20/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -DKBUILD_BASENAME=main -c -o init/main.o init/main.c In file included from init/main.c:41: /usr/src/linux-2.4.20/include/linux/acpi.h:34: acpi/acpi.h: ?????????????????????? /usr/src/linux-2.4.20/include/linux/acpi.h:35: acpi/acpi_bus.h: ?????????????????????? In file included from init/main.c:41: /usr/src/linux-2.4.20/include/linux/acpi.h:81: field `header' has incomplete type /usr/src/linux-2.4.20/include/linux/acpi.h:88: field `header' has incomplete type /usr/src/linux-2.4.20/include/linux/acpi.h:95: field `header' has incomplete type /usr/src/linux-2.4.20/include/linux/acpi.h:104: field `header' has incomplete type /usr/src/linux-2.4.20/include/linux/acpi.h:226: field `header' has incomplete type /usr/src/linux-2.4.20/include/linux/acpi.h:240: field `header' has incomplete type /usr/src/linux-2.4.20/include/linux/acpi.h:294: field `header' has incomplete type /usr/src/linux-2.4.20/include/linux/acpi.h:302: field `header' has incomplete type /usr/src/linux-2.4.20/include/linux/acpi.h:311: field `header' has incomplete type /usr/src/linux-2.4.20/include/linux/acpi.h:312: field `ec_control' has incomplete type /usr/src/linux-2.4.20/include/linux/acpi.h:313: field `ec_data' has incomplete type /usr/src/linux-2.4.20/include/linux/acpi.h:376: field `id' has incomplete type /usr/src/linux-2.4.20/include/linux/acpi.h:379: parse error before `acpi_handle' /usr/src/linux-2.4.20/include/linux/acpi.h:379: warning: no semicolon at end of struct or union /usr/src/linux-2.4.20/include/linux/acpi.h:379: warning: no semicolon at end of struct or union /usr/src/linux-2.4.20/include/linux/acpi.h:381: parse error before `}' /usr/src/linux-2.4.20/include/linux/acpi.h:381: warning: type defaults to `int' in declaration of `link' /usr/src/linux-2.4.20/include/linux/acpi.h:381: warning: data definition has no type or storage class /usr/src/linux-2.4.20/include/linux/acpi.h:383: parse error before `}' make: *** [init/main.o] エラー 1 という具合です。 radeonfb を組込みにしたいのと、i2c, hardware sensors のモジュールで いくつか必要なものがあるのでソースをいただいてます。 なお、Celeron/i815E という、今となってはすっかり枯れたハードウェアで、 「動きました」と報告してもあまり役に立たないかも知れませんが... 仲田比呂志 <hirotan@xxxxxxxxxxxxxxx>