I received the following error when trying to emerge apmd-3.2.2_p5 with this command.
emerge -au apmd

******** begin Error message **************
make: *** [libapm.la] Error 1
make: *** Waiting for unfinished jobs....
rm apm.o

!!! ERROR: sys-apps/apmd-3.2.2_p5 failed.
!!! Function src_compile, Line 56, Exitcode 2
!!! emake failed
!!! If you need support, post the topmost build error, NOT this status message.
******** end Error message ********************************************

I am running this on a Dell PowerEdge 800
The kernel is 2.6

Ron