Rongfeng Tang wrote:>Hi all, > > I''ve get the kernel linux-2.4.20-for-lustre-1.0.4-clean, and wanted to compile it, >but the make dep gave below error messages: >make[1]: Entering directory /linux-2.4.20-for-lustre-1.0.4-clean/arch/x86_64/tools'' > >[..]>/linux-2.4.20-for-lustre-1.0.4-clean/include/linux/ptrace.h: In function `ptrace_link'': >/linux-2.4.20-for-lustre-1.0.4-clean/include/linux/ptrace.h:67: dereferencing pointer to incomplete type >/linux-2.4.20-for-lustre-1.0.4-clean/include/linux/ptrace.h: In function `ptrace_unlink'': >/linux-2.4.20-for-lustre-1.0.4-clean/include/linux/ptrace.h:72: dereferencing pointer to incomplete type >In file included from offset.c:9: >/linux-2.4.20-for-lustre-1.0.4-clean/include/linux/sched.h: At top level: >/linux-2.4.20-for-lustre-1.0.4-clean/include/linux/sched.h:570: parse error before ''*'' token > >Anyone know what the reason of it ? > >thanks > >Hello, The 2.4.20 kernel does not compile with e.g. gcc 3.3. These are mostley string over two lines errors. It is possible to fix this, I have done it. Maybe 20 occurences or so.(depending on your .config) regards, Martin
Hi all, I''ve get the kernel linux-2.4.20-for-lustre-1.0.4-clean, and wanted to compile it, but the make dep gave below error messages: make[1]: Entering directory /linux-2.4.20-for-lustre-1.0.4-clean/arch/x86_64/tools'' make[1]: Nothing to be done for `all''. make[1]: Leaving directory `/linux-2.4.20-for-lustre-1.0.4-clean/arch/x86_64/tools'' make[1]: Entering directory /linux-2.4.20-for-lustre-1.0.4-clean/arch/x86_64/boot'' make[1]: Nothing to be done for `dep''. make[1]: Leaving directory `/linux-2.4.20-for-lustre-1.0.4-clean/arch/x86_64/boot'' scripts/mkdep -- init/*.c > .depend scripts/mkdep -- `find /linux-2.4.20-for-lustre-1.0.4-clean/include/asm /linux-2.4.20-for-lustre-1.0.4-clean/include/linux /linux-2.4.20-for-lustre-1.0.4-clean/include/scsi /linux-2.4.20-for-lustre-1.0.4-clean/include/net /linux-2.4.20-for-lustre-1.0.4-clean/include/math-emu \( -name SCCS -o -name .svn \) -prune -o -follow -name \*.h ! -name modversions.h -print` > .hdepend make _sfdep_arch/x86_64/tools _sfdep_kernel _sfdep_drivers _sfdep_mm _sfdep_fs _sfdep_net _sfdep_ipc _sfdep_lib _sfdep_crypto _sfdep_arch/x86_64/kernel _sfdep_arch/x86_64/mm _sfdep_arch/x86_64/lib _sfdep_arch/x86_64/ia32 _FASTDEP_ALL_SUB_DIRS="arch/x86_64/tools kernel drivers mm fs net ipc lib crypto arch/x86_64/kernel arch/x86_64/mm arch/x86_64/lib arch/x86_64/ia32" make[1]: Entering directory `/linux-2.4.20-for-lustre-1.0.4-clean'' make -C arch/x86_64/tools fastdep make[2]: Entering directory `/linux-2.4.20-for-lustre-1.0.4-clean/arch/x86_64/tools'' gcc -D__KERNEL__ -I/linux-2.4.20-for-lustre-1.0.4-clean/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -mno-red-zone -mcmodel=kernel -pipe -fno-reorder-blocks -finline-limit=2000 -fno-strength-reduce -S -o offset.tmp offset.c In file included from /linux-2.4.20-for-lustre-1.0.4-clean/include/asm/smp.h:10, from /linux-2.4.20-for-lustre-1.0.4-clean/include/linux/smp.h:14, from /linux-2.4.20-for-lustre-1.0.4-clean/include/linux/sched.h:26, from offset.c:9: /linux-2.4.20-for-lustre-1.0.4-clean/include/linux/ptrace.h: In function `ptrace_link'': /linux-2.4.20-for-lustre-1.0.4-clean/include/linux/ptrace.h:67: dereferencing pointer to incomplete type /linux-2.4.20-for-lustre-1.0.4-clean/include/linux/ptrace.h: In function `ptrace_unlink'': /linux-2.4.20-for-lustre-1.0.4-clean/include/linux/ptrace.h:72: dereferencing pointer to incomplete type In file included from offset.c:9: /linux-2.4.20-for-lustre-1.0.4-clean/include/linux/sched.h: At top level: /linux-2.4.20-for-lustre-1.0.4-clean/include/linux/sched.h:570: parse error before ''*'' token Anyone know what the reason of it ? thanks suoxi