Subject: previous declaration of `catclose'
To: None <tuc@valhalla.stormking.com>
From: Gordon W. Ross <gwr@mc.com>
List: port-sun3
Date: 05/22/1995 10:01:40
> From: "Scott J. Ellentuch" <tuc@valhalla.stormking.com>
> Date: Sat, 20 May 1995 23:35:09 -0400 (EDT)

> Hi all,
> 
> 	Well, I'm trying to compile the Sun 3 kernel from scratch (Thats
> a story in and of itself) and I've run into a little problem :
> 
> # make
> ===> lib
> ===> csu
> ===> m68k
> ===> c++
> ===> libarch
> ===> libc
> cc -O -DNLS -DYP -DLIBC_SCCS -DSYSLIBC_SCCS -I/src/lib/libc/include -D__DBINTERFACE_PRIVATE -DPOSIX_MISTAKE -DFLOATING_POINT  -c /src/lib/libc/nls/catclose.c
> /src/lib/libc/nls/catclose.c:20: conflicting types for `catclose'
> /usr/include/nl_types.h:46: previous declaration of `catclose'
> *** Error code 1
> 
> I'm 'SUP' to the minute...... Where do I go from here?
> 
> 			Thanks, Scott

What is your build environment?  NetBSD?
You probably need to do this first:

cd src/include
make ; make install