Subject: bin/671: named/ns_main.c doesn't compile
To: None <gnats-admin@NetBSD.ORG>
From: Daniel Carosone <dan@anarres.mame.mu.oz.au>
List: netbsd-bugs
Date: 01/01/1995 16:05:06
>Number: 671
>Category: bin
>Synopsis: named doesn't compile
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: bin-bug-people (Utility Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Jan 1 16:05:03 1995
>Originator: Daniel Carosone
>Organization:
Bozo Software Foundation
>Release: today
>Environment:
System: NetBSD anarres 1.0A NetBSD 1.0A (_anarres_) #2: Sat Dec 31 18:02:51 EST 1994 dan@blah:/amd/oi/lfs/f/l/NetBSD/src/sys/arch/i386/compile/_anarres_ i386
>Description:
cc -O -DDEBUG -DSTATS -c /amd/oi/lfs/f/l/NetBSD/src/usr.sbin/named/ns_main.c
/amd/oi/fs/f/l/NetBSD/src/usr.sbin/named/ns_main.c: In function `opensocket':
/amd/oi/fs/f/l/NetBSD/src/usr.sbin/named/ns_main.c:990: `nfds' undeclared (first use this function)
/amd/oi/fs/f/l/NetBSD/src/usr.sbin/named/ns_main.c:990: (Each undeclared identifier is reported only once
/amd/oi/fs/f/l/NetBSD/src/usr.sbin/named/ns_main.c:990: for each function it appears in.)
*** Error code 1
>How-To-Repeat:
cd /usr/src/usr.sbin/named; make
>Fix:
move the definition of "int nfds;" in main() to file global scope
>Audit-Trail:
>Unformatted: