Subject: dhcp-3.0pl2, fatal compile errors on NetBSD 1.5.3/sparc
To: None <netbsd-help@netbsd.org>
From: henry nelson <netb@irm.nara.kindai.ac.jp>
List: netbsd-help
Date: 06/17/2003 20:54:45
I can't seem to get the latest dhcpd from ISC, "dhcp-3.0pl2", to compile on
NetBSD 1.5.3/sparc.  Anyone done this and know the workaround?  The dhcpd
people say it's "a bug in the NetBSD header."  Unfortunately due to various
hardware restrictions I cannot upgrade to 1.6.1 as they recommend, nor can
I install pkgsrc.  Thanks for any help.

henry nelson

o Error message from the compiler (native "egcs-1.1.2 release") below.

cc -g  -I/usr/local/wrk/dhcp-3.0pl2  -I/usr/local/wrk/dhcp-3.0pl2/includes
-Wall -Wstrict-prototypes -Wno-unused -Wno-comment -Wno-uninitialized -Werror
-Wimplicit-function-declaration -Wpointer-arith -Wcast-qual -Wcast-align
-Wwrite-strings -Wconversion -Wmissing-prototypes -Wmissing-declarations
-Wnested-externs -pipe -c icmp.c
cc1: warnings being treated as errors
icmp.c: In function `icmp_echoreply':
icmp.c:253: warning: cast increases required alignment of target type
icmp.c:262: warning: cast increases required alignment of target type
icmp.c: In function `trace_icmp_input_input':
icmp.c:296: warning: cast increases required alignment of target type
icmp.c: In function `trace_icmp_output_input':
icmp.c:318: warning: cast increases required alignment of target type
*** Error code 1

Stop.