Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 229633 - acpid-1.0.4-r5 does not compile with gcc-4.3.1 on amd64
Summary: acpid-1.0.4-r5 does not compile with gcc-4.3.1 on amd64
Status: RESOLVED DUPLICATE of bug 225417
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-26 18:58 UTC by JoeSixpack
Modified: 2008-06-26 21:39 UTC (History)
0 users

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


Attachments
diff of ud_socket.h and my version (ud_socket.h.diff,59 bytes, patch)
2008-06-26 19:00 UTC, JoeSixpack
Details | Diff
diff of ud_socket.c and my version (ud_socket.c.diff,159 bytes, patch)
2008-06-26 19:00 UTC, JoeSixpack
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description JoeSixpack 2008-06-26 18:58:58 UTC
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.
Comment 1 JoeSixpack 2008-06-26 19:00:25 UTC
Created attachment 158539 [details, diff]
diff of ud_socket.h and my version
Comment 2 JoeSixpack 2008-06-26 19:00:58 UTC
Created attachment 158541 [details, diff]
diff of ud_socket.c and my version
Comment 3 Rafał Mużyło 2008-06-26 20:23:09 UTC
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.
Comment 4 Rafał Mużyło 2008-06-26 20:24:28 UTC
What I'm trying to say is: gcc 4.3 doesn't matter here.
Comment 5 Carsten Lohrke (RETIRED) gentoo-dev 2008-06-26 21:39:02 UTC
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 ***