You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All tests fail with an error message similar to this:
Can't load '.../blib/arch/auto/XML/Parser/Expat/Expat.so' for module
XML::Parser::Expat: .../blib/arch/auto/XML/Parser/Expat/Expat.so:
undefined symbol: XML_SetCommentHandler at
.../perl-5.12.3/lib/5.12.3/x86_64-linux/DynaLoader.pm line 200.
This is despite the most recent version of the libexpat1-dev package
being installed as per the README:
# apt-get install libexpat1-dev
...
libexpat1-dev is already the newest version.
...
Full details of my Perl installation:
$ perl -V
Summary of my perl5 (revision 5 version 12 subversion 3) configuration:
Platform:
osname=linux, osvers=2.6.35-28-generic, archname=x86_64-linux
uname='linux pluto 2.6.35-28-generic #49-ubuntu smp tue mar 1
14:39:03 utc 2011 x86_64 gnulinux '
config_args='-de -Dprefix=/home/lx/perl5/perlbrew/perls/perl-5.12.3'
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',
cppflags='-fno-strict-aliasing -pipe -fstack-protector
-I/usr/local/include'
ccversion='', gccversion='4.4.5', 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 /usr/lib /lib64 /usr/lib64
libs=-lnsl -ldl -lm -lcrypt -lutil -lc
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
libc=/lib/libc-2.12.1.so, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version='2.12.1'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
cccdlflags='-fPIC', lddlflags='-shared -O2 -L/usr/local/lib
-fstack-protector'
Characteristics of this binary (from libperl):
Compile-time options: PERL_DONT_CREATE_GVSV PERL_MALLOC_WRAP
USE_64_BIT_ALL
USE_64_BIT_INT USE_LARGE_FILES USE_PERLIO
USE_PERL_ATOF
Built under linux
Compiled at Mar 24 2011 16:07:42
%ENV:
PERLBREW_PATH="/home/lx/perl5/perlbrew/bin:/home/lx/perl5/perlbrew/perls/current/bin"
PERLBREW_PERL="perl-5.12.3"
PERLBREW_ROOT="/home/lx/perl5/perlbrew"
PERLBREW_VERSION="0.18"
@INC:
/home/lx/perl5/perlbrew/perls/perl-5.12.3/lib/site_perl/5.12.3/x86_64-linux
/home/lx/perl5/perlbrew/perls/perl-5.12.3/lib/site_perl/5.12.3
/home/lx/perl5/perlbrew/perls/perl-5.12.3/lib/5.12.3/x86_64-linux
/home/lx/perl5/perlbrew/perls/perl-5.12.3/lib/5.12.3
.
Full output of each step is attached, with possibly interesting excerpts
shown below.
$ perl Makefile.PL
Note (probably harmless): No library found for -lexpat
Note (probably harmless): No library found for -lexpat
...
$ make
...
cc -c -fno-strict-aliasing -pipe -fstack-protector
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2
-DVERSION=\"2.41\" -DXS_VERSION=\"2.41\" -fPIC
"-I/home/lx/perl5/perlbrew/perls/perl-5.12.3/lib/5.12.3/x86_64-linux/CORE"
Expat.c
Expat.xs: In function �append_error�:
Expat.xs:220:8: warning: format �%d� expects argument of type �int�, but
argument 4 has type �XML_Size� [-Wformat]
Expat.xs:220:8: warning: format �%d� expects argument of type �int�, but
argument 5 has type �XML_Size� [-Wformat]
Expat.xs:220:8: warning: format �%d� expects argument of type �int�, but
argument 6 has type �XML_Index� [-Wformat]
...
$ make TEST_VERBOSE=1 test
...
Can't load '.../blib/arch/auto/XML/Parser/Expat/Expat.so' for module
XML::Parser::Expat: .../blib/arch/auto/XML/Parser/Expat/Expat.so:
undefined symbol: XML_SetCommentHandler at
.../perl-5.12.3/lib/5.12.3/x86_64-linux/DynaLoader.pm line 200.
...
(1) what is the output of
gcc --version
I suspect you do not have gcc 4.4 anymore
(2) Could you try
perl Makefile.PL EXPATLIBPATH=/usr/lib/x86_64-linux-gnu
On Sun Apr 22 14:20:17 2012, ANDK wrote:
> (1) what is the output of
>
> gcc --version
>
> I suspect you do not have gcc 4.4 anymore
$ gcc --version
gcc (Ubuntu/Linaro 4.6.1-9ubuntu3) 4.6.1
...
> (2) Could you try
>
> perl Makefile.PL EXPATLIBPATH=/usr/lib/x86_64-linux-gnu
This works a little better, without the previous warnings:
$ perl Makefile.PL EXPATLIBPATH=/usr/lib/x86_64-linux-gnu
Checking if your kit is complete...
Looks good
Writing Makefile for XML::Parser::Expat
Writing MYMETA.yml and MYMETA.json
Writing Makefile for XML::Parser
Writing MYMETA.yml and MYMETA.json
"make" still shows some warnings:
$ make
...
cc -c -fno-strict-aliasing -pipe -fstack-protector
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2
-DVERSION=\"2.41\" -DXS_VERSION=\"2.41\" -fPIC
"-I/home/lx/perl5/perlbrew/perls/perl-5.12.3/lib/5.12.3/x86_64-linux/CORE"
Expat.c
Expat.xs: In function �append_error�:
Expat.xs:220:8: warning: format �%d� expects argument of type �int�, but
argument 4 has type �XML_Size� [-Wformat]
Expat.xs:220:8: warning: format �%d� expects argument of type �int�, but
argument 5 has type �XML_Size� [-Wformat]
Expat.xs:220:8: warning: format �%d� expects argument of type �int�, but
argument 6 has type �XML_Index� [-Wformat]
...
but all tests now succeed:
$ make test
...
All tests successful.
...
The text was updated successfully, but these errors were encountered:
Migrated from rt.cpan.org#76754 (status was 'open')
Requestors:
Attachments:
From [email protected] on 2012-04-22 01:29:18
:
From [email protected] on 2012-04-22 04:20:17
:
From [email protected] on 2012-04-22 10:14:02
:
The text was updated successfully, but these errors were encountered: