From owner-cvs-usrbin Wed Mar 15 11:05:33 1995 Return-Path: cvs-usrbin-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id LAA07746 for cvs-usrbin-outgoing; Wed, 15 Mar 1995 11:05:33 -0800 Received: (from wpaul@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id LAA07736; Wed, 15 Mar 1995 11:05:30 -0800 Date: Wed, 15 Mar 1995 11:05:30 -0800 From: Bill Paul Message-Id: <199503151905.LAA07736@freefall.cdrom.com> To: CVS-commiters, cvs-usrbin Subject: cvs commit: src/usr.bin/compile_et error_table.y Sender: cvs-usrbin-owner@freebsd.org Precedence: bulk wpaul 95/03/15 11:05:29 Modified: usr.bin/compile_et error_table.y Log: According to stdlib.h, malloc and realloc return void * but error_table.y declares them to return char *. For some reason, this causes no problems with the old compiler tools, but doing a 'make world' with gcc 2.6.3 in a seperate DESTDIR got me this error: yacc -d /usr/src/usr.bin/compile_et/error_table.y cc -O2 -I. -I/usr/src/usr.bin/compile_et/../../lib/libcom_err -I/mnt/usr/include -c y.tab.c -o error_table.o In file included from /usr/src/usr.bin/compile_et/et_lex.lex.l:11, from /usr/src/usr.bin/compile_et/error_table.y:233: /mnt/usr/include/stdlib.h:100: conflicting types for `malloc' /usr/src/usr.bin/compile_et/error_table.y:80: previous declaration of `malloc' /mnt/usr/include/stdlib.h:104: conflicting types for `realloc' /usr/src/usr.bin/compile_et/error_table.y:80: previous declaration of `realloc' *** Error code 1 Stop. Declaring malloc and realloc to return void * fixes this. It could be that the new gcc is a bit more picky about these things.