[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#259924: xitalk: FTBFS with gcc-3.4: conflicting types for 'malloc'

Package: xitalk
Severity: normal
Tags: patch

When building 'xitalk' with gcc-3.4 I get the following error:

gcc  -I. -I..  -DHAVE_CONFIG_H -O2 -g    -c -o regexp.o regexp.c
regexp.c: In function `nregcomp':
regexp.c:199: error: conflicting types for 'malloc'
make[2]: *** [regexp.o] Error 1
make[2]: Leaving directory `/xitalk-1.1.11/regexp'
make[1]: *** [REGEXP] Error 1
make[1]: Leaving directory `/xitalk-1.1.11'
make: *** [build-stamp] Error 2

With the attached patch 'xitalk' can be compiled using gcc-3.4.

Andreas Jochens

diff -urN ../tmp-orig/xitalk-1.1.11/regexp/regexp.c ./regexp/regexp.c
--- ../tmp-orig/xitalk-1.1.11/regexp/regexp.c	1997-01-06 21:59:59.000000000 +0100
+++ ./regexp/regexp.c	2004-07-17 11:45:59.521510944 +0200
@@ -196,7 +196,6 @@
 	register char *longest;
 	register int len;
 	int flags;
-	extern char *malloc();
 	if (exp == NULL)
 		FAIL("NULL argument");

Reply to: