Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Aug 1995 03:17:01 +0200
From:      kieber@sax.sax.de
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   kern/704: redundant redeclaration of `inet_ntoa'
Message-ID:  <199508220117.DAA01394@sax.sax.de>
Resent-Message-ID: <199508220120.SAA23553@freefall.FreeBSD.org>

next in thread | raw e-mail | index | archive | help

>Number:         704
>Category:       kern
>Synopsis:       redundant redeclaration of `inet_ntoa'
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Aug 21 18:20:02 PDT 1995
>Last-Modified:
>Originator:     Ulf Kieber
>Organization:
SaxNet e. V.
>Release:        FreeBSD 2.0-BUILT-19950603 i386
>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 ----
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199508220117.DAA01394>