Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 1472 - APMD = Broke w/ kernel 2.4.19
Summary: APMD = Broke w/ kernel 2.4.19
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Daniel Robbins (RETIRED)
URL:
Whiteboard:
Keywords:
: 1549 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-04-02 09:30 UTC by Ryan Wehler
Modified: 2003-02-04 19:42 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Wehler 2002-04-02 09:30:07 UTC
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.
Comment 1 Daniel Robbins (RETIRED) gentoo-dev 2002-04-03 23:38:45 UTC
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.
Comment 2 Ryan Wehler 2002-04-21 15:21:14 UTC
I'm still getting this error, even after an emerge --update system.

Comment 3 Daniel Robbins (RETIRED) gentoo-dev 2002-04-21 16:14:11 UTC
*** Bug 1549 has been marked as a duplicate of this bug. ***
Comment 4 Sherman Boyd (meekrob) (RETIRED) gentoo-dev 2002-04-30 17:32:02 UTC
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.
Comment 5 Sherman Boyd (meekrob) (RETIRED) gentoo-dev 2002-05-03 11:53:41 UTC
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.
Comment 6 Daniel Robbins (RETIRED) gentoo-dev 2002-05-03 14:56:11 UTC
OK, fixed in the latest apmd ebuild 3.0.2-r2; thanks meekrob :)