Skip Menu |
 

This queue is for tickets about the B-Size CPAN distribution.

Report information
The Basics
Id: 14953
Status: resolved
Priority: 0/
Queue: B-Size

People
Owner: pgollucci [...] p6m7g8.com
Requestors: william [...] knowmad.com
Cc:
AdminCc:

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



Subject: Compile failure under FreeBSD
Download (untitled) / with headers
text/plain 4.7k
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
Download (untitled) / with headers
text/plain 656b
Size.xs:111: warning: cast to pointer from integer of different size Fixed. Will be in 0.07 Committed revision 6416. Prototype mismatch: sub B::OP::size: none vs () Blasted symbol table. I've silenced the warnings. This will be in 0.07 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 This is actually a mod_perl problem -- Fixed. See my commit: http://svn.apache.org/viewvc?rev=410065&view=rev This will be in 2.03 of mod_perl. Thanks fellow FreeBSD user :) I'll update the port after I actually release 0.07.
Download (untitled) / with headers
text/plain 5.2k
On Thu Oct 06 02:49:27 2005, guest wrote: Show quoted text
> 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: Show quoted text
> Platform: > osname=freebsd, osvers=5.3-release-p5, archname=i386-freebsd-
64int Show quoted text
> 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 Show quoted text
> -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 Show quoted text
> 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) Show quoted text
> 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
Download (untitled) / with headers
text/plain 1.6k
[14:32:22](ttyp2)pgollucci@home.p6m7g8.net:/usr/ports/devel/p5-B-Size 111 0 >sudo make ===> Vulnerability check disabled, database not found => B-Size-0.08.tar.gz doesn't seem to exist in /usr/ports/distfiles/. => Attempting to fetch from ftp://ftp.funet.fi/pub/languages/perl/CPAN/modules/by-module/B/. B-Size-0.08.tar.gz 100% of 10 kB 52 kBps ===> Extracting for p5-B-Size-0.08 => MD5 Checksum OK for B-Size-0.08.tar.gz. => SHA256 Checksum OK for B-Size-0.08.tar.gz. ===> p5-B-Size-0.08 depends on file: /usr/local/bin/perl5.8.8 - found ===> Patching for p5-B-Size-0.08 ===> p5-B-Size-0.08 depends on file: /usr/local/bin/perl5.8.8 - found ===> p5-B-Size-0.08 depends on file: /usr/local/bin/perl5.8.8 - found ===> Configuring for p5-B-Size-0.08 Checking if your kit is complete... Looks good Writing Makefile for B::Size ===> Building for p5-B-Size-0.08 cp Size.pm blib/lib/B/Size.pm cp lib/B/TerseSize.pm blib/lib/B/TerseSize.pm /usr/local/bin/perl5.8.8 /usr/local/lib/perl5/5.8.8/ExtUtils/xsubpp -typemap /usr/local/lib/perl5/5.8.8/ExtUtils/typemap -typemap typemap Size.xs > Size.xsc && mv Size.xsc Size.c cc -c -O2 -pipe -march=pentium4 -O2 -fno-strict-aliasing -pipe -DVERSION=\"0.08\" -DXS_VERSION=\"0.08\" -DPIC -fPIC "-I/usr/local/lib/perl5/5.8.8/mach/CORE" Size.c Running Mkbootstrap for B::Size () chmod 644 Size.bs rm -f blib/arch/auto/B/Size/Size.so cc -shared -L/usr/local/lib Size.o -o blib/arch/auto/B/Size/Size.so chmod 755 blib/arch/auto/B/Size/Size.so cp Size.bs blib/arch/auto/B/Size/Size.bs chmod 644 blib/arch/auto/B/Size/Size.bs Manifying blib/man3/B::Size.3 Manifying blib/man3/B::TerseSize.3


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.