GNU bug report logs - #7099
mbsalign.c old c compiler complains about variables defined inside code

Previous Next

Package: coreutils;

Reported by: Suhan Andrei <sandi_ro <at> yahoo.com>

Date: Fri, 24 Sep 2010 20:31:01 UTC

Severity: normal

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Suhan Andrei <sandi_ro <at> yahoo.com>
Subject: bug#7099: closed (Re: bug#7099: mbsalign.c old c compiler
 complains about variables defined inside code)
Date: Fri, 01 Oct 2010 13:31:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#7099: mbsalign.c old c compiler complains about variables defined inside code

which was filed against the coreutils package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 7099 <at> debbugs.gnu.org.

-- 
7099: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7099
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Pádraig Brady <P <at> draigBrady.com>
To: Suhan Andrei <sandi_ro <at> yahoo.com>
Cc: 7099-done <at> debbugs.gnu.org
Subject: Re: bug#7099: mbsalign.c old c compiler complains about variables
	defined inside code
Date: Fri, 01 Oct 2010 14:32:42 +0100
[Message part 3 (text/plain, inline)]
On 24/09/10 22:38, Pádraig Brady wrote:
> On 24/09/10 21:15, Suhan Andrei wrote:
>> Hi
>>
>> Just wanted to let you know there are some errors when using old compiler 
>> (
>> gcc -v
>> Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs
>> gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
>> )
>>
>>
>> Tere are 2 variables defined inside blocks of code that triggers old c compiler 
>> to spill errors.
>> I used code from coreutils-8.5.tar.gz 
>> I moved declaration at the start of code and all compiled ok.
> 
> Eep, I'll fix that up, as we want to keep stuff under gl/
> C89 conformant, as it may be moved to gnulib at some stage.

I'll push the attached soon.

cheers,
Pádraig.
[mbsalign-c89.diff (text/x-patch, attachment)]
[Message part 5 (message/rfc822, inline)]
From: Suhan Andrei <sandi_ro <at> yahoo.com>
To: bug-coreutils <at> gnu.org
Subject: mbsalign.c old c compiler complains about variables defined inside
	code
Date: Fri, 24 Sep 2010 13:15:08 -0700 (PDT)
[Message part 6 (text/plain, inline)]
Hi

Just wanted to let you know there are some errors when using old compiler 
(
gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
)


Tere are 2 variables defined inside blocks of code that triggers old c compiler 
to spill errors.
I used code from coreutils-8.5.tar.gz 
I moved declaration at the start of code and all compiled ok.

Andrei.



      
[Message part 7 (text/html, inline)]

This bug report was last modified 14 years and 237 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.