Package: ksh
Version: 93q-3
Severity: normal
Tags: patch

When building 'ksh' on amd64/unstable with gcc-4.0,
I get the following error:

+ cc -D_BLD_DLL -fpic -D_BLD_ast -g -O2 -I. -I/ksh-93q/src/lib/libast -Icomp -I/
ksh-93q/src/lib/libast/comp -Iport -I/ksh-93q/src/lib/libast/port -Isfio -I/ksh-
93q/src/lib/libast/sfio -Iinclude -I/ksh-93q/src/lib/libast/include -Istd -I/ksh
-93q/src/lib/libast/std -I/ksh-93q/arch/linux.x86_64/include -D_PACKAGE_ast -c /
ksh-93q/src/lib/libast/sfio/sfvscanf.c
In file included from /ksh-93q/src/lib/libast/sfio/sfvscanf.c:35:
/ksh-93q/src/lib/libast/sfio/sfstrtof.h:187: error: static declaration of '_sfds
can' follows non-static declaration
/ksh-93q/src/lib/libast/sfio/sfhdr.h:1124: error: previous declaration of '_sfds
can' was here

With the attached patch 'ksh' can be compiled
on amd64 using gcc-4.0.

Regards
Andreas Jochens

diff -urN ../tmp-orig/ksh-93q/src/lib/libast/sfio/sfstrtof.h 
./src/lib/libast/sfio/sfstrtof.h
--- ../tmp-orig/ksh-93q/src/lib/libast/sfio/sfstrtof.h  2004-08-27 
20:52:59.000000000 +0200
+++ ./src/lib/libast/sfio/sfstrtof.h    2005-06-17 09:28:58.000000000 +0200
@@ -53,7 +53,7 @@
 
 #if !defined(S2F_function)
 #define S2F_function   _sfdscan
-#define S2F_static     1
+/* #define S2F_static  1 */
 #define S2F_type       2
 #define S2F_scan       1
 #ifndef elementsof


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

Reply via email to