Package: honeyd
Severity: normal
Tags: patch
When building 'honeyd' on amd64 with gcc-4.0,
I get the following error:
x86_64-linux-gcc -DHAVE_CONFIG_H -I. -I. -I. -I./compat/libdumbnet -I./compat
-I/usr/include -I/usr/include -I/usr/include -O2 -Wall -g
-DPATH_HONEYDINCLUDE="\"/usr/include/honeyd\""
-DPATH_HONEYDDATA="\"/usr/share/honeyd\""
-DPATH_HONEYDLIB="\"/usr/lib/honeyd\"" -DHONEYD_PLUGINS_DECLARE=""
-DHONEYD_PLUGINS="" -DPATH_RRDTOOL="\"\"" -c dhcpclient.c
dhcpclient.c: In function '_dhcp_reply':
dhcpclient.c:308: warning: comparison is always false due to limited range of
data type
dhcpclient.c: In function '_bcast':
dhcpclient.c:475: error: invalid lvalue in assignment
dhcpclient.c: In function '_unicast':
dhcpclient.c:527: error: invalid lvalue in assignment
make[1]: *** [dhcpclient.o] Error 1
make[1]: Leaving directory `/honeyd-1.0'
make: *** [build-stamp] Error 2
With the attached patch 'honeyd' can be compiled
on amd64 using gcc-4.0.
Regards
Andreas Jochens
diff -urN ../tmp-orig/honeyd-1.0/dhcpclient.c ./dhcpclient.c
--- ../tmp-orig/honeyd-1.0/dhcpclient.c 2005-01-31 21:07:55.663048476 +0100
+++ ./dhcpclient.c 2005-01-31 21:07:37.221375316 +0100
@@ -472,7 +472,7 @@
memset(buf, 0, sizeof(buf));
- eth = (struct eth_hdr *)p = buf;
+ p = buf; eth = (struct eth_hdr *)p;
eth_pack_hdr(eth, ETH_ADDR_BROADCAST, req->ea, ETH_TYPE_IP);
restlen -= ETH_HDR_LEN;
@@ -524,7 +524,7 @@
memset(buf, 0, sizeof(buf));
- eth = (struct eth_hdr *)p = buf;
+ p = buf; eth = (struct eth_hdr *)p;
eth_pack_hdr(eth, req->server_ea, req->ea, ETH_TYPE_IP);
restlen -= ETH_HDR_LEN;
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]