From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from np.nosc.mil ([128.49.228.66]) by hawkwind.utcs.utoronto.ca with SMTP id <24650>; Fri, 20 Feb 1998 22:35:40 -0500 Received: (qmail 6105 invoked by uid 1168); 20 Feb 1998 01:08:42 -0000 Date: Thu, 19 Feb 1998 20:08:42 -0500 Message-ID: <19980220010842.6104.qmail@np.nosc.mil> To: rc@hawkwind.utcs.toronto.edu In-reply-to: (message from Tim Goodwin on Thu, 19 Feb 1998 18:05:48 +0000) Subject: Re: rc-1.5b3 nearly ready for release From: Vincent Broman Reply-to: broman@nosc.mil -----BEGIN PGP SIGNED MESSAGE----- I tried out the nearly-rc-1.5b3 on sparc-sun-sunos413 with gcc and it was OK except for one thing, the prototype for stat() in which.c conflicts with that supplied by Sun, which lacks a "const". I would suppose the prototype would belong in "sys/stat.h". If we do need a declaration in which.c, it could be no more than "extern int stat();". The vanilla source compiles and trips fine on Debian GNU/Linux 1.3.1, with gcc 2.7.2.1, libc 5.4.33, and kernel 2.0.33, except that strangely enough "cat" writes its error message "cat: -: Bad file number" twice in a row. It seems to be cat's problem. It might be nice if make distclean did not remove y.tab.? in the case where byacc is not available. The BUILT_SOURCES macro doesn't seem to include sigmsgs.h or y.tab.h . The whole approach of grepping in signal.h for signal names and meanings is inherently fragile and unnatural. Based on a suggestion from the Debian developers group, I quickly hacked together an auxillary C program now found at http://archimedes.nosc.mil/transfer/mksignals.c which checks by means of #ifdef for all the signal names found on machines I have access to and writes out the sigmsgs.* files directly. This means that mksignal could be replaced by mksignals.c, with Makefile lines like these. mksignals: $(srcdir)/mksignals.c $(CC) $(srcdir)/mksignals.c -o mksignals sigmsgs.c sigmsgs.h: mksignals ./mksignals A "make clean" should also remove the executable, mksignals. The list of signal names could be easily expanded to included any special signals defined on machines other than my own stable of: linux, sunos, solaris, next, hpux, and os/2 emx. Vincent Broman, code D712 Bayside Space and Naval Warfare Systems Center, San Diego (was NOSC, NRaD) San Diego, CA 92152-6145, USA Phone: +1 619 553 1641 Email: broman at spawar.navy.mil or nosc.mil PGP protected mail preferred. -----BEGIN PGP SIGNATURE----- Version: 2.6.2 iQCVAwUBNOzXg2CU4mTNq7IdAQH/mgQAvDPTyjtvWySqmvQhzv8+6Q88obrdrmwq PK3NI3LtL5mBYGWF2hi0vxzb6srPd+rUN6O/I+uTSJzhx7UUCAAIfi9qstSYdfj1 ndR2N9wcodZY+BsTHP04rLQBm+qjwjLSE66Flki7+Hfz1ZtuX7JgQ6T4v6gYGF3a XHMKcp/DVpE= =/80D -----END PGP SIGNATURE-----