[PlanetCCRMA] Failing to compile 2.4.20-4.ll.acpi source

Janina Sajka janina@rednote.net
Fri Apr 18 18:13:01 2003


I was very surprised that my attempted compile failed as below. How is this possible?

I have a clean install of RH9, the latest apt from freshrpms, and much of the good Planet binaries working. Yet, I want the better latencies, so I want to try this
kernel. For me, that means applying a patch most of the rest of you don't need because, unlike me, you're probably not blind and wouldn't need a screen reader to
replace your monitor.

The patching of Speakup was straight forward, as was make dep. But, make bzImage seems to fail immediately over a missing subdirectory,
/usr/src/linux/include/linux/acpi, which most certainly isn't there. Anyone have a notion?

Alternatively, I suppose I could try to patch Speakup plus the low latency code into a newer kernel--I have nothing to lose, really. What latency, scheduling, etc.
patches might I try?

Here's the failing make bzImage:

make bzImage
gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-4.ll.acpi/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe
-mpreferred-stack-boundary=2 -march=i686   -DKBUILD_BASENAME=main -c -o init/main.o init/main.c
In file included from init/main.c:40:
/usr/src/linux-2.4.20-4.ll.acpi/include/linux/acpi.h:34:23: acpi/acpi.h: No such file or directory
/usr/src/linux-2.4.20-4.ll.acpi/include/linux/acpi.h:35:27: acpi/acpi_bus.h: No such file or directory
In file included from init/main.c:40:
/usr/src/linux-2.4.20-4.ll.acpi/include/linux/acpi.h:81: field `header' has incomplete type
/usr/src/linux-2.4.20-4.ll.acpi/include/linux/acpi.h:88: field `header' has incomplete type
/usr/src/linux-2.4.20-4.ll.acpi/include/linux/acpi.h:95: field `header' has incomplete type
/usr/src/linux-2.4.20-4.ll.acpi/include/linux/acpi.h:104: field `header' has incomplete type
/usr/src/linux-2.4.20-4.ll.acpi/include/linux/acpi.h:226: field `header' has incomplete type
/usr/src/linux-2.4.20-4.ll.acpi/include/linux/acpi.h:240: field `header' has incomplete type
/usr/src/linux-2.4.20-4.ll.acpi/include/linux/acpi.h:294: field `header' has incomplete type
/usr/src/linux-2.4.20-4.ll.acpi/include/linux/acpi.h:302: field `header' has incomplete type
/usr/src/linux-2.4.20-4.ll.acpi/include/linux/acpi.h:311: field `header' has incomplete type
/usr/src/linux-2.4.20-4.ll.acpi/include/linux/acpi.h:312: field `ec_control' has incomplete type
/usr/src/linux-2.4.20-4.ll.acpi/include/linux/acpi.h:313: field `ec_data' has incomplete type
/usr/src/linux-2.4.20-4.ll.acpi/include/linux/acpi.h:376: field `id' has incomplete type
/usr/src/linux-2.4.20-4.ll.acpi/include/linux/acpi.h:379: parse error before "acpi_handle"
/usr/src/linux-2.4.20-4.ll.acpi/include/linux/acpi.h:379: warning: no semicolon at end of struct or union
/usr/src/linux-2.4.20-4.ll.acpi/include/linux/acpi.h:379: warning: no semicolon at end of struct or union
/usr/src/linux-2.4.20-4.ll.acpi/include/linux/acpi.h:380: warning: built-in function `index' declared as non-function
/usr/src/linux-2.4.20-4.ll.acpi/include/linux/acpi.h:381: parse error before '}' token
/usr/src/linux-2.4.20-4.ll.acpi/include/linux/acpi.h:381: warning: type defaults to `int' in declaration of `link'
/usr/src/linux-2.4.20-4.ll.acpi/include/linux/acpi.h:381: warning: data definition has no type or storage class
/usr/src/linux-2.4.20-4.ll.acpi/include/linux/acpi.h:383: parse error before '}' token
make: *** [init/main.o] Error 1
[root@toccata 

Martin Dupras writes:
> From: "Martin Dupras" <martin.dupras@uwe.ac.uk>
> 
>    Link: File-List
> 
>    Hi,
> 
>     
> 
>    I have upgraded my linux laptop about a week ago to redhat linux 9. It
>    worked fine but I never could manage to get ALSA working.
> 
>     
> 
>    I downgraded my kernel to the planet-ccrma 2.4.20-4.ll.acpi kernel, and
>    now things are pretty much all fine and groovy. But...
> 
>     
> 
>    I need to recompile a few things which need the kernel sources to be
>    there. I got the kernel-2.4.20-4.ll.acpi.src.rpm. I followed the
>    instructions on the planet-ccrma site but for some reason it will not
>    build.
> 
>     
> 
>    I tried rpmbuild -ba kernel-2.4.20-4.ll.acpi.src.rpm, and that goes on
>    compiling for maybe an hour, yet there are very many warnings (more than I
>    would expect from recompiling a kernel), and the rpmbuild exits with
>    errors, before creating an RPM or SRPM package. It does appear, however to
>    create sources in /usr/src/linux-2.4.20-4.ll.acpi.
> 
>     
> 
>    I also checked that /usr/src/linux-2.4 is a link to
>    /usr/src/linux-2.4.20-4.ll.acpi.
> 
>     
> 
>    Does anyone have any advice? I have a feeling that some things are left
>    over from 2.4.20-9 that I had with the RH9 install, yet I don't know where
>    to look for them, and what obsolete files if any I can safely delete.
> 
>     
> 
>    Thanks!
> 
>     
> 
>    - martin

-- 
	
				Janina Sajka, Director
				Technology Research and Development
				Governmental Relations Group
				American Foundation for the Blind (AFB)

Email: janina@afb.net		Phone: (202) 408-8175