Subject: lib/29970: 2.0 fails to compile without INET6 due to warnings
To: None <lib-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <abs@absd.org>
List: netbsd-bugs
Date: 04/14/2005 13:48:00
>Number: 29970
>Category: lib
>Synopsis: 2.0 fails to compile without INET6 due to warnings
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: lib-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Apr 14 13:48:00 +0000 2005
>Originator: David Brownlee
>Release: NetBSD 2.0_STABLE
>Organization:
>Environment:
System: NetBSD forsaken 2.0_STABLE NetBSD 2.0_STABLE (_ACPI_) #5: Sat Apr 9 01:24:38 BST 2005 root@tll.i.purplei.com:/var/obj/i386/files/netbsd/2/sys/arch/i386/compile/_ACPI_ i386
Architecture: i386
Machine: i386
>Description:
Set MKINET6=no in /etc/mk/conf and build NetBSD 2.0
res_send.c gives the following warnings:
/files/netbsd/2/lib/libc/net/res_send.c(267): warning: pointer casts may be troublesome [247]
/files/netbsd/2/lib/libc/net/res_send.c(413): warning: pointer casts may be troublesome [247]
and fails to compile due to:
#define get_nsaddr(n) ((struct sockaddr *)&_res.nsaddr_list[(n)])
>How-To-Repeat:
>Fix:
>Unformatted: