[PlanetCCRMA] Odd errors compiling modules in
2.4.24-1.ll.rh90.ccrma
Fernando Lopez-Lezcano
nando@ccrma.Stanford.EDU
Sun Dec 18 17:46:01 2005
On Sun, 2005-12-18 at 13:17 -0800, Eric Weaver wrote:
> I've been trying to get later versions of ALSA and AudioScience's HPI
> drivers onto my 2.4.24-LL kernel, and compiling them (even doing "make
> modules" against the configured source has resulted in some odd errors
> in the include files.
>
> For example, in "make modules" it gets to drivers/net/dummy.c and does:
>
> In file included from
> /usr/src/linux-2.4.24-1.ll.rh90.ccrma/include/linux/spinlock.h:57,
> from
> /usr/src/linux-2.4.24-1.ll.rh90.ccrma/include/linux/module.h:11,
> from dummy.c:32:
> /usr/src/linux-2.4.24-1.ll.rh90.ccrma/include/asm/spinlock.h:9: invalid
> suffix on integer constant
> /usr/src/linux-2.4.24-1.ll.rh90.ccrma/include/asm/spinlock.h:9: parse
> error before numeric constant
> /usr/src/linux-2.4.24-1.ll.rh90.ccrma/include/asm/spinlock.h:10:
> `printk_R_ver_str' declared as function returning a function
> /usr/src/linux-2.4.24-1.ll.rh90.ccrma/include/asm/spinlock.h:10:
> warning: function declaration isn't a prototype
>
>
> Is there some configuration I have failed to do? This machine is
> currently running on that kernel and modules.
To get a "ready to build and patched" kernel source tree you need to
start with the .src.rpm (not the kernel-source "binary" rpm). You need
to get it, then install it ("rpm -Uvh kernel-*.src.rpm"), that will
leave a spec file in /usr/src/redhat/SPECS and all sources
in /usr/src/redhat/SOURCES. You now need to "cd /usr/src/redhat/SPECS/"
and do a "rpmbuild -bp kernel-*.spec". The "-bp" option stops the build
process right after the sources are unpacked and patched. The resulting
tree will be in /usr/src/redhat/BUILD/kernel-*/linux-*. The kernel
configuration files that are using in the remainder of the build are in
the "build/" directory there.
-- Fernando