Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 90333 - acpid-1.0.4-r1 build fails with gcc-4.0.0
Summary: acpid-1.0.4-r1 build fails with gcc-4.0.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Mobile Herd (OBSOLETE)
URL: https://sourceforge.net/tracker/index...
Whiteboard:
Keywords:
: 64844 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-04-24 23:02 UTC by Brant Gurganus
Modified: 2005-04-26 05:13 UTC (History)
2 users (show)

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


Attachments
Patch against acpid-1.0.4-r1.ebuild (acpid-1.0.4-r2.diff,581 bytes, patch)
2005-04-25 12:31 UTC, Henrik Brix Andersen
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Brant Gurganus 2005-04-24 23:02:50 UTC
It seems that the greater strictness of gcc-4.0.0 affects acpid-1.0.4-r1.  I filed an issue upstream at https://sourceforge.net/tracker/index.php?func=detail&aid=1189263&group_id=33140&atid=407341 as well.

Reproducible: Always
Steps to Reproduce:
1. Emerge acpid-1.0.4-r1 with gcc-4.0.0 selected as compiler.
Actual Results:  
cc -Wall -Werror -g -DVERSION="\"1.0.4\""   -c -o ud_socket.o ud_socket.c
cc1: warnings being treated as errors
ud_socket.c: In function 'ud_accept':
ud_socket.c:63: warning: pointer targets in passing argument 3 of 'accept'
differ in signedness
ud_socket.c:74: warning: pointer targets in passing argument 5 of 'getsockopt'
differ in signedness
make: *** [ud_socket.o] Error 1


Expected Results:  
Build completes.
Comment 1 Henrik Brix Andersen 2005-04-25 12:11:14 UTC
*** Bug 64844 has been marked as a duplicate of this bug. ***
Comment 2 Henrik Brix Andersen 2005-04-25 12:12:10 UTC
I'll take care of this.
Comment 3 Henrik Brix Andersen 2005-04-25 12:31:40 UTC
Created attachment 57213 [details, diff]
Patch against acpid-1.0.4-r1.ebuild

Please see if these changes to the ebuild solves the issue for you.
Comment 4 Brant Gurganus 2005-04-25 16:49:13 UTC
That patch allowed it to compile.
Comment 5 Henrik Brix Andersen 2005-04-26 05:13:45 UTC
Looks like azarah has already fixed this in CVS. In the future, please consult with the owner of the package first.