https://bugzilla.redhat.com/show_bug.cgi?id=1496272
Bug ID: 1496272 Summary: Perl's ccflags do not include a -Wformat option Product: Fedora Version: 26 Component: perl Assignee: jplesnik@redhat.com Reporter: scott@perturb.org QA Contact: extras-qa@fedoraproject.org CC: alexl@redhat.com, caillon+fedoraproject@gmail.com, iarnell@gmail.com, jplesnik@redhat.com, kasal@ucw.cz, mbarnes@fastmail.com, perl-devel@lists.fedoraproject.org, ppisar@redhat.com, psabata@redhat.com, rc040203@freenet.de, rhughes@redhat.com, sandmann@redhat.com, tcallawa@redhat.com
Description of problem:
Perl's ccflags do not include a -Wformat option. Attempting to compile Vim with Perl support I ran in to this bug: https://github.com/vim/vim/issues/2068
How reproducible: Easily
Steps to Reproduce: 1. Run: perl -V:ccflags 2. Note the output includes "-Werror=format-security" but no corresponding -Wformat
Actual results: bakers@yellow(~/github/vim) :perl -V:ccflags ccflags='-D_REENTRANT -D_GNU_SOURCE -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -fwrapv -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64';
Expected results: Some type of -Wformat would be included
Additional info: Vim calls ExtUtils::Embed to get the cflags and it is also incorrect (I assume they're closely related).
bakers@yellow(~/github/vim) :perl -Mlib=src/ -MExtUtils::Embed -e 'ccflags;perl_inc;print"\n"' -D_REENTRANT -D_GNU_SOURCE -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -fwrapv -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE
https://bugzilla.redhat.com/show_bug.cgi?id=1496272
--- Comment #1 from Jitka Plesnikova jplesnik@redhat.com --- I look at man page and there is mention "-Wformat is enabled by -Wall."
-Wall is included in ccflags.
https://bugzilla.redhat.com/show_bug.cgi?id=1496272
Jitka Plesnikova jplesnik@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |CLOSED Resolution|--- |NOTABUG Last Closed| |2017-09-27 07:56:11
perl-devel@lists.fedoraproject.org