Subject: | PadWalker fails compilation with new glibc |
When building PadWalker 1.91 on Perl 5.12.1 x86_64 compilation fails and
I believe it might have something to do with the newer glibc? I
recently upgraded my glibc to 2.12 and rebuilt Perl 5.12.1 the exact
same way I had before and everything works fine, all other modules
installed no problem. PadWalker installed no problem on my previous
Perl 5.12.1 with the previous glibc so that's why I think it might be
the culprit?
Here is the error from cpan:
Show quoted text
cpan> install PadWalker
Running install for module 'PadWalker'
Running make for R/RO/ROBIN/PadWalker-1.91.tar.gz
Has already been unwrapped into directory
/home/hermida/.cpan/build/PadWalker-1.91-YnhN6i
CPAN.pm: Going to build R/RO/ROBIN/PadWalker-1.91.tar.gz
gcc -c -D_REENTRANT -D_GNU_SOURCE -DPERL_USE_SAFE_PUTENV
-I/usr/include/gdbm -DDEBUGGING -fno-strict-aliasing -pipe
-fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64
-mtune=generic -DVERSION=\"1.91\" -DXS_VERSION=\"1.91\" -fPIC
"-I/home/hermida/soft/perl/5.12.1/lib/5.12.1/x86_64-linux-thread-multi/CORE"
PadWalker.c
PadWalker.xs: In function ‘pads_into_hash’:
PadWalker.xs:246: warning: value computed is not used
PadWalker.xs: In function ‘get_closed_over’:
PadWalker.xs:393: warning: value computed is not used
PadWalker.xs:398: warning: value computed is not used
PadWalker.xs: In function ‘is_scalar_type’:
PadWalker.xs:464: error: duplicate case value
PadWalker.xs:463: error: previously used here
PadWalker.xs: In function ‘XS_PadWalker_set_closed_over’:
PadWalker.xs:554: warning: unused variable ‘restore_type’
make: *** [PadWalker.o] Error 1
ROBIN/PadWalker-1.91.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
Failed during this command:
ROBIN/PadWalker-1.91.tar.gz : make NO
Here is my Perl version:
Summary of my perl5 (revision 5 version 12 subversion 1) configuration:
Platform:
osname=linux, osvers=2.6.33.6-147.fc13.x86_64,
archname=x86_64-linux-thread-multi
uname='linux rubicon.hermidaconsulting.com 2.6.33.6-147.fc13.x86_64
#1 smp tue jul 6 22:32:17 utc 2010 x86_64 x86_64 x86_64 gnulinux '
config_args='-des -Doptimize=-O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m64 -mtune=generic
-Accflags=-DPERL_USE_SAFE_PUTENV -I/usr/include/gdbm
-Aappend:libswanted=-l resolv -Dversion=5.12.1 -Dmyhostname=localhost
-Dperladmin=hermida@localhost -Dcc=gcc -Dcf_by=Leandro
-Dprefix=/home/hermida/soft/perl/5.12.1
-Darchname=x86_64-linux-thread-multi -Dlibpth=/usr/local/lib64 /lib64
/usr/lib64 -Duseshrplib -Dusethreads -Duseithreads -Duselargefiles
-Dd_semctl_semun -Di_db -Ui_ndbm -Di_gdbm -Di_shadow -Di_syslog
-Dman3ext=3pm -Duseperlio -Dinstallusrbinperl=n -Ubincompat5005
-Uversiononly -Dpager=/usr/bin/less -isr -Dd_gethostent_r_proto
-Ud_endhostent_r_proto -Ud_sethostent_r_proto -Ud_endprotoent_r_proto
-Ud_setprotoent_r_proto -Ud_endservent_r_proto -Ud_setservent_r_proto
-Dinc_version_list=none'
hint=recommended, useposix=true, d_sigaction=define
useithreads=define, usemultiplicity=define
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=define, use64bitall=define, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE
-DPERL_USE_SAFE_PUTENV -I/usr/include/gdbm -DDEBUGGING
-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic',
cppflags='-D_REENTRANT -D_GNU_SOURCE -DPERL_USE_SAFE_PUTENV
-I/usr/include/gdbm -DDEBUGGING -fno-strict-aliasing -pipe
-fstack-protector -I/usr/local/include'
ccversion='', gccversion='4.4.4 20100630 (Red Hat 4.4.4-10)',
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='gcc', ldflags =' -fstack-protector'
libpth=/usr/local/lib64 /lib64 /usr/lib64
libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc -lresolv
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc -lresolv
libc=/lib/libc-2.12.so, so=so, useshrplib=true, libperl=libperl.so
gnulibc_version='2.12'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E
-Wl,-rpath,/home/hermida/soft/perl/5.12.1/lib/5.12.1/x86_64-linux-thread-multi/CORE'
cccdlflags='-fPIC', lddlflags='-shared -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m64 -mtune=generic'
Characteristics of this binary (from libperl):
Compile-time options: DEBUGGING MULTIPLICITY PERL_DONT_CREATE_GVSV
PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP
PERL_TRACK_MEMPOOL PERL_USE_SAFE_PUTENV
USE_64_BIT_ALL USE_64_BIT_INT USE_ITHREADS
USE_LARGE_FILES USE_PERLIO USE_PERL_ATOF
USE_REENTRANT_API
Built under linux
Compiled at Jul 13 2010 23:20:10
%ENV:
PERL_HOME="/home/hermida/soft/perl/default"
@INC:
/home/hermida/soft/perl/5.12.1/lib/site_perl/5.12.1/x86_64-linux-thread-multi
/home/hermida/soft/perl/5.12.1/lib/site_perl/5.12.1
/home/hermida/soft/perl/5.12.1/lib/5.12.1/x86_64-linux-thread-multi
/home/hermida/soft/perl/5.12.1/lib/5.12.1
.
Here is my architecture:
Linux rubicon.hermidaconsulting.com 2.6.33.6-147.fc13.x86_64 #1 SMP Tue
Jul 6 22:32:17 UTC 2010 x86_64 x86_64 x86_64 GNU/Linux