Date: Thu, 7 Dec 1995 21:11:06 -0500 (EST) From: "Marc G. Fournier" <scrappy@hub.org> To: current@freebsd.org Subject: make failure on /usr/src/libc/gen/assert.c Message-ID: <Pine.BSF.3.91.951207210424.29587A-100000@hub.org>
next in thread | raw e-mail | index | archive | help
Hi... Hit one I can't seem to get around. Will continue to try, but if someone else has the solution for it, it would be appreciated: cc -O -DLIBC_RCS -DSYSLIBC_RCS -D__DBINTERFACE_PRIVATE -DPOSIX_MISTAKE \ -I/usr/src/lib/libc/locale -DYP -c /usr/src/lib/libc/gen/assert.c -o assert.o /usr/src/lib/libc/gen/assert.c:44: parse error before string constant /usr/src/lib/libc/gen/assert.c:47: parse error before `{' /usr/src/lib/libc/gen/assert.c:51: conflicting types for `abort' /usr/include/stdlib.h:80: previous declaration of `abort' /usr/src/lib/libc/gen/assert.c:51: warning: data definition has no type or storage class /usr/src/lib/libc/gen/assert.c:53: parse error before `}' *** Error code 1 Stop. *** Error code 1 Stop. Now the error at line 44 eludes me completely. The functions matches, as far as I can see, the define in /usr/include/assert.h Now, to fix the conflicting types error, I modified assert.c so that: *** lib/libc/gen/assert.c.orig Thu Dec 7 21:08:37 1995 --- lib/libc/gen/assert.c Thu Dec 7 21:04:07 1995 *************** *** 48,53 **** (void)fprintf(stderr, "assertion \"%s\" failed: file \"%s\", line %d\n", failedexpr, file, line); ! abort(); /* NOTREACHED */ } --- 48,53 ---- (void)fprintf(stderr, "assertion \"%s\" failed: file \"%s\", line %d\n", failedexpr, file, line); ! (void)abort(); /* NOTREACHED */ } --- And, if I created this diff incorrectly, please let me know how I should have made it. 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.951207210424.29587A-100000>