Skip Menu |

This queue is for tickets about the File-Map CPAN distribution.

Report information
The Basics
Id: 76920
Status: resolved
Priority: 0/
Queue: File-Map

People
Owner: Nobody in particular
Requestors: ANDK [...] cpan.org
Cc:
AdminCc:

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



Subject: make fails with threaded perls
cc -I/home/src/perl/repoperls/installed-perls/perl/v5.15.9-145-gd1f1d9a/165a/lib/5.15.9/x86_64-linux/CORE -DXS_VERSION="0.49" -DVERSION="0.49" -fPIC -c -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -o lib/File/Map.o lib/File/Map.c lib/File/Map.xs: In function ‘XS_File__Map_remap’: lib/File/Map.xs:602:91: error: ‘MREMAP_MAYMOVE’ undeclared (first use in this function) lib/File/Map.xs:602:91: note: each undeclared identifier is reported only once for each function it appears in error building lib/File/Map.o from 'lib/File/Map.c' at /home/src/perl/repoperls/installed-perls/perl/v5.15.9-145-gd1f1d9a/165a/lib/5.15.9/ExtUtils/CBuilder/Base.pm line 177. (./Build exited with 512) Let me know when you need more info. Summary of my perl5 (revision 5 version 15 subversion 9) configuration: Commit id: d1f1d9a74b9a375a1a92c95feae48ee46f9e3858 Platform: osname=linux, osvers=3.2.0-2-amd64, archname=x86_64-linux uname='linux k83 3.2.0-2-amd64 #1 smp fri apr 6 05:01:55 utc 2012 x86_64 gnulinux ' config_args='-Dprefix=/home/src/perl/repoperls/installed-perls/perl/v5.15.9-145-gd1f1d9a/165a -Dmyhostname=k83 -Dinstallusrbinperl=n -Uversiononly -Dusedevel -des -Ui_db -Uuseithreads -Uuselongdouble -DDEBUGGING=-g' hint=recommended, useposix=true, d_sigaction=define useithreads=undef, usemultiplicity=undef useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef use64bitint=define, use64bitall=define, uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='cc', ccflags ='-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64', optimize='-O2 -g', cppflags='-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include' ccversion='', gccversion='4.6.3', gccosandvers='' intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16 ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='cc', ldflags =' -fstack-protector -L/usr/local/lib' libpth=/usr/local/lib /lib/x86_64-linux-gnu /lib/../lib /usr/lib/x86_64-linux-gnu /usr/lib/../lib /lib /usr/lib libs=-lnsl -ldb -ldl -lm -lcrypt -lutil -lc perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc libc=, so=so, useshrplib=false, libperl=libperl.a gnulibc_version='2.13' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E' cccdlflags='-fPIC', lddlflags='-shared -O2 -g -L/usr/local/lib -fstack-protector' Characteristics of this binary (from libperl): Compile-time options: HAS_TIMES PERLIO_LAYERS PERL_DONT_CREATE_GVSV PERL_MALLOC_WRAP PERL_PRESERVE_IVUV PERL_USE_DEVEL USE_64_BIT_ALL USE_64_BIT_INT USE_LARGE_FILES USE_LOCALE USE_LOCALE_COLLATE USE_LOCALE_CTYPE USE_LOCALE_NUMERIC USE_PERLIO USE_PERL_ATOF Built under linux Compiled at Apr 18 2012 03:18:42 @INC: /home/src/perl/repoperls/installed-perls/perl/v5.15.9-145-gd1f1d9a/165a/lib/site_perl/5.15.9/x86_64-linux /home/src/perl/repoperls/installed-perls/perl/v5.15.9-145-gd1f1d9a/165a/lib/site_perl/5.15.9 /home/src/perl/repoperls/installed-perls/perl/v5.15.9-145-gd1f1d9a/165a/lib/5.15.9/x86_64-linux /home/src/perl/repoperls/installed-perls/perl/v5.15.9-145-gd1f1d9a/165a/lib/5.15.9 .
On Tue May 01 06:15:49 2012, ANDK wrote: Show quoted text
> cc >
-I/home/src/perl/repoperls/installed-perls/perl/v5.15.9-145-gd1f1d9a/165a/lib/5.15.9/x86_64-linux/CORE Show quoted text
> -DXS_VERSION="0.49" -DVERSION="0.49" -fPIC -c -fno-strict-aliasing > -pipe > -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE > -D_FILE_OFFSET_BITS=64 -O2 -g -o lib/File/Map.o lib/File/Map.c > lib/File/Map.xs: In function ‘XS_File__Map_remap’: > lib/File/Map.xs:602:91: error: ‘MREMAP_MAYMOVE’ undeclared (first use > in > this function) > lib/File/Map.xs:602:91: note: each undeclared identifier is reported > only once for each function it appears in > error building lib/File/Map.o from 'lib/File/Map.c' at > /home/src/perl/repoperls/installed-perls/perl/v5.15.9-145- > gd1f1d9a/165a/lib/5.15.9/ExtUtils/CBuilder/Base.pm > line 177. > (./Build exited with 512) > > > Let me know when you need more info.
It seems that this is an effect of _GNU_SOURCE no longer being defined. I used to define it on Linux to make strerror_r be reliable, but I stopped doing that in the last release. I think the solution is to define it again (though I'm wondering if that doesn't cause issues with perls that have been compiled without it). Leon
Sorry, I got it backwards. My threaded perls have 0.49, it's the non threaded perls that fail on it.
On Tue May 01 08:54:30 2012, ANDK wrote: Show quoted text
> Sorry, I got it backwards. My threaded perls have 0.49, it's the non > threaded perls that fail on it.
Fixed in 0.50 :-) Leon