From owner-freebsd-current Thu Dec 7 18:11:38 1995 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id SAA15208 for current-outgoing; Thu, 7 Dec 1995 18:11:38 -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 SAA15166 for ; Thu, 7 Dec 1995 18:11:15 -0800 (PST) Received: (from scrappy@localhost) by hub.org (8.7.1/8.7.1) id VAA29619; Thu, 7 Dec 1995 21:11:11 -0500 (EST) Date: Thu, 7 Dec 1995 21:11:06 -0500 (EST) From: "Marc G. Fournier" To: current@freebsd.org Subject: make failure on /usr/src/libc/gen/assert.c Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-current@freebsd.org Precedence: bulk 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