Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 851522

Summary: net-irc/irssi-1.4.1[perl]: inline.h:3489:5: error: ISO C90 forbids mixed declarations and code
Product: Gentoo Linux Reporter: yongxiang <tanekliang>
Component: Current packagesAssignee: Sven Wegener <swegener>
Severity: normal CC: ago, gentoo, lssndrbarbieri, monsieurp, sam, zlogene
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also:
Whiteboard: fixed in stable
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 849209    
Attachments: build.log

Description yongxiang 2022-06-12 10:17:45 UTC
x86_64-pc-linux-gnu-gcc -Isrc/perl/ -I. -I../irssi-1.4.1 -Isrc/perl -I../irssi-1.4.1/src/perl -I/usr/include/glib-2.0 -
I/usr/lib64/glib-2.0/include -I/usr/lib64/perl5/5.36/x86_64-linux-thread-multi/CORE -fdiagnostics-color=always -Wall -Winvalid-pch -O0 -
Werror=declaration-after-statement -fno-strict-aliasing -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -ggdb -
fPIC -D_REENTRANT -D_GNU_SOURCE -march=native -fdiagnostics-color=always -frecord-gcc-switches -fwrapv -fno-strict-aliasing -D_LARGEFILE
_SOURCE -D_FILE_OFFSET_BITS=64 -fPIC -pthread '-DSCRIPTDIR="/usr/share/irssi/scripts"' '-DPERL_USE_LIB=""' -DPERL_STATIC_LIBS=0 -MD -MQ
src/perl/ -MF src/perl/ -o src/perl/
.c.o -c ../irssi-1.4.1/src/perl/perl-sources.c
In file included from /usr/lib64/perl5/5.36/x86_64-linux-thread-multi/CORE/perl.h:7244,
                 from ../irssi-1.4.1/src/perl/module.h:8,
                 from ../irssi-1.4.1/src/perl/perl-sources.c:23:
/usr/lib64/perl5/5.36/x86_64-linux-thread-multi/CORE/inline.h: In function ‘Perl_cop_file_avn’:
/usr/lib64/perl5/5.36/x86_64-linux-thread-multi/CORE/inline.h:3489:5: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]
 3489 |     const char *file = CopFILE(cop);
      |     ^~~~~
cc1: some warnings being treated as errors

Reproducible: Always
Comment 1 yongxiang 2022-06-12 10:19:11 UTC
Created attachment 784274 [details]

Comment 2 yongxiang 2022-06-12 10:20:02 UTC
Created attachment 784277 [details]

Comment 3 Larry the Git Cow gentoo-dev 2022-06-12 10:42:10 UTC
The bug has been closed via the following commit(s):

commit d5bde60aca1e5821685c1488d88edf16228eea84
Author:     Sam James <>
AuthorDate: 2022-06-12 10:42:03 +0000
Commit:     Sam James <>
CommitDate: 2022-06-12 10:42:03 +0000

    net-irc/irssi: fix build w/ Perl 5.36
    Signed-off-by: Sam James <>

 net-irc/irssi/files/irssi-1.4.1-no-werror-decl.patch | 14 ++++++++++++++
 net-irc/irssi/irssi-1.4.1.ebuild                     |  4 ++++
 2 files changed, 18 insertions(+)
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-12 12:25:32 UTC
*** Bug 851534 has been marked as a duplicate of this bug. ***
Comment 5 Stephan Hartmann gentoo-dev 2022-06-13 07:29:38 UTC
*** Bug 851681 has been marked as a duplicate of this bug. ***