From owner-freebsd-current Thu Dec 7 13:25:39 1995 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id NAA23193 for current-outgoing; Thu, 7 Dec 1995 13:25:39 -0800 (PST) Received: from hub.org (hub.org [199.166.238.138]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id NAA23132 for ; Thu, 7 Dec 1995 13:24:07 -0800 (PST) Received: (from scrappy@localhost) by hub.org (8.7.1/8.7.1) id QAA25520; Thu, 7 Dec 1995 16:23:02 -0500 (EST) Date: Thu, 7 Dec 1995 16:22:55 -0500 (EST) From: "Marc G. Fournier" To: current@freebsd.org Subject: cd /usr/src/lib; make depend...Fails Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-current@freebsd.org Precedence: bulk Hi... I just got some more drive space, so can finally make all the sources I've been sup'ng and keeping up to date :) Now to the bug... On a make depend, the make fails: ===> libmytinfo cc -O -Wall -I/usr/src/lib/libmytinfo -c /usr/src/lib/libmytinfo/readcaps.c -o readcaps.o In file included from /usr/src/lib/libmytinfo/defs.h:32, from /usr/src/lib/libmytinfo/readcaps.c:13: /usr/include/stdlib.h:42: warning: empty declaration In file included from /usr/src/lib/libmytinfo/readcaps.c:13: /usr/src/lib/libmytinfo/defs.h:194: conflicting types for `sys_errlist' /usr/include/stdio.h:244: previous declaration of `sys_errlist' *** Error code 1 Stop. *** Error code 1 Stop. The offending code is: #if __FreeBSD__ != 2 extern char *sys_errlist[]; #endif Since the code *is* for current, is there any reason that this has been kept in defs.h? I've commented out that section of code, and it compiles through... Now, the first error, in stdlib.h:42 still comes up... cc -O -Wall -I/usr/src/lib/libmytinfo -c /usr/src/lib/libmytinfo/readcaps.c -o readcaps.o In file included from /usr/src/lib/libmytinfo/defs.h:32, from /usr/src/lib/libmytinfo/readcaps.c:13: /usr/include/stdlib.h:42: warning: empty declaration cc -O -Wall -I/usr/src/lib/libmytinfo -o mkcaplist /usr/src/lib/libmytinfo/mkcaplist.c readcaps.o In file included from /usr/src/lib/libmytinfo/defs.h:32, from /usr/src/lib/libmytinfo/mkcaplist.c:15: /usr/include/stdlib.h:42: warning: empty declaration The offending code here, is: #ifdef _BSD_SIZE_T_ typedef _BSD_SIZE_T_ size_t; #undef _BSD_SIZE_T_ #endif This one, someone is going to have to explain to me... if _BSD_SIZE_T_ is defined, redefine it and then undefine it again? If this is right, why? If i is wrong, my first guess would be that it is backwards, in that the #undef should come before the typedef... ...so, I'm trying it out...well, *that* didn't work, so my concept was wrong (hey, I tried...*grin*) Oh well, its still compiling through, so I'm going to leave that part alone and continue on. BTW...if this stuff is better to go to bugs then here, please let me know, and I'll 'send-pr' everything from here on in... Thanks... Marc G. Fournier | POP Mail Telnet Acct DNS Hosting scrappy@hub.org | WWW Services Database Services | Knowledge, soon to be: | | Information and scrappy@ki.net | WWW: http://hub.org | Communications, Inc