Latest CVS speakup and 2.6.14.2

Sina Bahram sbahram at nc.rr.com
Sun Nov 27 13:16:53 EST 2005


I have had no problems with gcc 3.y allowing variable declarations in the
middle of code blocks.

You simply have to specify -std=c99

If it's c89 that you're using, the gcc 4.x shouldn't allow this either, as
it is not in the standard.

Take care,
Sina

-----Original Message-----
From: speakup-bounces at braille.uwo.ca [mailto:speakup-bounces at braille.uwo.ca]
On Behalf Of Garry Turkington
Sent: Sunday, November 27, 2005 12:59 PM
To: Speakup is a screen review system for Linux.
Subject: Re: Latest CVS speakup and 2.6.14.2

Hi,

Bet you're using gcc v 3.x.y?   Some of the recent changes to Speakup only 
compile cleanly on gcc 4.x.y systems.  The error about mixed declarations is
the give-away, gcc 3 doesn't allow variable declarations except at the start
of code blocks.

I made the file gcc 3.x.y friendly and planned to email it to  Michael but
I'm getting Dectalk driver crashes on boot and I haven't had time to debug
as yet.

Regards,
Garry

--
Garry Turkington
garry.turkington at gmail.com

On Sat, 26 Nov 2005, Garrett Klein wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
>
> Hello,
>
> 	I am getting the following errors when trying to compile a 2.6.14.2
kernel with the latest CVS speakup. Belo are the last 15 lines of output
(unfortunately, this includes the command prompt).
>
>
> drivers/char/speakup/speakup.c: At top level:
> drivers/char/speakup/speakup.c:2234: error: conflicting types for
'get_index_count'
> drivers/char/speakup/speakup.c:1985: error: previous implicit 
> declaration of 'get_index_count' was here
> drivers/char/speakup/speakup.c: In function `cursor_done':
> drivers/char/speakup/speakup.c:2242: warning: unused variable `indcount'
> drivers/char/speakup/speakup.c:2242: warning: unused variable `sentcount'
> drivers/char/speakup/speakup.c:2242: warning: unused variable `rv'
> drivers/char/speakup/speakup.c: In function `speakup_key':
> drivers/char/speakup/speakup.c:2673: warning: ISO C90 forbids mixed 
> declarations and code
> make[3]: *** [drivers/char/speakup/speakup.o] Error 1
> make[2]: *** [drivers/char/speakup] Error 2
> make[1]: *** [drivers/char] Error 2
> make: *** [drivers] Error 2
> root at garrettk17:/usr/src/linux#
> Script done on Fri 25 Nov 2005 04:50:11 PM EST Kirk, if you need more 
> info like my .config or the entire transcript then you can email me
off-list at kleins at iquest.net. Apparently, Igor got this same kernel version
to compile just fine.
>
> 	Another probably irrelivant fact about my problem is that it occurs
with and without including my custom speakup driver for the echo
synthesizer. Though it doesn't matter, since the error is in speakup.c...
>
> 	Anyway, any help, suggestions, success stories with this kernel to
show me that things aren't totally broken, ETC. would be appreciated.
>
> Garrett
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.1 (GNU/Linux)
>
> iQIVAwUBQ4iwHfQ3GgYHRr/HAQprYQ/+KXxUNNoUVZnqSv1fCQZqDFClptsELz+W
> XjKNa3mea0yZwlKexcvyyYq5abVIr/BC69BOerBhsZDX3gyQpsjRQjN1u42kHl3y
> fmi3eoe8tO4Ge6mB1/QAnjD/cbK/Cm36DjNMM6duTji9zlsxDJJMx++6kfxVcD72
> tdyXA0F3RmITLufWWVE5obcKXDJz1lDmmHX6JvBKqBSY39wYgU6vnYaQ4OMFJKLZ
> 18Fi7ctjkBEQTjaX+XdxKuWgud8kS+zIAya7hd3Zn0FNm7P1trP7HhWKmBrFg+Ha
> 1Igmmn5hZN6iCd6nQbOJFUpFhuMJrRXH/9KToin3MRhGPn1y0S1l7WESZNTHp+ah
> NthQLbBlWqTDI8rwJzdmoxmt7fwL8JOhCCO6MryEN5vfMAybx11uDAOBuXFKPfgo
> Epfq8scoqksjymW24nkzNhSqDEbeT/7IPqHa89PjXtkjkILqXHFZT29aL2dV5Irp
> RtdO77FoNDFA9RclfDwa2Sm8DZYQ6aMzlCeVjnbbkU0bWTwg2WSCdJWf6EZJIKb3
> 5xk2dd2u0iKeM4Nx0DVDgGVZOvD7aLWTcf2yxp9wMp0av/MxLxKTr+8TfJV7o4gy
> t6Ua4pyyI925OqKBcM+qzm7WtbfYnVI1hS6AJEZ1xyCNe74LeLIWhLCUVxfueYXr
> vWIZZqpvOoc=
> =I6+2
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> Speakup mailing list
> Speakup at braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
>

_______________________________________________
Speakup mailing list
Speakup at braille.uwo.ca
http://speech.braille.uwo.ca/mailman/listinfo/speakup





More information about the Speakup mailing list