Skip Menu |
 

This queue is for tickets about the Encode CPAN distribution.

Report information
The Basics
Id: 124440
Status: resolved
Priority: 0/
Queue: Encode

People
Owner: Nobody in particular
Requestors: zefram [...] fysh.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 2.97



Subject: flags fail on 5.8
Date: Thu, 15 Feb 2018 17:32:48 +0000
To: bug-Encode [...] rt.cpan.org
From: Zefram <zefram [...] fysh.org>
On versions of Perl 5.8 prior to 5.8.8, recent versions of Encode fail to compile: cc -c -I./Encode -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Werror=declaration-after-statement -Wpointer-sign -O2 -DVERSION=\"2.96\" -DXS_VERSION=\"2.96\" -fpic "-I/home/zefram/usr/perl/perl_install/perl-5.8.6-i64-f52/lib/5.8.6/x86_64-linux-thread-multi/CORE" Encode.c In file included from Encode.xs:7:0: Encode.xs: In function 'process_utf8': /home/zefram/usr/perl/perl_install/perl-5.8.6-i64-f52/lib/5.8.6/x86_64-linux-thread-multi/CORE/perl.h:162:41: error: assignment of read-only variable 'flags' #define PERL_UNUSED_VAR(var) if (0) var = var ^ Encode.xs:536:9: note: in expansion of macro 'PERL_UNUSED_VAR' PERL_UNUSED_VAR(flags); ^ Makefile:386: recipe for target 'Encode.o' failed Encode version 2.94 didn't exhibit this problem, and would compile and pass its tests on these versions of Perl. -zefram
Download (untitled) / with headers
text/plain 1.2k
On Thu Feb 15 12:32:57 2018, zefram@fysh.org wrote: Show quoted text
> On versions of Perl 5.8 prior to 5.8.8, recent versions of Encode fail > to compile: > > cc -c -I./Encode -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno- > strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE > -D_FILE_OFFSET_BITS=64 -Werror=declaration-after-statement -Wpointer- > sign -O2 -DVERSION=\"2.96\" -DXS_VERSION=\"2.96\" -fpic "- > I/home/zefram/usr/perl/perl_install/perl-5.8.6-i64- > f52/lib/5.8.6/x86_64-linux-thread-multi/CORE" Encode.c > In file included from Encode.xs:7:0: > Encode.xs: In function 'process_utf8': > /home/zefram/usr/perl/perl_install/perl-5.8.6-i64- > f52/lib/5.8.6/x86_64-linux-thread-multi/CORE/perl.h:162:41: error: > assignment of read-only variable 'flags' > #define PERL_UNUSED_VAR(var) if (0) var = var > ^ > Encode.xs:536:9: note: in expansion of macro 'PERL_UNUSED_VAR' > PERL_UNUSED_VAR(flags); > ^ > Makefile:386: recipe for target 'Encode.o' failed > > Encode version 2.94 didn't exhibit this problem, and would compile and > pass its tests on these versions of Perl. > > -zefram
Fixed in Encode 2.97: https://github.com/dankogai/p5-encode/issues/129 https://github.com/dankogai/p5-encode/pull/130
Download (untitled) / with headers
text/plain 1.3k
On Sat Jul 25 09:30:30 2020, PALI wrote: Show quoted text
> On Thu Feb 15 12:32:57 2018, zefram@fysh.org wrote:
> > On versions of Perl 5.8 prior to 5.8.8, recent versions of Encode > > fail > > to compile: > > > > cc -c -I./Encode -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS > > -fno- > > strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE > > -D_FILE_OFFSET_BITS=64 -Werror=declaration-after-statement -Wpointer- > > sign -O2 -DVERSION=\"2.96\" -DXS_VERSION=\"2.96\" -fpic "- > > I/home/zefram/usr/perl/perl_install/perl-5.8.6-i64- > > f52/lib/5.8.6/x86_64-linux-thread-multi/CORE" Encode.c > > In file included from Encode.xs:7:0: > > Encode.xs: In function 'process_utf8': > > /home/zefram/usr/perl/perl_install/perl-5.8.6-i64- > > f52/lib/5.8.6/x86_64-linux-thread-multi/CORE/perl.h:162:41: error: > > assignment of read-only variable 'flags' > > #define PERL_UNUSED_VAR(var) if (0) var = var > > ^ > > Encode.xs:536:9: note: in expansion of macro 'PERL_UNUSED_VAR' > > PERL_UNUSED_VAR(flags); > > ^ > > Makefile:386: recipe for target 'Encode.o' failed > > > > Encode version 2.94 didn't exhibit this problem, and would compile > > and > > pass its tests on these versions of Perl. > > > > -zefram
> > Fixed in Encode 2.97: https://github.com/dankogai/p5-encode/issues/129 > https://github.com/dankogai/p5-encode/pull/130


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.