Subject: | static declaration of ‘XS_Devel__DProf_END’ follows non-static declaration |
Date: | Mon, 6 Oct 2014 17:01:49 +0100 |
To: | bug-Devel-DProf [...] rt.cpan.org |
From: | Marc Girod <marc.girod [...] salesforce.com> |
Hello,
Building Devel::DProf under cpan script, I got an error.
Here is the transcript:
CPAN.pm: Building F/FL/FLORA/Devel-DProf-20110802.00.tar.gz
Checking if your kit is complete...
Looks good
Generating a GNU-style Makefile
Writing Makefile for Devel::DProf
Writing MYMETA.yml and MYMETA.json
cp DProf.pm blib/lib/Devel/DProf.pm
/usr/bin/perl /usr/local/share/perl/5.14.2/ExtUtils/xsubpp -typemap
/usr/share/perl/5.14/ExtUtils/typemap DProf.xs > DProf.xsc && mv DProf.xsc
DProf.c
Please specify prototyping behavior for DProf.xs (see perlxs manual)
cc -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe
-fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O2 -g -DVERSION=\"20110802.00\"
-DXS_VERSION=\"20110802.00\" -fPIC "-I/usr/lib/perl/5.14/CORE" DProf.c
DProf.c:852:1: error: static declaration of ‘XS_Devel__DProf_END’ follows
non-static declaration
DProf.xs:107:1: note: previous declaration of ‘XS_Devel__DProf_END’ was here
make: *** [DProf.o] Error 1
FLORA/Devel-DProf-20110802.00.tar.gz
/usr/bin/make -- NOT OK
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible
I commented away the second prototype, and changed the definition to follow
the first one in DProf.xs:
//XS_EUPXS(XS_Devel__DProf_END); /* prototype to pass -Wmissing-prototypes
*/
//XS_EUPXS(XS_Devel__DProf_END)
XS(XS_Devel__DProf_END)
Built, tested, and installed.
Thanks,
Marc