apmsleep.c: At top level: apmsleep.c:64: warning: `rcsid' defined but not used make: *** [apmsleep.o] Error 1 rm apm.o apmd.o !!! ERROR: The ebuild did not complete successfully. !!! Function src_compile, Line 2, Exitcode 2 !!! compile problem I and Gen2KungFoo from openprojects.net #gentoo tracked this down to looking in the headers of /usr/src/linux instead of /usr/headers .. I believe it was.. needless to say apmd will NOT compile with 2.4.19 currently.
in a few minutes, do an emerge rsync, then an "emerge --update system". You should get a new linux-headers installed (2.4.19) that should fix this compile problem.
I'm still getting this error, even after an emerge --update system.
*** Bug 1549 has been marked as a duplicate of this bug. ***
I tried to muddle through this one... after posting to the apmd mailing list I got this response from Thomas Hood: >>On Wed, 2002-05-01 at 01:20, Sherman Boyd wrote: >> I get these errors while compiling apmd: >You should not be compiling against the kernel headers. >You aren't compiling a kernel module.
Jonathan White gave me the following advice: -------------- Change the following in apmsleep.c: #include <asm/spinlock.h> to #include <linux/spinlock.h> -------------- It seems to be pretty good advice as I was able to get apmd compiled and installed. I don't have the skillz to fix the ebuild though. The people from the apmd mailing list seem to think we should have this asm dir and not even be compiling against the kernel headers.
OK, fixed in the latest apmd ebuild 3.0.2-r2; thanks meekrob :)