Subject: | Compile failure under FreeBSD |
Hi Doug,
B::Size is failing while compiling with the following errors:
cc -c -DAPPLLIB_EXP="/usr/public//lib/perl5/5.8.6/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -I/usr/local/include -O -pipe -DVERSION=\"0.05\" -DXS_VERSION=\"0.05\" -DPIC -fPIC "-I/usr/public/lib/perl5/5.8.6/i386-freebsd-64int/CORE" Size.c
Size.xs: In function `XS_B__PV_LEN':
Size.xs:111: warning: cast to pointer from integer of different size
Size.xs: In function `XS_B__PV_CUR':
Size.xs:134: warning: cast to pointer from integer of different size
Size.xs: In function `XS_B__MAGIC_LENGTH':
Size.xs:159: warning: cast to pointer from integer of different size
Size.xs: In function `XS_B__OP_name':
Size.xs:182: warning: cast to pointer from integer of different size
Size.c: In function `XS_B__PMOP_REGEXP_size':
Size.c:243: warning: cast to pointer from integer of different size
-----------
Interestingly, all the tests pass. However, when I try to use it in modperl in conjunction with B::TerseSize, I receive the following error:
-----------
[Thu Oct 6 02:40:51 2005] Size.pm: Prototype mismatch: sub B::OP::size: none vs () at /usr/local/lib/perl5/site_perl/5.8.6/i386-freebsd-64int/B/Size.pm line 24.
[Thu Oct 06 02:40:51 2005] [error] [client 69.132.4.12] Use of uninitialized value in length at /usr/local/lib/perl5/site_perl/5.8.6/i386-freebsd-64int/Apache2/Status.pm line 566.\n, referer: http://www.knowmad.com:8080/perl-status?symdump
-------------
Here's the output from my perl:
root@knowmad:~/.cpan/build/B-Size-0.05# perl -V
Summary of my perl5 (revision 5 version 8 subversion 6) configuration:
Platform:
osname=freebsd, osvers=5.3-release-p5, archname=i386-freebsd-64int
uname='freebsd hobbiton.shire.net 5.3-release-p5 freebsd 5.3-release-p5 #3: thu feb 3 23:10:24 mst 2005 chad@bywater.shire.net:usrobjusrsrcsysbywater-smp i386 '
config_args='-sde -Dprefix=/usr/public/ -Dotherlibdirs=/usr/public//lib/perl5/site_perl/5.8.6/mach:/usr/public//lib/perl5/site_perl/5.8.6 -Darchlib=/usr/public//lib/perl5/5.8.6/mach -Dprivlib=/usr/public//lib/perl5/5.8.6 -Dman3dir=/usr/public//lib/perl5/5.8.6/perl/man/man3 -Dman1dir=/usr/public//man/man1 -Dscriptdir=/usr/public//bin -Dsitearch=/usr/local/lib/perl5/site_perl/5.8.6/mach -Dsitelib=/usr/local/lib/perl5/site_perl/5.8.6 -Dsiteman3dir=/usr/local/lib/perl5/5.8.6/man/man3 -Dsiteman1dir=/usr/local/man/man1 -Dsitebin=/usr/local/bin -Dsitescript=/usr/local/bin -Ui_malloc -Ui_iconv -Uinstallusrbinperl -Dcc=cc -Doptimize=-O -pipe -Duseshrplib -Dccflags=-DAPPLLIB_EXP="/usr/public//lib/perl5/5.8.6/BSDPAN" -Ud_dosuid -Ui_gdbm -Dusethreads=n -Dusemymalloc=y -Duse64bitint'
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=define use64bitall=undef uselongdouble=undef
usemymalloc=y, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-DAPPLLIB_EXP="/usr/public//lib/perl5/5.8.6/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -I/usr/local/include',
optimize='-O -pipe ',
cppflags='-DAPPLLIB_EXP="/usr/public//lib/perl5/5.8.6/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -I/usr/local/include'
ccversion='', gccversion='3.4.2 [FreeBSD] 20040728', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=12345678
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=4, prototype=define
Linker and Libraries:
ld='cc', ldflags =' -Wl,-E -L/usr/local/lib'
libpth=/usr/lib /usr/local/lib
libs=-lm -lcrypt -lutil
perllibs=-lm -lcrypt -lutil
libc=, so=so, useshrplib=true, libperl=libperl.so
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' -Wl,-R/usr/public/lib/perl5/5.8.6/i386-freebsd-64int/CORE'
cccdlflags='-DPIC -fPIC', lddlflags='-shared -L/usr/local/lib'
Characteristics of this binary (from libperl):
Compile-time options: USE_64_BIT_INT USE_LARGE_FILES
Locally applied patches:
SUIDPERLIO0 - fix PERLIO_DEBUG local root exploit (CAN-2005-0155)
SUIDPERLIO1 - fix PERLIO_DEBUG buffer overflow (CAN-2005-0156)
Built under freebsd
Compiled at Feb 15 2005 07:22:27
@INC:
/usr/local/lib/perl5/site_perl/5.8.6/mach
/usr/local/lib/perl5/site_perl/5.8.6
/usr/local/lib/perl5/site_perl
/usr/public//lib/perl5/5.8.6/BSDPAN
/usr/public/lib/perl5/5.8.6/i386-freebsd-64int
/usr/public/lib/perl5/5.8.6
/usr/public//lib/perl5/site_perl/5.8.6/mach
/usr/public//lib/perl5/site_perl/5.8.6/i386-freebsd-64int
/usr/public//lib/perl5/site_perl/5.8.6
.
Thanks,
William
Thanks,
William