Skip Menu |

This queue is for tickets about the Devel-DProf CPAN distribution.

Report information
The Basics
Id: 99329
Status: open
Priority: 0/
Queue: Devel-DProf

People
Owner: Nobody in particular
Requestors: marc.girod [...] salesforce.com
Cc:
AdminCc:

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



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
Subject: Re: static declaration of ‘XS_Devel__DProf_END’ follows non-static declaration
Date: Mon, 6 Oct 2014 17:03:53 +0100
To: bug-Devel-DProf [...] rt.cpan.org
From: Marc Girod <marc.girod [...] salesforce.com>
Sorry, just addiing my environment: Devel-DProf-20110802.00-yansT5> uname -a Linux marcgirod-wsl1 3.13.0-35-generic #62~precise1-Ubuntu SMP Mon Aug 18 14:52:04 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux Devel-DProf-20110802.00-yansT5> gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.6/lto-wrapper Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.6.3-1ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --enable-objc-gc --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) Marc On Mon, Oct 6, 2014 at 5:01 PM, Marc Girod <marc.girod@salesforce.com> wrote: Show quoted text
> 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 >
Le 2014-10-06 18:02:03, marc.girod@salesforce.com a écrit :
Show quoted text
> Hello,
>
> Building Devel::DProf under cpan script, I got an error.
> Here is the transcript:
[...]
Show quoted text
> DProf.c:852:1: error: static declaration of ‘XS_Devel__DProf_END’ follows
> non-static declaration

This seems to be a duplicate of #70629 that has a patch.
https://rt.cpan.org/Public/Bug/Display.html?id=70629

-- 
Olivier Mengué - http://perlresume.org/DOLMEN - https://gratipay.com/dolmen/
Subject: Re: [rt.cpan.org #99329] static declaration of ‘XS_Devel__DProf_END’ follows non-static declaration
Date: Fri, 14 Nov 2014 17:21:54 +0000
To: bug-Devel-DProf [...] rt.cpan.org
From: Marc Girod <marc.girod [...] salesforce.com>
Thanks! The patch went in nicely. Marc On Fri, Nov 14, 2014 at 4:11 PM, Olivier Mengué via RT < bug-Devel-DProf@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=99329 > > > Le 2014-10-06 18:02:03, marc.girod@salesforce.com a écrit :
> > Hello, > > > > Building Devel::DProf under cpan script, I got an error. > > Here is the transcript:
> [...]
> > DProf.c:852:1: error: static declaration of ‘XS_Devel__DProf_END’ follows > > non-static declaration
> > This seems to be a duplicate of #70629 that has a patch. > https://rt.cpan.org/Public/Bug/Display.html?id=70629 > > -- > Olivier Mengué - http://perlresume.org/DOLMEN - > https://gratipay.com/dolmen/ > >