Bug#752354: perl: trivial test C program fails to compile
Damyan Ivanov
dmn at debian.org
Mon Jun 23 07:14:35 UTC 2014
-=| Niko Tyni, 22.06.2014 23:50:56 +0300 |=-
> Package: perl
> Version: 5.20.0-1
> Severity: important
> User: debian-perl at lists.debian.org
> Usertags: perl-5.20-transition
>
> This is a regression from 5.18 and makes xchat-gnome drop
> its libperl linkage because its autoconf probe fails.
>
> % cat perltest.c
> #include <XSUB.h>
> #include <EXTERN.h>
> #include <perl.h>
> int main() { return 0; }
> % gcc $(perl -MExtUtils::Embed -e ccopts) perltest.c
> /tmp/ccN3C0Sz.o: In function `S_croak_memory_wrap':
> perltest.c:(.text+0x5): undefined reference to `PL_memory_wrap'
> perltest.c:(.text+0x14): undefined reference to `Perl_croak_nocontext'
> collect2: error: ld returned 1 exit status
I see this too. The compilation succeeds with 5.18.
> The severity should arguably be 'serious'.
Perhaps. But I think the fix is not in perl but in xchat-gnome.
It seems PL_memory_wrap and Perl_croak_nocontext were moved to libperl
in 5.20, so the test library needs to link with that. Adding
$(perl -MExtUtils::Embed -e ldopts)
to the compiler flags makes it pass. And xchat-gnome configuration
looks like this:
checking for perl... /usr/bin/perl
checking for Perl header files... found
checking for Perl library... found
…
checking for perl... /usr/bin/perl
checking for perl >= 5.8.1... 5.20.0
checking for XML::Parser... ok
…
checking which plugins to build... autoaway notification url_scraper
sound-notification net-monitor notify-osd perl python tcl
…
config.status: creating plugins/perl/Makefile
Attached is the patch to xchat-gnome.
Not yet reassigning to allow a sanity check on my conclusions :)
Cheers,
dam
-------------- next part --------------
A non-text attachment was scrubbed...
Name: perl5.20.patch
Type: text/x-diff
Size: 1238 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/perl-maintainers/attachments/20140623/ade67304/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/perl-maintainers/attachments/20140623/ade67304/attachment.sig>
More information about the Perl-maintainers
mailing list