develooper Front page | perl.perl5.porters | Postings from February 2008

Re: Assistance with IPC modules and perl 5.10

Thread Previous | Thread Next
From:
Tom "spot" Callaway
Date:
February 18, 2008 18:18
Subject:
Re: Assistance with IPC modules and perl 5.10
Message ID:
1203387382.3431.12.camel@new-host-5

On Mon, 2008-02-18 at 22:46 +0100, H.Merijn Brand wrote:

> Just out of curiousity, I did a build on my 64bitall bleadperl
> on OpenSUSE 10.2:
> 
> CPAN/IPC-ShareLite-0.09 110 > make test
> PERL_DL_NONLAZY=1 /pro/3gl/CPAN/perl-current/perl "-I/pro/3gl/CPAN/perl/lib" "-I/pro/3gl/CPAN/perl/lib" "-Iblib/lib" "-Iblib/arch" test.pl
> 1..8
> ok 1
> ok 2
> ok 3
> ok 4
> ok 5
> ok 6
> ok 7
> ok 8
> CPAN/IPC-ShareLite-0.09 111 > bleadperl -v
> 
> This is perl, v5.11.0 DEVEL33334 built for x86_64-linux-ld
> (with 2 registered patches, see perl -V for more detail)

With no patches:

bash-3.2# make
cp ShareLite.pm blib/lib/IPC/ShareLite.pm
AutoSplitting blib/lib/IPC/ShareLite.pm (blib/lib/auto/IPC/ShareLite)
gcc -c   -D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -fno-strict-aliasing
-pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-I/usr/include/gdbm -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64
-mtune=generic   -DVERSION=\"0.09\" -DXS_VERSION=\"0.09\" -fPIC
"-I/usr/lib64/perl5/5.10.0/x86_64-linux-thread-multi/CORE"   sharelite.c
sharelite.c: In function ‘write_share’:
sharelite.c:273: warning: implicit declaration of function ‘memcpy’
sharelite.c:273: warning: incompatible implicit declaration of built-in
function ‘memcpy’
sharelite.c: In function ‘read_share’:
sharelite.c:342: warning: incompatible implicit declaration of built-in
function ‘memcpy’
/usr/bin/perl /usr/lib/perl5/5.10.0/ExtUtils/xsubpp
-typemap /usr/lib/perl5/5.10.0/ExtUtils/typemap -typemap typemap
ShareLite.xs > ShareLite.xsc && mv ShareLite.xsc ShareLite.c
Please specify prototyping behavior for ShareLite.xs (see perlxs manual)
gcc -c   -D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -fno-strict-aliasing
-pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-I/usr/include/gdbm -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64
-mtune=generic   -DVERSION=\"0.09\" -DXS_VERSION=\"0.09\" -fPIC
"-I/usr/lib64/perl5/5.10.0/x86_64-linux-thread-multi/CORE"   ShareLite.c
ShareLite.c: In function ‘XS_IPC__ShareLite_new_share’:
ShareLite.c:370: warning: cast from pointer to integer of different size
ShareLite.c: In function ‘XS_IPC__ShareLite_read_share’:
ShareLite.c:419: warning: unused variable ‘targ’
ShareLite.c:418: warning: unused variable ‘RETVAL’
ShareLite.c: In function ‘XS_IPC__ShareLite_sharelite_version’:
ShareLite.c:522: warning: implicit declaration of function
‘sharelite_version’
ShareLite.c: In function ‘XS_IPC__ShareLite_sharelite_num_segments’:
ShareLite.c:545: warning: implicit declaration of function
‘sharelite_num_segments’
ShareLite.c: At top level:
ShareLite.xs:47: warning: ‘not_here’ defined but not used
Running Mkbootstrap for IPC::ShareLite ()
chmod 644 ShareLite.bs
rm -f blib/arch/auto/IPC/ShareLite/ShareLite.so
gcc  -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic
sharelite.o ShareLite.o  -o blib/arch/auto/IPC/ShareLite/ShareLite.so 	\
	     	\
	  
chmod 755 blib/arch/auto/IPC/ShareLite/ShareLite.so
cp ShareLite.bs blib/arch/auto/IPC/ShareLite/ShareLite.bs
chmod 644 blib/arch/auto/IPC/ShareLite/ShareLite.bs
Manifying blib/man3/IPC::ShareLite.3pm
bash-3.2# make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-Iblib/lib" "-Iblib/arch" test.pl
1..8
ok 1
ok 2
ok 3
panic: free from wrong pool at blib/lib/IPC/ShareLite.pm line 106.
make: *** [test_dynamic] Error 255
bash-3.2# perl -v

This is perl, v5.10.0 built for x86_64-linux-thread-multi

With the patch from Bug 17663 applied, and a patch to fix the missing
memcpy defines (both patches attached to this email):

bash-3.2# make
cp ShareLite.pm blib/lib/IPC/ShareLite.pm
AutoSplitting blib/lib/IPC/ShareLite.pm (blib/lib/auto/IPC/ShareLite)
gcc -c   -D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -fno-strict-aliasing
-pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-I/usr/include/gdbm -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64
-mtune=generic   -DVERSION=\"0.09\" -DXS_VERSION=\"0.09\" -fPIC
"-I/usr/lib64/perl5/5.10.0/x86_64-linux-thread-multi/CORE"   sharelite.c
/usr/bin/perl /usr/lib/perl5/5.10.0/ExtUtils/xsubpp
-typemap /usr/lib/perl5/5.10.0/ExtUtils/typemap -typemap typemap
ShareLite.xs > ShareLite.xsc && mv ShareLite.xsc ShareLite.c
Please specify prototyping behavior for ShareLite.xs (see perlxs manual)
gcc -c   -D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -fno-strict-aliasing
-pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-I/usr/include/gdbm -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64
-mtune=generic   -DVERSION=\"0.09\" -DXS_VERSION=\"0.09\" -fPIC
"-I/usr/lib64/perl5/5.10.0/x86_64-linux-thread-multi/CORE"   ShareLite.c
ShareLite.c: In function ‘XS_IPC__ShareLite_read_share’:
ShareLite.c:428: warning: unused variable ‘targ’
ShareLite.c:427: warning: unused variable ‘RETVAL’
ShareLite.c: In function ‘XS_IPC__ShareLite_sharelite_version’:
ShareLite.c:580: warning: implicit declaration of function
‘sharelite_version’
ShareLite.c: In function ‘XS_IPC__ShareLite_sharelite_num_segments’:
ShareLite.c:612: warning: implicit declaration of function
‘sharelite_num_segments’
ShareLite.c: At top level:
ShareLite.xs:47: warning: ‘not_here’ defined but not used
ShareLite.c: In function ‘XS_IPC__ShareLite_read_share’:
ShareLite.xs:338: warning: ‘length’ is used uninitialized in this
function
ShareLite.xs:336: note: ‘length’ was declared here
ShareLite.xs:339: warning: ‘data’ is used uninitialized in this function
ShareLite.xs:335: note: ‘data’ was declared here
Running Mkbootstrap for IPC::ShareLite ()
chmod 644 ShareLite.bs
rm -f blib/arch/auto/IPC/ShareLite/ShareLite.so
gcc  -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic
sharelite.o ShareLite.o  -o blib/arch/auto/IPC/ShareLite/ShareLite.so 	\
	     	\
	  
chmod 755 blib/arch/auto/IPC/ShareLite/ShareLite.so
cp ShareLite.bs blib/arch/auto/IPC/ShareLite/ShareLite.bs
chmod 644 blib/arch/auto/IPC/ShareLite/ShareLite.bs
Manifying blib/man3/IPC::ShareLite.3pm
bash-3.2# make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-Iblib/lib" "-Iblib/arch" test.pl
1..8
ok 1
ok 2
ok 3
not ok 4
ok 5
ok 6
not ok 7
not ok 8
bash-3.2# perl -v

This is perl, v5.10.0 built for x86_64-linux-thread-multi

~spot



Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About