Subject: Re: 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/19/2003 10:10:33
On Tue, Jun 17, 2003 at 04:46:24PM +0200, Micha¾«¥Í Pasternak wrote:
> henry nelson [Tue, Jun 17, 2003 at 08:54:45PM +0900]:
> > 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
[...]
> > 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
    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

> > cc1: warnings being treated as errors
>   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Try to remove -Werror from the above line and recompile. Maybe it will work.

I appreciate the reply a lot, but...

I guess what I really wanted was a pointer to what function or definition
in what header file might result in generating that error.  If it's just a
matter of changing some integer to a string or some short to a long, I'd
much prefer to doing that than possibly generating slightly inferior code.

-- 
henry nelson