Subject: lib/18415: __byte_swap_word_variable -- with different width due to prototype
To: None <gnats-bugs@gnats.netbsd.org>
From: None <john@iastate.edu>
List: netbsd-bugs
Date: 09/25/2002 08:31:34
>Number: 18415
>Category: lib
>Synopsis: pgm w/htons gets error on __byte_swap_word_variable
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: lib-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Sep 25 06:32:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: John Hascall john@iastate.edu
>Release: NetBSD 1.6
>Organization:
Iowa State Universsity
>Environment:
System: NetBSD new-netreg-1.ait.iastate.edu 1.6 NetBSD 1.6 (GENERIC) #2: Sat Sep 7 15:28:11 CDT 2002 root@aurora.ait.iastate.edu:/usr/branch/obj/GENERIC i386
Architecture: i386
Machine: i386
>Description:
Compiling dhcp results in the following which Ted Lemon says is
a NetBSD bug:
# make
...
cc -g -I/usr/local/src/dhcp/dhcp-3.0.1rc9 \
-I/usr/local/src/dhcp/dhcp-3.0.1rc9/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 bpf.c
cc1: warnings being treated as errors
bpf.c: In function `if_register_receive':
bpf.c:323: warning: passing arg 1 of `__byte_swap_word_variable' \
with different width due to prototype
*** Error code 1
Stop.
>How-To-Repeat:
get dhcp-3.0.1rc9 from ftp.isc.org
unpack
./configure
make
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: