[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Freeipmi-users] make compile error on x86_64 opteron
From: |
Jan Tiri |
Subject: |
Re: [Freeipmi-users] make compile error on x86_64 opteron |
Date: |
Mon, 10 Jan 2005 09:50:33 +0100 (CET) |
User-agent: |
SquirrelMail/1.4.3a |
Wow, what a fast answer
> ,----[ "Jan Tiri" <address@hidden> ]
> | In file included from xmalloc.c:22:
> | xmalloc.h:77: error: conflicting types for 'error'
> | xmalloc.h:77: note: a parameter list with an ellipsis can't match an
> empty
> | parameter name list declaration
> | /usr/include/error.h:47: error: previous declaration of 'error' was here
> | xmalloc.h:77: error: conflicting types for 'error'
> | xmalloc.h:77: note: a parameter list with an ellipsis can't match an
> empty
> | parameter name list declaration
> | /usr/include/error.h:47: error: previous declaration of 'error' was here
> | make[3]: *** [xmalloc.o] Error 1
> | make[3]: Leaving directory `/tmp/freeipmi-0.1.3/fish/src'
> | make[2]: *** [all-recursive] Error 1
> | make[2]: Leaving directory `/tmp/freeipmi-0.1.3/fish'
> | make[1]: *** [all-recursive] Error 1
> | make[1]: Leaving directory `/tmp/freeipmi-0.1.3'
> | make: *** [all] Error 2
> `----
> Cut the patch in this email and save it in a file, say
> /tmp/freeipmi-0.1.3-errorh.diff and apply the patch like below.
>
> address@hidden:/tmp# cd freeipmi-0.1.3
> address@hidden:/tmp/freeipmi-0.1.3# patch -p1 < ../freeipmi-0.1.3-errorh.diff
Some patching failed, but I was able to apply the failed items myself
patching file fish/src/fi-commands.c
patching file fish/src/fi-utils.c
Hunk #3 FAILED at 338.
1 out of 3 hunks FAILED -- saving rejects to file fish/src/fi-utils.c.rej
patching file fish/src/fish.c
Hunk #2 FAILED at 170.
1 out of 2 hunks FAILED -- saving rejects to file fish/src/fish.c.rej
patching file fish/src/xmalloc.c
patching file fish/src/xmalloc.h
-*- fi-utils.c.rej -*-
***************
*** 336,346 ****
if (errno == EADDRINUSE)
continue;
else
- error (EXIT_FAILURE, errno, "open_free_udp_port [bind err]");
}
}
close (sockfd);
- error (EXIT_FAILURE, errno, "open_free_udp_port [no free port]");
// avoid compiler warning
return (-1);
}
--- 338,353 ----
if (errno == EADDRINUSE)
continue;
else
+ {
+ perror ("open_free_udp_port [bind error]");
+ exit (EXIT_FAILURE);
+ }
}
}
close (sockfd);
+ perror ("open_free_udp_port [bind error]");
+ exit (EXIT_FAILURE);
+
// avoid compiler warning
return (-1);
}
-*- fi-utils.c.rej -*-
-*- fish.c.rej -*-
***************
*** 171,183 ****
if (setsockopt(fi_sockfd, SOL_SOCKET, SO_RCVTIMEO,
&time, sizeof(time)) < 0)
- error(1, errno, "setsockopt (SO_RCVTIMEO)");
/*
time.tv_sec = fi_get_sock_timeout () / 1000;
time.tv_usec = (fi_get_sock_timeout () % 1000) * 1000;
if (setsockopt(fi_sockfd, SOL_SOCKET, SO_SNDTIMEO,
&time, sizeof(time)) < 0)
- error(1, errno, "setsockopt (SO_SNDTIMEO)");
*/
}
--- 170,188 ----
if (setsockopt(fi_sockfd, SOL_SOCKET, SO_RCVTIMEO,
&time, sizeof(time)) < 0)
+ {
+ perror ("setsockopt (SO_RCVTIMEO)");
+ exit (EXIT_FAILURE);
+ }
/*
time.tv_sec = fi_get_sock_timeout () / 1000;
time.tv_usec = (fi_get_sock_timeout () % 1000) * 1000;
if (setsockopt(fi_sockfd, SOL_SOCKET, SO_SNDTIMEO,
&time, sizeof(time)) < 0)
+ {
+ perror ("setsockopt (SO_RCVTIMEO)");
+ exit (EXIT_FAILURE);
+ }
*/
}
-*- fish.c.rej -*-
However, the compiling got now stuck at;
if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -Wall -I./../../libfreeipmi/src
-DFREEIPMI_BUILD -D_GNU_SOURCE -DPATH_CFG=\"/usr/local/etc\"
-DDATADIR=\"/usr/local/share\" -DWITH_LSD_FATAL_ERROR_FUNC=1
-DWITH_LSD_NOMEM_ERROR_FUNC=1 -g -O2 -MT ipmipower_output.o -MD -MP -MF
".deps/ipmipower_output.Tpo" \
-c -o ipmipower_output.o `test -f 'ipmipower_output.c' || echo
'./'`ipmipower_output.c; \
then mv -f ".deps/ipmipower_output.Tpo" ".deps/ipmipower_output.Po"; \
else rm -f ".deps/ipmipower_output.Tpo"; exit 1; \
fi
ipmipower_output.c:128: error: conflicting types for 'ipmipower_output_index'
ipmipower_output.h:45: error: previous declaration of
'ipmipower_output_index' was here
ipmipower_output.c:128: error: conflicting types for 'ipmipower_output_index'
ipmipower_output.h:45: error: previous declaration of
'ipmipower_output_index' was here
make[3]: *** [ipmipower_output.o] Error 1
make[3]: Leaving directory `/tmp/freeipmi-0.1.3/ipmipower/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/freeipmi-0.1.3/ipmipower'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/freeipmi-0.1.3'
make: *** [all] Error 2
Good luck !
Jan Tiri