From kieber@sax.sax.de  Mon Aug 21 18:17:07 1995
Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11])
          by freefall.FreeBSD.org (8.6.11/8.6.6) with SMTP id SAA23378
          for <FreeBSD-gnats-submit@freebsd.org>; Mon, 21 Aug 1995 18:17:05 -0700
Received: from sax.sax.de by irz301.inf.tu-dresden.de with SMTP
	(5.67b+/DEC-Ultrix/4.3) id AA20975; Tue, 22 Aug 1995 03:17:02 +0200
Received: by sax.sax.de (8.6.11/8.6.12-s1)
	id DAA01394; Tue, 22 Aug 1995 03:17:01 +0200
Message-Id: <199508220117.DAA01394@sax.sax.de>
Date: Tue, 22 Aug 1995 03:17:01 +0200
From: kieber@sax.sax.de
Reply-To: kieber@sax.sax.de
To: FreeBSD-gnats-submit@freebsd.org
Subject: redundant redeclaration of `inet_ntoa'
X-Send-Pr-Version: 3.2

>Number:         704
>Category:       kern
>Synopsis:       redundant redeclaration of `inet_ntoa'
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Aug 21 18:20:02 PDT 1995
>Closed-Date:    Sun Aug 27 16:14:19 MET DST 1995
>Last-Modified:  Sun Aug 27 16:14:56 MET DST 1995
>Originator:     Ulf Kieber
>Release:        FreeBSD 2.0-BUILT-19950603 i386
>Organization:
SaxNet e. V.
>Environment:

FreeBSD sax.sax.de 2.0.5-RELEASE FreeBSD 2.0.5-RELEASE #1: Mon Aug 14 21:18:11 MET DST 1995     root@sax.sax.de:/usr/src/sys/compile/SAX  i386

>Description:

During kernel compile:

cc -c -O -pipe -W -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit -nostdinc -I. -I../.. -I../../sys -I/usr/include -DSAX -DI486_CPU -DFAT_CURSOR -DPCVT_VT220KEYB -DMONO_KERNEL_FG=FG_LIGHTGREY -DPCVT_FREEBSD=210 -DQUOTA -DIPACCT -DCOMCONSOLE -DGATEWAY -DSYSVMSG -DSYSVSEM -DSYSVSHM -DDUMMY_NOPS -DAUTO_EOI_2 -DAUTO_EOI_1 -DBOUNCE_BUFFERS -DSCSI_REPORT_GEOMETRY -DP2P_LOCALADDR_SHARE -DCOMPAT_43 -DPROCFS -DCD9660 -DNFS -DFFS -DINET -DKERNEL -Di386 -DLOAD_ADDRESS=0xF0100000  ../../netinet/ip_fw.c
In file included from ../../netinet/ip_fw.c:41:
/usr/include/arpa/inet.h:50: warning: redundant redeclaration of `inet_ntoa' in same scope
../../netinet/in.h:257: warning: previous declaration of `inet_ntoa'

>How-To-Repeat:

In your kernel config file

options		IPACCT

then

cd /sys/i386/conf
config <name>
cd ../../compile/<name>
make depend
make

>Fix:
	
Lift the dependency of /sys/netinet/ip_fw.c in
/usr/include/arpa/inet.h:

*** ip_fw.c.orig	Tue May 30 10:09:38 1995
--- ip_fw.c	Tue Aug 22 03:13:28 1995
***************
*** 38,45 ****
  #include <netinet/udp.h>
  #include <netinet/ip_icmp.h>
  
- #include <arpa/inet.h>
- 
  #include <netinet/ip_fw.h>
  
  #ifdef IPFIREWALL_DEBUG
--- 38,43 ----
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: joerg 
State-Changed-When: Sun Aug 27 16:14:19 MET DST 1995 
State-Changed-Why:  
This had already been fixed in: 
revision 1.17 
date: 1995/07/04 03:35:20;  author: davidg;  state: Exp;  lines: +25 -46 
1) Removed bogus #include 

>Unformatted:
 
