Date: Thu, 7 Dec 1995 16:22:55 -0500 (EST) From: "Marc G. Fournier" <scrappy@hub.org> To: current@freebsd.org Subject: cd /usr/src/lib; make depend...Fails Message-ID: <Pine.BSF.3.91.951207160345.24715B-100000@hub.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.951207160345.24715B-100000>
