Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[aj@xxxxxxxxx: Bug#297893: zsh-beta: FTBFS (amd64/gcc-4.0): static declaration of 'cmdstr' follows non-static declaration]
- X-seq: zsh-workers 20926
- From: Clint Adams <schizo@xxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: [aj@xxxxxxxxx: Bug#297893: zsh-beta: FTBFS (amd64/gcc-4.0): static declaration of 'cmdstr' follows non-static declaration]
- Date: Thu, 3 Mar 2005 11:31:38 -0500
- Mail-followup-to: zsh-workers@xxxxxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
zle_tricky's exporting a cmdstr..
----- Forwarded message from Andreas Jochens <aj@xxxxxxxxx> -----
Package: zsh-beta
Severity: normal
Tags: patch
When building 'zsh-beta' on amd64 with gcc-4.0,
I get the following error:
../../../Src/Zle/zle_misc.c: At top level:
../../../Src/Zle/zle_misc.c:745: error: static declaration of 'cmdstr' follows non-static declaration
./zle_tricky.epro:54: error: previous declaration of 'cmdstr' was here
../../../Src/Zle/zle_misc.c: In function 'executenamedcommand':
../../../Src/Zle/zle_misc.c:863: warning: pointer targets in assignment differ in signedness
../../../Src/Zle/zle_misc.c:893: warning: pointer targets in assignment differ in signedness
make[4]: *** [zle_misc..o] Error 1
make[4]: Leaving directory `/zsh-beta-4.3.0-dev-1+20050228/obj/Src/Zle'
With the attached patch 'zsh-beta' can be compiled
on amd64 using gcc-4.0.
Regards
Andreas Jochens
diff -urN ../tmp-orig/zsh-beta-4.3.0-dev-1+20050228/Src/Zle/zle_misc.c ./Src/Zle/zle_misc.c
--- ../tmp-orig/zsh-beta-4.3.0-dev-1+20050228/Src/Zle/zle_misc.c 2005-02-28 20:53:38.000000000 +0100
+++ ./Src/Zle/zle_misc.c 2005-03-03 14:24:32.221689600 +0100
@@ -742,6 +742,7 @@
* cmdstr is the buffer used for execute-named-command converted
* to a metafied multibyte string.
*/
+#define cmdstr cmdstr_zle_misc
static char *cmdstr;
static LinkList cmdll;
static int cmdambig;
----- End forwarded message -----
Messages sorted by:
Reverse Date,
Date,
Thread,
Author