sm-grimoire-bugs AT lists.ibiblio.org
Subject: SourceMage Grimoire Bug List
List archive
[SM-Grimoire-Bugs] [Bug 10664] New: acpid problem with gcc 4.0
- From: bugzilla-daemon AT bugs.sourcemage.org
- To: sm-grimoire-bugs AT lists.ibiblio.org
- Subject: [SM-Grimoire-Bugs] [Bug 10664] New: acpid problem with gcc 4.0
- Date: 8 Mar 2006 04:04:30 -0000
http://bugs.sourcemage.org/show_bug.cgi?id=10664
Summary: acpid problem with gcc 4.0
Product: Codex
Version: test grimoire
Platform: Other
OS/Version: other
Status: NEW
Severity: normal
Priority: P2
Component: utils
AssignedTo: sm-grimoire-bugs AT lists.ibiblio.org
ReportedBy: johnh AT kuberaconsulting.com
acpid won't compile on my box with gcc 4.0 and gives the following error:
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
! Problem Detected !
make: *** [ud_socket.o] Error 1
The following patch was on the debian site to cure precisely the error I had
above. I don't know how to apply such a patch, so I'll leave it here:
diff -urN ../tmp-orig/acpid-1.0.4/ud_socket.c ./ud_socket.c
--- ../tmp-orig/acpid-1.0.4/ud_socket.c 2003-11-17 22:24:58.000000000 +0100
+++ ./ud_socket.c 2005-06-20 14:14:06.000000000 +0200
@@ -58,7 +58,7 @@
while (1) {
int newsock = 0;
struct sockaddr_un cliaddr;
- int len = sizeof(struct sockaddr_un);
+ socklen_t len = sizeof(struct sockaddr_un);
newsock = accept(listenfd, (struct sockaddr *)&cliaddr, &len);
if (newsock < 0) {
The other choice might be to make the spell depend on gcc34
Thanks,
John
--
Configure bugmail: http://bugs.sourcemage.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
- [SM-Grimoire-Bugs] [Bug 10664] New: acpid problem with gcc 4.0, bugzilla-daemon, 03/07/2006
Archive powered by MHonArc 2.6.24.