Bug#319131: kterm: FTBFS with gcc-3.4/gcc-4.0: error: conflicting types for 'malloc

2005-07-20 Thread Karl Chen
 On 2005-07-19 21:39 PDT, ISHIKAWA Mutsumi writes:

ISHIKAWA kterm build problem with gcc4 was fixed on 6.2.0-44,
ISHIKAWA current version of kterm (6.2.0-45) is able to build
ISHIKAWA with gcc-4.0.

I see.  I was using 6.2.0-43 (Sarge).  Thanks.

-- 
Karl 2005-07-20 03:50


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#319131: kterm: FTBFS with gcc-3.4/gcc-4.0: error: conflicting types for 'malloc

2005-07-19 Thread Karl Chen
Package: kterm
Severity: normal
Tags: patch


kterm fails to build from source with gcc-3.4/gcc-4.0:

charproc.c:105: error: conflicting types for 'malloc'

The following patch allows kterm to build under gcc-3.4:


--- button.c.orig   2005-07-19 19:47:06.0 -0700
+++ button.c2005-07-19 19:46:02.0 -0700
@@ -41,7 +41,11 @@
 #include error.h
 #include menu.h
 
+#ifndef X_NOT_STDC_ENV
+#include stdlib.h
+#else
 extern char *malloc();
+#endif
 
 extern void DoSecureKeyboard();
  

--- charproc.c.orig 2005-07-19 19:43:14.0 -0700
+++ charproc.c  2005-07-19 19:46:20.0 -0700
@@ -101,9 +101,13 @@
 
 extern XtAppContext app_con;
 extern Widget toplevel;
+#ifndef X_NOT_STDC_ENV
+#include stdlib.h
+#else
 extern void exit();
 extern char *malloc();
 extern char *realloc();
+#endif
 extern fd_set Select_mask;
 extern fd_set X_mask;
 extern fd_set pty_mask;


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#319131: kterm: FTBFS with gcc-3.4/gcc-4.0: error: conflicting types for 'malloc

2005-07-19 Thread ISHIKAWA Mutsumi
 In [EMAIL PROTECTED] 
   Karl Chen [EMAIL PROTECTED] wrote:
 Package: kterm
 Severity: normal
 Tags: patch

 kterm fails to build from source with gcc-3.4/gcc-4.0:

 charproc.c:105: error: conflicting types for 'malloc'

 The following patch allows kterm to build under gcc-3.4:

 I can not reproduce your report.

 kterm build problem with gcc4 was fixed on 6.2.0-44,
current version of kterm (6.2.0-45) is able to build
with gcc-4.0.

-- 
ISHIKAWA Mutsumi
 [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]