[mythtv-users] Recompiling Redhat kernel

Paul Smith paullocal at pscs.co.uk
Tue Apr 15 07:01:55 UTC 2003


At 18:43 14/04/2003 -0700, you wrote:
>At 12:59 AM 4/15/2003 +0100, Paul Smith wrote:
>>I'm trying to recompile the RedHat 9.0 kernel (2.4.20-9) (to include the 
>>latest BTTV) and I'm having real problems running 'make modules'. It's 
>>coming up with millions of compiler errors (not just warnings).
>>
>>Has anyone any idea what could be wrong? Am I missing some headers/tools 
>>or something?
>>
>>(I seem to be able to compile the kernel itself no problem, but not the 
>>modules)
>
>We need a bit more of a description than you've provided.
>
>1. "millions" of compiler errors? Come on. Provide a few examples and a 
>more realistic estimate of how much more there is before the process exits.

The first few lines of my stderr output are:

make[1]: Circular /usr/src/linux-2.4.20-9/include/asm/smplock.h <- 
/usr/src/linux-2.4.20-9/include/linux/interrupt.h dependency dropped.
make[1]: Circular 
/usr/src/linux-2.4.20-9/include/linux/netfilter_ipv4/ip_conntrack.h <- 
/usr/src/linux-2.4.20-9/include/linux/netfilter_ipv4/ip_conntrack_helper.h 
dependency dropped.
In file included from paep.c:67:
/usr/src/linux-2.4.20-9/include/linux/kernel.h:60: invalid suffix on 
integer constant
/usr/src/linux-2.4.20-9/include/linux/kernel.h:60: parse error before 
numeric constant
/usr/src/linux-2.4.20-9/include/linux/kernel.h:60: warning: function 
declaration isn't a prototype
/usr/src/linux-2.4.20-9/include/linux/kernel.h:61: invalid suffix on 
integer constant
/usr/src/linux-2.4.20-9/include/linux/kernel.h:61: parse error before 
numeric constant
/usr/src/linux-2.4.20-9/include/linux/kernel.h:62: `panic_R_ver_str' 
declared as function returning a function
/usr/src/linux-2.4.20-9/include/linux/kernel.h:62: warning: function 
declaration isn't a prototype
/usr/src/linux-2.4.20-9/include/linux/kernel.h:68: parse error before 
numeric constant
/usr/src/linux-2.4.20-9/include/linux/kernel.h:68: 
`simple_strtoul_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.20-9/include/linux/kernel.h:68: warning: function 
declaration isn't a prototype
/usr/src/linux-2.4.20-9/include/linux/kernel.h:69: invalid suffix on 
integer constant
/usr/src/linux-2.4.20-9/include/linux/kernel.h:69: parse error before 
numeric constant
/usr/src/linux-2.4.20-9/include/linux/kernel.h:69: 
`simple_strtol_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.20-9/include/linux/kernel.h:69: warning: function 
declaration isn't a prototype
/usr/src/linux-2.4.20-9/include/linux/kernel.h:70: invalid suffix on 
integer constant
/usr/src/linux-2.4.20-9/include/linux/kernel.h:70: parse error before 
numeric constant
/usr/src/linux-2.4.20-9/include/linux/kernel.h:70: 
`simple_strtoull_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.20-9/include/linux/kernel.h:70: warning: function 
declaration isn't a prototype
/usr/src/linux-2.4.20-9/include/linux/kernel.h:72: invalid suffix on 
integer constant
/usr/src/linux-2.4.20-9/include/linux/kernel.h:72: parse error before 
numeric constant


There are 1510 lines in total

>2. Do all the errors relate to bttv, or are you now having problems 
>compiling other modules as well?

Nope - they're to do with everything else - I haven't installed the bttv 
patches yet - Since this is my first time at recompiling the kernel I'm 
trying to recompile the existing version and check I can do that first, 
before changing anything.

If I use the bttv 'tarball', then I get the same type of problems as well.

>3. How did you add in the source for the "latest BTTV"? Did you do it as a 
>patch to the kernel source? Where did you get it from?

See above.

>4. Am I correct in assuming that before you did whatever you did, "make 
>modules" worked properly, including compiling the older bttv module? (More 
>generally, you have compiled the kernel itself ("make bzImage", usually) 
>succesfully, right? So you've gone through the preliminary steps in 
>/usr/src/<kernel-name>/README?)

There's not much relevant in that README afaics.

The kernel itself compiles absolutely fine (and boots as far as saying that 
the modules don't match the kernel version). I've never got a 'make 
modules' to work properly.

I've been following the instructions on 
"http://en.tldp.org/HOWTO/Kernel-HOWTO-2.html"

Paul				VPOP3 - Internet Email Server/Gateway
support at pscs.co.uk			http://www.pscs.co.uk/




More information about the mythtv-users mailing list