Skip Menu |

This queue is for tickets about the Device-Cdio CPAN distribution.

Report information
The Basics
Id: 77579
Status: open
Priority: 0/
Queue: Device-Cdio

People
Owner: Rocky Bernstein (no email address)
Requestors: jquelin [...] cpan.org
Cc:
AdminCc:

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



Subject: doesn't compile with perl 5.16
$ /usr/bin/perl Build.PL installdirs=vendor Good, I found libcdio version 0.83 installed. Checking for SWIG...ok Checking if gcc supports "-Wno-strict-aliasing"...yes Checking if gcc supports "-Wno-unused-function"...yes Checking if gcc supports "-Wno-unused-value"...yes Checking if gcc supports "-Wno-unused-function"...yes Checking if gcc supports "-Wno-unused-variable"...yes Created MYMETA.yml and MYMETA.json Creating new 'Build' script for 'Device-Cdio' version 'v0.3.0' $ ./Build 'CFLAGS=-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4' Building Device-Cdio In file included from /usr/include/cdio/cdio.h:65:0, from ./perlmmc_wrap.c:1531: /usr/include/cdio/device.h:368:39: error: unknown type name 'bool' /usr/include/cdio/device.h:378:7: error: unknown type name 'bool' /usr/include/cdio/device.h:443:3: error: unknown type name 'bool' /usr/include/cdio/device.h:469:3: error: unknown type name 'bool' /usr/include/cdio/device.h:971:3: error: unknown type name 'bool' /usr/include/cdio/device.h:980:3: error: unknown type name 'bool' /usr/include/cdio/device.h:991:3: error: unknown type name 'bool' /usr/include/cdio/device.h:1041:3: error: unknown type name 'bool' In file included from /usr/include/cdio/cdio.h:68:0, from ./perlmmc_wrap.c:1531: /usr/include/cdio/disc.h:102:3: error: unknown type name 'bool' /usr/include/cdio/disc.h:107:3: error: unknown type name 'bool' In file included from /usr/include/cdio/cdio.h:73:0, from ./perlmmc_wrap.c:1531: /usr/include/cdio/read.h:138:13: error: unknown type name 'bool' /usr/include/cdio/read.h:151:7: error: unknown type name 'bool' /usr/include/cdio/read.h:169:13: error: unknown type name 'bool' /usr/include/cdio/read.h:194:7: error: unknown type name 'bool' In file included from /usr/include/cdio/cdio.h:79:0, from ./perlmmc_wrap.c:1531: /usr/include/cdio/track.h:163:3: error: unknown type name 'bool' /usr/include/cdio/track.h:245:3: error: unknown type name 'bool' In file included from /usr/include/cdio/mmc.h:43:0, from ./perlmmc_wrap.c:1532: /usr/include/cdio/mmc_util.h:114:5: error: unknown type name 'bool' /usr/include/cdio/mmc_util.h:115:5: error: unknown type name 'bool' /usr/include/cdio/mmc_util.h:116:5: error: unknown type name 'bool' /usr/include/cdio/mmc_util.h:117:5: error: unknown type name 'bool' /usr/include/cdio/mmc_util.h:118:5: error: unknown type name 'bool' /usr/include/cdio/mmc_util.h:119:5: error: unknown type name 'bool' In file included from ./perlmmc_wrap.c:1532:0: /usr/include/cdio/mmc.h:637:3: error: unknown type name 'bool' error building ./perlmmc_wrap.o from './perlmmc_wrap.c' at /usr/lib/perl5/5.16.0/ExtUtils/CBuilder/Base.pm line 177. + : + chmod u+w -R . + ./Build 'CFLAGS=-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4' Building Device-Cdio In file included from /usr/include/cdio/cdio.h:65:0, from ./perlmmc_wrap.c:1531: /usr/include/cdio/device.h:368:39: error: unknown type name 'bool' /usr/include/cdio/device.h:378:7: error: unknown type name 'bool' /usr/include/cdio/device.h:443:3: error: unknown type name 'bool' /usr/include/cdio/device.h:469:3: error: unknown type name 'bool' /usr/include/cdio/device.h:971:3: error: unknown type name 'bool' /usr/include/cdio/device.h:980:3: error: unknown type name 'bool' /usr/include/cdio/device.h:991:3: error: unknown type name 'bool' /usr/include/cdio/device.h:1041:3: error: unknown type name 'bool' In file included from /usr/include/cdio/cdio.h:68:0, from ./perlmmc_wrap.c:1531: /usr/include/cdio/disc.h:102:3: error: unknown type name 'bool' /usr/include/cdio/disc.h:107:3: error: unknown type name 'bool' In file included from /usr/include/cdio/cdio.h:73:0, from ./perlmmc_wrap.c:1531: /usr/include/cdio/read.h:138:13: error: unknown type name 'bool' /usr/include/cdio/read.h:151:7: error: unknown type name 'bool' /usr/include/cdio/read.h:169:13: error: unknown type name 'bool' /usr/include/cdio/read.h:194:7: error: unknown type name 'bool' In file included from /usr/include/cdio/cdio.h:79:0, from ./perlmmc_wrap.c:1531: /usr/include/cdio/track.h:163:3: error: unknown type name 'bool' /usr/include/cdio/track.h:245:3: error: unknown type name 'bool' In file included from /usr/include/cdio/mmc.h:43:0, from ./perlmmc_wrap.c:1532: /usr/include/cdio/mmc_util.h:114:5: error: unknown type name 'bool' /usr/include/cdio/mmc_util.h:115:5: error: unknown type name 'bool' /usr/include/cdio/mmc_util.h:116:5: error: unknown type name 'bool' /usr/include/cdio/mmc_util.h:117:5: error: unknown type name 'bool' /usr/include/cdio/mmc_util.h:118:5: error: unknown type name 'bool' /usr/include/cdio/mmc_util.h:119:5: error: unknown type name 'bool' In file included from ./perlmmc_wrap.c:1532:0: /usr/include/cdio/mmc.h:637:3: error: unknown type name 'bool' error building ./perlmmc_wrap.o from './perlmmc_wrap.c' at /usr/lib/perl5/5.16.0/ExtUtils/CBuilder/Base.pm line 177. i guess it's related to boolean change in perl 5.16, cf another example at https://rt.cpan.org/Ticket/Display.html?id=76442
On Fri Jun 01 14:10:44 2012, JQUELIN wrote: Show quoted text
> $ /usr/bin/perl Build.PL installdirs=vendor
[...] Show quoted text
> /usr/include/cdio/mmc_util.h:117:5: error: unknown type name 'bool' > /usr/include/cdio/mmc_util.h:118:5: error: unknown type name 'bool' > /usr/include/cdio/mmc_util.h:119:5: error: unknown type name 'bool' > In file included from ./perlmmc_wrap.c:1532:0: > /usr/include/cdio/mmc.h:637:3: error: unknown type name 'bool' > error building ./perlmmc_wrap.o from './perlmmc_wrap.c' at > /usr/lib/perl5/5.16.0/ExtUtils/CBuilder/Base.pm line 177. > > i guess it's related to boolean change in perl 5.16, cf another example > at https://rt.cpan.org/Ticket/Display.html?id=76442
This appears to be fixed by the attached patch, found in Mageia Linux: http://svnweb.mageia.org/packages/cauldron/perl-Device-Cdio/current/SOURCES/perl-Device-Cdio-0.3.0-gcc-4.7.patch?revision=388352&view=markup Note: This is also http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=676272
Subject: 07_fix_perl_5.16_ftbfs.patch
From: Dominic Hargreaves <dom@earth.li> Subject: Fix FTBFS with perl 5.16 Original credit to 'sander85'. This is labelled in the Mageia SVN tree as fixing the build for GCC 4.7, but it's actually fixing the build with perl 5.16. The build succeeds without this patch with GCC 4.7 and perl 5.14. Origin: http://svnweb.mageia.org/packages/cauldron/perl-Device-Cdio/current/SOURCES/perl-Device-Cdio-0.3.0-gcc-4.7.patch?revision=388352&view=markup Bug: https://rt.cpan.org/Public/Bug/Display.html?id=77579 Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=676272 diff --git a/perlcdio_wrap.c b/perlcdio_wrap.c index 66e8e5e..d3227f4 100644 --- a/perlcdio_wrap.c +++ b/perlcdio_wrap.c @@ -296,6 +296,7 @@ SWIGINTERNINLINE int SWIG_CheckState(int r) { #include <string.h> +#include <stdbool.h> #ifdef __cplusplus extern "C" { diff --git a/perliso9660_wrap.c b/perliso9660_wrap.c index 2270753..4ade706 100644 --- a/perliso9660_wrap.c +++ b/perliso9660_wrap.c @@ -296,6 +296,7 @@ SWIGINTERNINLINE int SWIG_CheckState(int r) { #include <string.h> +#include <stdbool.h> #ifdef __cplusplus extern "C" { diff --git a/perlmmc_wrap.c b/perlmmc_wrap.c index 04f6380..e618066 100644 --- a/perlmmc_wrap.c +++ b/perlmmc_wrap.c @@ -296,6 +296,7 @@ SWIGINTERNINLINE int SWIG_CheckState(int r) { #include <string.h> +#include <stdbool.h> #ifdef __cplusplus extern "C" {
Sorry for the delayed reply. I don't normally see issues from RT. If you use use https://github.com/rocky/Perl-Device-Cdio/issues , I'll see this quicker, and in the next release I'll update the CPAN information to reflect htis. The problem with this patch is that it changes the generated C code rather than the Swig code used to generate this. With commit dcda83b6f70be630bdd4fc3770104cdc5a5b4f5c , I've added the cdio include which should add the bool type. But I'm not sure this addresses this. So please try with the current git source and let me know how that goes. If we can address this, I'll put out another release, time permitting.