Subject: lib/33366: libpcap fails to pass lint
To: None <lib-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: moof <dogcow@babymeat.com>
List: netbsd-bugs
Date: 04/26/2006 01:55:01
>Number: 33366
>Category: lib
>Synopsis: libpcap fails to pass lint
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: lib-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Apr 26 01:55:01 +0000 2006
>Originator: moof
>Release: NetBSD 3.99.18
>Organization:
>Environment:
System: NetBSD shiny.babymeat.com 3.99.18 NetBSD 3.99.18 (SHINY) #10: Thu Apr 13 21:51:53 PDT 2006 dogcow@shiny.babymeat.com:/usr/obj/obj/usr/src/sys/arch/i386/compile/SHINY i386
Architecture: i386
Machine: i386
>Description:
With the move of libpcap's source from lib/libpcap to dist/libpcap,
libpcap no longer passes lint, and the userland build fails.
>How-To-Repeat:
rm -rf OBJDIR/lib/libpcap
cd /usr/src; ./build.sh release
[lots deleted]
# compile libpcap/gencode.ln
CC=/usr/obj//tools/bin/i386--netbsdelf-gcc /usr/obj//tools/bin/i386--netbsdelf-lint -chapbxzFS -d /usr/obj//dd/usr/include -I/usr/src/lib/libpcap -I. -I/usr/src/dist/libpcap -DYYBISON -DHAVE_CONFIG_H -D_U_="__attribute__((unused))" -DINET6 -i /usr/src/dist/libpcap/gencode.c
/usr/src/dist/libpcap/gencode.c(298): warning: conversion to 'unsigned int' due to prototype, arg #1 [259]
/usr/src/dist/libpcap/gencode.c(300): warning: conversion to 'unsigned int' due to prototype, arg #3 [259]
/usr/src/dist/libpcap/gencode.c(352): redeclaration of pcap_compile [27]
/usr/src/dist/libpcap/gencode.c(407): redeclaration of pcap_compile_nopcap [27]
[lots more deleted]
>Fix:
>Unformatted: