LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 04-12-2007, 07:36 AM   #1
mmp_3341
LQ Newbie
 
Registered: Apr 2007
Posts: 4

Rep: Reputation: 0
Question 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
 
Old 04-12-2007, 08:28 AM   #2
mmp_3341
LQ Newbie
 
Registered: Apr 2007
Posts: 4

Original Poster
Rep: Reputation: 0
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Modules & custom kernels adrianlarsson Linux - Newbie 2 01-17-2007 02:03 PM
kernel-headers and custom compiled kernels jaakkop Slackware 2 11-22-2005 12:21 PM
custom kernels... Why so hard? mm0204 Linux - Newbie 2 06-08-2005 05:09 AM
RH 8 kernels and their relation to 'stock' kernels psweetma Linux - Distributions 1 03-29-2003 11:46 PM
Red Hat Update Agent for kernel updates and custom kernels SparceMatrix Linux - General 5 09-03-2002 05:58 PM


All times are GMT -5. The time now is 11:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration