Subject: Re: Compile failure on libc/gen/__fts13.c
To: Jason Thorpe <thorpej@nas.nasa.gov>
From: SUNAGAWA Keiki <kei_sun@ba2.so-net.or.jp>
List: netbsd-bugs
Date: 11/11/1997 09:41:28
Jason Thorpe <thorpej@nas.nasa.gov> wrote:

Jason> What platform are you building on, first of
Jason> all... also, please tell me the revision numbers of
Jason> the files that have errors, and also of your

Jason> 	sys/sys/cdefs.h sys/arch/.../include/cdefs.h

Oh, sorry for lack of info.  I use a mac68k, and I put
the source tree into /current.

% uname -a
NetBSD localhost 1.3_ALPHA NetBSD 1.3_ALPHA (GENERICSBC) #47: Sat Nov  1 13:11:41 PST 1997     allen@c610:/usr/src/sys/arch/mac68k/compile/GENERICSBC mac68k
% cd /current/src/lib/libc
% make >& log
% cat log
cc -O  -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith  -DNLS -DYP -DLIBC_SCCS -DSYSLIBC_SCCS -D_REENTRANT -I/current/src/lib/libc/include -D__DBINTERFACE_PRIVATE -DPOSIX_MISTAKE -DFLOATING_POINT -c /current/src/lib/libc/gen/__fts13.c
In file included from /current/src/lib/libc/gen/__fts13.c:52:
/usr/include/fts.h:138: syntax error before `__fts_children13'
/usr/include/fts.h:139: syntax error before `__fts_close13'
/usr/include/fts.h:142: syntax error before `__fts_open13'
/usr/include/fts.h:143: syntax error before `__fts_read13'
/usr/include/fts.h:144: syntax error before `__fts_set13'
cc1: warnings being treated as errors
/current/src/lib/libc/gen/__fts13.c:106: warning: function declaration isn't a prototype
/current/src/lib/libc/gen/__fts13.c:240: warning: function declaration isn't a prototype
/current/src/lib/libc/gen/__fts13.c:293: warning: function declaration isn't a prototype
/current/src/lib/libc/gen/__fts13.c:485: warning: function declaration isn't a prototype
/current/src/lib/libc/gen/__fts13.c:500: warning: function declaration isn't a prototype
*** Error code 1

Stop.
% head -n 1 gen/__fts13.c /usr/include/fts.h /current/src/include/fts.h
==> gen/__fts13.c <==
/*      $NetBSD: __fts13.c,v 1.1.2.1 1997/10/22 06:41:23 thorpej Exp $  */

==> /usr/include/fts.h <==
/*      $NetBSD: fts.h,v 1.6.2.2 1997/11/04 23:38:31 thorpej Exp $      */

==> /current/src/include/fts.h <==
/*      $NetBSD: fts.h,v 1.6.2.2 1997/11/04 23:38:31 thorpej Exp $      */
% head -n 1 /sys/sys/cdefs.h /sys/arch/mac68k/include/cdefs.h
==> /sys/sys/cdefs.h <==
/*      $NetBSD: cdefs.h,v 1.18.8.4 1997/11/05 00:52:01 thorpej Exp $   */

==> /sys/arch/mac68k/include/cdefs.h <==
/*      $NetBSD: cdefs.h,v 1.2 1996/05/05 06:17:34 briggs Exp $ */

--
SUNAGAWA Keiki <kei_sun@ba2.so-net.or.jp>