emerging acpid-1.0.4-r5 fails due to a struct not getting defined even though the proper includes are present. I'm not sure why the error occurs, but somehow a #define __USE_GNU doesn't get set which causes struct ucred to never get defined. By inserting a #define __USE_GNU and rearranging the #includes, I managed to get 1.0.4-r5 to compile. However, I imagine that if the order of #includes matters then there is probably a mistake somewhere else. I don't know what the proper fix is, but these diffs show the changes to make to get it to compile. I have not thoroughly tested my modified version because I'm still in the middle of an emerge emptytree after upgrading to gcc-4.3.1. I should also mention why I care at all. I have found that 1.0.5 breaks all of my hibernation scripts/etc. on my laptop. I expect there may have been an interface change between 1.0.4 and 1.0.5 that I haven't read about yet. The proper fix for me is probably to port all my scripts to the new interface (assuming there has indeed been a change), but the workaround is to keep using 1.0.4 for now.
Created attachment 158539 [details, diff] diff of ud_socket.h and my version
Created attachment 158541 [details, diff] diff of ud_socket.c and my version
That's probably another glibc 2.8 issue, one of D_GNU_SOURCE kind. But the real question is if/when acpid upstream is planing moving away from /proc/acpi/event.
What I'm trying to say is: gcc 4.3 doesn't matter here.
Please use the latest version. gcc 4.3.1 / glibc 2.8 / libtool 2.2 is testing stuff, we do only fix the most recent ebuilds. *** This bug has been marked as a duplicate of bug 225417 ***