LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (http://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   backward compatibility in kernels + custom kernels + more queries (http://www.linuxquestions.org/questions/linux-kernel-70/backward-compatibility-in-kernels-custom-kernels-more-queries-545405/)

mmp_3341 04-12-2007 06:36 AM

backward compatibility in kernels + custom kernels + more queries
 
hi,

the following site contains a project in linux which i wanna try out by compiling it into the kernel

http://www.cs.wisc.edu/~remzi/Classe...ianVenkat.html

the project has 6 files which are modified kernel files, hence it was necessary for me to find out the correct version of the kernel since the version used is not mentioned anywhere.the 6 files are:

buffer.c
exit.c
fork.c
sched.h
unistd.h
entry.S

now using diff command and the patch history at linuxhq.com and the lxr i finally zeroed on that the kernel version was 2.2.13.
i am however using fc-4 with an updated kernel of 2.6.17 and i want to compile this project and run it. however i seem to be getting errors at the make step:
Code:

make: *** [init/main.o] Error 1
now i have several questions:
*can i compile a 2.2.13 kernel on fc 4 with 2.6.17?
*can i have some kinda backward compatibility with any of the recent kernels to accommodate those 6 files?
*can someone tell me why i get that error?

thanks!

steve

mmp_3341 04-12-2007 07:28 AM

the complete error
 
here is the complete error after the make command.

i did not receive any errors after the make config and the make dep commands
Code:

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/kernels/2.2.13_baio_i686/include -Wall -Wstrict-prot otypes -O2 -fomit-frame-pointer -fno-strict-aliasing -D__SMP__ -pipe -fno-streng th-reduce -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=686  - c -o init/main.o init/main.c
`-m486' is deprecated. Use `-march=i486' or `-mtune=i486' instead.
init/main.c:1: warning: -malign-loops is obsolete, use -falign-loops
init/main.c:1: warning: -malign-jumps is obsolete, use -falign-jumps
init/main.c:1: warning: -malign-functions is obsolete, use -falign-functions
In file included from /usr/src/kernels/2.2.13_baio_i686/include/linux/fs.h:165,
                from /usr/src/kernels/2.2.13_baio_i686/include/linux/capability .h:13,
                from /usr/src/kernels/2.2.13_baio_i686/include/linux/binfmts.h: 5,
                from /usr/src/kernels/2.2.13_baio_i686/include/linux/sched.h:9,
                from /usr/src/kernels/2.2.13_baio_i686/include/linux/mm.h:4,
                from /usr/src/kernels/2.2.13_baio_i686/include/linux/slab.h:14,
                from /usr/src/kernels/2.2.13_baio_i686/include/linux/malloc.h:4 ,
                from /usr/src/kernels/2.2.13_baio_i686/include/linux/proc_fs.h: 5,
                from init/main.c:15:
/usr/src/kernels/2.2.13_baio_i686/include/asm/byteorder.h:14: warning: type qual ifiers ignored on function return type
/usr/src/kernels/2.2.13_baio_i686/include/asm/byteorder.h:28: warning: type qual ifiers ignored on function return type
In file included from /usr/src/kernels/2.2.13_baio_i686/include/linux/byteorder/ little_endian.h:11,
                from /usr/src/kernels/2.2.13_baio_i686/include/asm/byteorder.h: 45,
                from /usr/src/kernels/2.2.13_baio_i686/include/linux/fs.h:165,
                from /usr/src/kernels/2.2.13_baio_i686/include/linux/capability .h:13,
                from /usr/src/kernels/2.2.13_baio_i686/include/linux/binfmts.h: 5,
                from /usr/src/kernels/2.2.13_baio_i686/include/linux/sched.h:9,
                from /usr/src/kernels/2.2.13_baio_i686/include/linux/mm.h:4,
                from /usr/src/kernels/2.2.13_baio_i686/include/linux/slab.h:14,
                from /usr/src/kernels/2.2.13_baio_i686/include/linux/malloc.h:4 ,
                from /usr/src/kernels/2.2.13_baio_i686/include/linux/proc_fs.h: 5,
                from init/main.c:15:
/usr/src/kernels/2.2.13_baio_i686/include/linux/byteorder/swab.h:100: warning: t ype qualifiers ignored on function return type
/usr/src/kernels/2.2.13_baio_i686/include/linux/byteorder/swab.h:113: warning: t ype qualifiers ignored on function return type
/usr/src/kernels/2.2.13_baio_i686/include/linux/byteorder/swab.h:127: warning: t ype qualifiers ignored on function return type
In file included from /usr/src/kernels/2.2.13_baio_i686/include/linux/sched.h:21 ,
                from /usr/src/kernels/2.2.13_baio_i686/include/linux/mm.h:4,
                from /usr/src/kernels/2.2.13_baio_i686/include/linux/slab.h:14,
                from /usr/src/kernels/2.2.13_baio_i686/include/linux/malloc.h:4 ,
                from /usr/src/kernels/2.2.13_baio_i686/include/linux/proc_fs.h: 5,
                from init/main.c:15:
/usr/src/kernels/2.2.13_baio_i686/include/linux/smp.h:26: error: conflicting typ es for ‘smp_send_reschedule’
/usr/src/kernels/2.2.13_baio_i686/include/asm/smp.h:177: error: previous declara tion of ‘smp_send_reschedule’ was here
In file included from /usr/src/kernels/2.2.13_baio_i686/include/linux/string.h:3 7,
                from /usr/src/kernels/2.2.13_baio_i686/include/linux/signal.h:6 4,
                from /usr/src/kernels/2.2.13_baio_i686/include/linux/sched.h:24 ,
                from /usr/src/kernels/2.2.13_baio_i686/include/linux/mm.h:4,
                from /usr/src/kernels/2.2.13_baio_i686/include/linux/slab.h:14,
                from /usr/src/kernels/2.2.13_baio_i686/include/linux/malloc.h:4 ,
                from /usr/src/kernels/2.2.13_baio_i686/include/linux/proc_fs.h: 5,
                from init/main.c:15:
/usr/src/kernels/2.2.13_baio_i686/include/asm/string.h: In function ‘memscan’:
/usr/src/kernels/2.2.13_baio_i686/include/asm/string.h:476: error: missing termi nating " character
/usr/src/kernels/2.2.13_baio_i686/include/asm/string.h:477: error: syntax error before ‘repnz’
/usr/src/kernels/2.2.13_baio_i686/include/asm/string.h:478: error: ‘scasb’ undec lared (first use in this function)
/usr/src/kernels/2.2.13_baio_i686/include/asm/string.h:478: error: (Each undecla red identifier is reported only once
/usr/src/kernels/2.2.13_baio_i686/include/asm/string.h:478: error: for each func tion it appears in.)
In file included from /usr/src/kernels/2.2.13_baio_i686/include/linux/string.h:3 7,
                from /usr/src/kernels/2.2.13_baio_i686/include/linux/signal.h:6 4,
                from /usr/src/kernels/2.2.13_baio_i686/include/linux/sched.h:24 ,
                from /usr/src/kernels/2.2.13_baio_i686/include/linux/mm.h:4,
                from /usr/src/kernels/2.2.13_baio_i686/include/linux/slab.h:14,
                from /usr/src/kernels/2.2.13_baio_i686/include/linux/malloc.h:4 ,
                from /usr/src/kernels/2.2.13_baio_i686/include/linux/proc_fs.h: 5,
                from init/main.c:15:
/usr/src/kernels/2.2.13_baio_i686/include/asm/string.h:478:7: error: invalid suf fix "f" on integer constant
/usr/src/kernels/2.2.13_baio_i686/include/asm/string.h:480: error: missing termi nating " character
In file included from /usr/src/kernels/2.2.13_baio_i686/include/linux/sched.h:24 ,
                from /usr/src/kernels/2.2.13_baio_i686/include/linux/mm.h:4,
                from /usr/src/kernels/2.2.13_baio_i686/include/linux/slab.h:14,
                from /usr/src/kernels/2.2.13_baio_i686/include/linux/malloc.h:4 ,
                from /usr/src/kernels/2.2.13_baio_i686/include/linux/proc_fs.h: 5,
                from init/main.c:15:
/usr/src/kernels/2.2.13_baio_i686/include/linux/signal.h: In function ‘siginitse t’:
/usr/src/kernels/2.2.13_baio_i686/include/linux/signal.h:193: error: label at en d of compound statement
/usr/src/kernels/2.2.13_baio_i686/include/linux/signal.h: In function ‘siginitse tinv’:
/usr/src/kernels/2.2.13_baio_i686/include/linux/signal.h:205: error: label at en d of compound statement
In file included from /usr/src/kernels/2.2.13_baio_i686/include/linux/mm.h:4,
                from /usr/src/kernels/2.2.13_baio_i686/include/linux/slab.h:14,
                from /usr/src/kernels/2.2.13_baio_i686/include/linux/malloc.h:4 ,
                from /usr/src/kernels/2.2.13_baio_i686/include/linux/proc_fs.h: 5,
                from init/main.c:15:
/usr/src/kernels/2.2.13_baio_i686/include/linux/sched.h: At top level:
/usr/src/kernels/2.2.13_baio_i686/include/linux/sched.h:432: error: syntax error  before ‘void’
In file included from /usr/src/kernels/2.2.13_baio_i686/include/linux/unistd.h:9 ,
                from init/main.c:16:
/usr/src/kernels/2.2.13_baio_i686/include/asm/unistd.h:334: warning: conflicting  types for built-in function ‘_exit’
In file included from /usr/src/kernels/2.2.13_baio_i686/include/linux/blkdev.h:6 ,
                from /usr/src/kernels/2.2.13_baio_i686/include/linux/blk.h:4,
                from init/main.c:23:
/usr/src/kernels/2.2.13_baio_i686/include/linux/genhd.h: In function ‘ptype’:
/usr/src/kernels/2.2.13_baio_i686/include/linux/genhd.h:83: error: label at end of compound statement
In file included from init/main.c:27:
/usr/src/kernels/2.2.13_baio_i686/include/asm/bugs.h: In function ‘check_cx686_c puid’:
/usr/src/kernels/2.2.13_baio_i686/include/asm/bugs.h:297: warning: pointer targe ts in passing argument 5 of ‘cpuid’ differ in signedness
init/main.c:205:8: warning: extra tokens at end of #endif directive
init/main.c:209:8: warning: extra tokens at end of #endif directive
init/main.c:212:8: warning: extra tokens at end of #endif directive
init/main.c:215:8: warning: extra tokens at end of #endif directive
init/main.c:218:8: warning: extra tokens at end of #endif directive
init/main.c:221:8: warning: extra tokens at end of #endif directive
init/main.c:224:8: warning: extra tokens at end of #endif directive
init/main.c:227:8: warning: extra tokens at end of #endif directive
init/main.c:230:8: warning: extra tokens at end of #endif directive
init/main.c:233:8: warning: extra tokens at end of #endif directive
init/main.c:236:8: warning: extra tokens at end of #endif directive
init/main.c:239:8: warning: extra tokens at end of #endif directive
init/main.c:248:8: warning: extra tokens at end of #endif directive
init/main.c:766:8: warning: extra tokens at end of #endif directive
init/main.c:769:8: warning: extra tokens at end of #endif directive
init/main.c:772:8: warning: extra tokens at end of #endif directive
init/main.c:775:8: warning: extra tokens at end of #endif directive
init/main.c:778:8: warning: extra tokens at end of #endif directive
init/main.c:781:8: warning: extra tokens at end of #endif directive
init/main.c:784:8: warning: extra tokens at end of #endif directive
init/main.c:787:8: warning: extra tokens at end of #endif directive
init/main.c:790:8: warning: extra tokens at end of #endif directive
init/main.c:793:8: warning: extra tokens at end of #endif directive
init/main.c:796:8: warning: extra tokens at end of #endif directive
make: *** [init/main.o] Error 1

steve


All times are GMT -5. The time now is 07:41 AM.