Skip Menu |

This queue is for tickets about the Compress-Raw-Zlib CPAN distribution.

Report information
The Basics
Id: 58860
Status: resolved
Priority: 0/
Queue: Compress-Raw-Zlib

People
Owner: Nobody in particular
Requestors: lidl [...] pix.net
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 2.027
Fixed in: 2.030



Subject: Compress-Raw-Zlib-2.027 will not compile on SXCE b130 (x86, perl 5.12.1)
When attempting to compile Compress-Raw-Zlib-2.027 on SXCE b130 (Sun Express Community Edition), it fails to link, with this error: rm -f blib/arch/auto/Compress/Raw/Zlib/Zlib.so gcc -B/usr/ccs/bin/ -G -L/usr/local/lib -L/usr/local/BerkeleyDB.5.0/lib Zlib.o adler32.o crc32.o infback.o inflate.o uncompr.o compress.o deflate.o inffast.o inftrees.o trees.o zutil.o -o blib/arch/auto/Compress/Raw/Zlib/Zlib.so \ \ ld: fatal: relocation error: R_386_GOTOFF: file infback.o: symbol zcalloc: a GOT relative relocation must reference a local symbol ld: fatal: relocation error: R_386_GOTOFF: file infback.o: symbol zcfree: a GOT relative relocation must reference a local symbol collect2: ld returned 1 exit status *** Error code 1 make: Fatal error: Command failed for target `blib/arch/auto/Compress/Raw/Zlib/Zlib.so' Building previous version (in particular 2.024, and 2.026), everything builds just fine. My perl is this: This is perl 5, version 12, subversion 1 (v5.12.1) built for i86pc-solaris-64int My OS is this: lidl@prod01-156: uname -a SunOS prod01.domain.com 5.11 snv_130 i86pc i386 i86pc It's a 32bit machine, running a 32-bit version of something similar to opensolaris. The "gcc -v" reports: Reading specs from /usr/sfw/lib/gcc/i386-pc-solaris2.11/3.4.3/specs Configured with: /builds2/sfwnv-gate/usr/src/cmd/gcc/gcc-3.4.3/configure --prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as --with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++,f77,objc --enable-shared Thread model: posix gcc version 3.4.3 (csl-sol210-3_4-20050802) The following warnings were emitted before the linkage line that outright failed: gcc -B/usr/ccs/bin/ -c -I./zlib-src -DPTR_IS_LONG -I/usr/local/include -I/usr/local/BerkeleyDB.5.0/include -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -O3 -DVERSION=\"2.027\" -DXS_VERSION=\"2.027\" -fPIC "-I/usr/local/lib/perl5/5.12.1/i86pc-solaris-64int/CORE" -DGZIP_OS_CODE=3 -DUSE_PPPORT_H inffast.c inffast.c: In function `inflate_fast': inffast.c:324: warning: visibility attribute not supported in this configuration; ignored gcc -B/usr/ccs/bin/ -c -I./zlib-src -DPTR_IS_LONG -I/usr/local/include -I/usr/local/BerkeleyDB.5.0/include -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -O3 -DVERSION=\"2.027\" -DXS_VERSION=\"2.027\" -fPIC "-I/usr/local/lib/perl5/5.12.1/i86pc-solaris-64int/CORE" -DGZIP_OS_CODE=3 -DUSE_PPPORT_H inftrees.c inftrees.c: In function `inflate_table': inftrees.c:330: warning: visibility attribute not supported in this configuration; ignored gcc -B/usr/ccs/bin/ -c -I./zlib-src -DPTR_IS_LONG -I/usr/local/include -I/usr/local/BerkeleyDB.5.0/include -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -O3 -DVERSION=\"2.027\" -DXS_VERSION=\"2.027\" -fPIC "-I/usr/local/lib/perl5/5.12.1/i86pc-solaris-64int/CORE" -DGZIP_OS_CODE=3 -DUSE_PPPORT_H trees.c trees.c:1244: warning: visibility attribute not supported in this configuration; ignored trees.c:1244: warning: visibility attribute not supported in this configuration; ignored trees.c: In function `_tr_init': trees.c:410: warning: visibility attribute not supported in this configuration; ignored trees.c: In function `_tr_align': trees.c:919: warning: visibility attribute not supported in this configuration; ignored trees.c: In function `_tr_stored_block': trees.c:883: warning: visibility attribute not supported in this configuration; ignored trees.c: In function `_tr_flush_block': trees.c:1020: warning: visibility attribute not supported in this configuration; ignored trees.c: In function `_tr_tally': trees.c:1071: warning: visibility attribute not supported in this configuration; ignored gcc -B/usr/ccs/bin/ -c -I./zlib-src -DPTR_IS_LONG -I/usr/local/include -I/usr/local/BerkeleyDB.5.0/include -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -O3 -DVERSION=\"2.027\" -DXS_VERSION=\"2.027\" -fPIC "-I/usr/local/lib/perl5/5.12.1/i86pc-solaris-64int/CORE" -DGZIP_OS_CODE=3 -DUSE_PPPORT_H zutil.c zutil.c: In function `zcalloc': zutil.c:308: warning: visibility attribute not supported in this configuration; ignored zutil.c: In function `zcfree': zutil.c:316: warning: visibility attribute not supported in this configuration; ignored Thanks for any help. -Kurt
Hi Kurt, never seen that error before. What output do you get from running "perl -V" ? Paul
Subject: [PATCH] Compress-Raw-Zlib-2.027 will not compile on SXCE b130 (x86, perl 5.12.1)
The attached patch does not fix the linking problem, but it does get rid if the compiler warnings. I'll be submitting this patch to blead as well. Show quoted text
> The following warnings were emitted before the linkage line tha > outright failed: > > gcc -B/usr/ccs/bin/ -c -I./zlib-src -DPTR_IS_LONG -I/usr/local/include > -I/usr/local/BerkeleyDB.5.0/include -fno-strict-aliasing -pipe > -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -O3 > -DVERSION=\"2.027\" -DXS_VERSION=\"2.027\" -fPIC > "-I/usr/local/lib/perl5/5.12.1/i86pc-solaris-64int/CORE" > -DGZIP_OS_CODE=3 -DUSE_PPPORT_H inffast.c > inffast.c: In function `inflate_fast': > inffast.c:324: warning: visibility attribute not supported in this > configuration; ignored > gcc -B/usr/ccs/bin/ -c -I./zlib-src -DPTR_IS_LONG -I/usr/local/include > -I/usr/local/BerkeleyDB.5.0/include -fno-strict-aliasing -pipe > -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -O3 > -DVERSION=\"2.027\" -DXS_VERSION=\"2.027\" -fPIC > "-I/usr/local/lib/perl5/5.12.1/i86pc-solaris-64int/CORE" > -DGZIP_OS_CODE=3 -DUSE_PPPORT_H inftrees.c > inftrees.c: In function `inflate_table': > inftrees.c:330: warning: visibility attribute not supported in this > configuration; ignored > gcc -B/usr/ccs/bin/ -c -I./zlib-src -DPTR_IS_LONG -I/usr/local/include > -I/usr/local/BerkeleyDB.5.0/include -fno-strict-aliasing -pipe > -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -O3 > -DVERSION=\"2.027\" -DXS_VERSION=\"2.027\" -fPIC > "-I/usr/local/lib/perl5/5.12.1/i86pc-solaris-64int/CORE" > -DGZIP_OS_CODE=3 -DUSE_PPPORT_H trees.c > trees.c:1244: warning: visibility attribute not supported in this > configuration; ignored > trees.c:1244: warning: visibility attribute not supported in this > configuration; ignored > trees.c: In function `_tr_init': > trees.c:410: warning: visibility attribute not supported in this > configuration; ignored > trees.c: In function `_tr_align': > trees.c:919: warning: visibility attribute not supported in this > configuration; ignored > trees.c: In function `_tr_stored_block': > trees.c:883: warning: visibility attribute not supported in this > configuration; ignored > trees.c: In function `_tr_flush_block': > trees.c:1020: warning: visibility attribute not supported in this > configuration; ignored > trees.c: In function `_tr_tally': > trees.c:1071: warning: visibility attribute not supported in this > configuration; ignored > gcc -B/usr/ccs/bin/ -c -I./zlib-src -DPTR_IS_LONG -I/usr/local/include > -I/usr/local/BerkeleyDB.5.0/include -fno-strict-aliasing -pipe > -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -O3 > -DVERSION=\"2.027\" -DXS_VERSION=\"2.027\" -fPIC > "-I/usr/local/lib/perl5/5.12.1/i86pc-solaris-64int/CORE" > -DGZIP_OS_CODE=3 -DUSE_PPPORT_H zutil.c > zutil.c: In function `zcalloc': > zutil.c:308: warning: visibility attribute not supported in this > configuration; ignored > zutil.c: In function `zcfree': > zutil.c:316: warning: visibility attribute not supported in this > configuration; ignored
Subject: make.patch
--- Compress-Raw-Zlib-2.027/Makefile.PL.orig 2010-07-08 13:29:32.480427500 -0400 +++ Compress-Raw-Zlib-2.027/Makefile.PL 2010-07-08 13:29:59.438555000 -0400 @@ -66,7 +66,7 @@ NAME => 'Compress::Raw::Zlib', VERSION_FROM => 'lib/Compress/Raw/Zlib.pm', INC => "-I$ZLIB_INCLUDE" , - DEFINE => "$OLD_ZLIB $WALL -DGZIP_OS_CODE=$GZIP_OS_CODE $USE_PPPORT_H" , + DEFINE => "-DNO_VIZ $OLD_ZLIB $WALL -DGZIP_OS_CODE=$GZIP_OS_CODE $USE_PPPORT_H" , XS => { 'Zlib.xs' => 'Zlib.c'}, 'depend' => { 'Makefile' => 'config.in' }, 'clean' => { FILES => '*.c constants.h constants.xs' },
From: lidl [...] pix.net
On Tue Jun 29 17:44:38 2010, PMQS wrote: Show quoted text
> Hi Kurt, > > never seen that error before. What output do you get from running "perl > -V" ? > > > Paul
Here's the "perl -V" output: Summary of my perl5 (revision 5 version 12 subversion 1) configuration: Platform: osname=solaris, osvers=2.11, archname=i86pc-solaris-64int uname='sunos hostname.example.com 5.11 snv_130 i86pc i386 i86pc ' config_args='-des -Dcc=gcc -B/usr/ccs/bin/ -Doptimize=-O3 -Duse64bitint -Acf_email=nobody@example.com -Accflags=-I/usr/local/include -I/usr/local/BerkeleyDB.5.0/include -Aldflags=-L/usr/local/lib -L/usr/local/BerkeleyDB.5.0/lib -Dlibpth=/usr/local/BerkeleyDB.5.0/lib /usr/local/lib /usr/lib /usr/ccs/lib' hint=recommended, useposix=true, d_sigaction=define useithreads=undef, usemultiplicity=undef useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef use64bitint=define, use64bitall=undef, uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='gcc -B/usr/ccs/bin/', ccflags ='-DPTR_IS_LONG -I/usr/local/include -I/usr/local/BerkeleyDB.5.0/include -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV', optimize='-O3', cppflags='-DPTR_IS_LONG -I/usr/local/include -I/usr/local/BerkeleyDB.5.0/include -fno-strict-aliasing -pipe' ccversion='', gccversion='3.4.3 (csl-sol210-3_4-20050802)', gccosandvers='solaris2.11' 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='gcc -B/usr/ccs/bin/', ldflags =' -L/usr/local/lib -L/usr/local/BerkeleyDB.5.0/lib ' libpth=/usr/local/BerkeleyDB.5.0/lib /usr/lib /usr/ccs/lib libs=-lsocket -lnsl -lgdbm -ldb -ldl -lm -lc perllibs=-lsocket -lnsl -ldl -lm -lc libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a gnulibc_version='' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' ' cccdlflags='-fPIC', lddlflags='-G -L/usr/local/lib -L/usr/local/BerkeleyDB.5.0/lib' Characteristics of this binary (from libperl): Compile-time options: PERL_DONT_CREATE_GVSV PERL_MALLOC_WRAP PERL_USE_SAFE_PUTENV USE_64_BIT_INT USE_LARGE_FILES USE_PERLIO USE_PERL_ATOF Built under solaris Compiled at Jun 25 2010 15:37:27 @INC: /usr/local/lib/perl5/site_perl/5.12.1/i86pc-solaris-64int /usr/local/lib/perl5/site_perl/5.12.1 /usr/local/lib/perl5/5.12.1/i86pc-solaris-64int /usr/local/lib/perl5/5.12.1 .
From: lidl [...] pix.net
On Thu Jul 08 13:34:13 2010, JDHEDDEN wrote: Show quoted text
> The attached patch does not fix the linking problem, but it does get rid > if the compiler warnings. I'll be submitting this patch to blead as well.
Actually, after patching the Makefile.PL with this, it both no longer complains during the build and links properly. lidl@prod01-149: make cp lib/Compress/Raw/Zlib.pm blib/lib/Compress/Raw/Zlib.pm AutoSplitting blib/lib/Compress/Raw/Zlib.pm (blib/lib/auto/Compress/Raw/Zlib) /usr/local/bin/perl /usr/local/lib/perl5/5.12.1/ExtUtils/xsubpp -typemap /usr/local/lib/perl5/5.12.1/ExtUtils/typemap -typemap typemap Zlib.xs > Zlib.xsc && mv Zlib.xsc Zlib.c gcc -B/usr/ccs/bin/ -c -I./zlib-src -DPTR_IS_LONG -I/usr/local/include -I/usr/local/BerkeleyDB.5.0/include -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -O3 -DVERSION=\"2.027\" -DXS_VERSION=\"2.027\" -fPIC "-I/usr/local/lib/perl5/5.12.1/i86pc-solaris-64int/CORE" -DNO_VIZ -DGZIP_OS_CODE=3 -DUSE_PPPORT_H Zlib.c gcc -B/usr/ccs/bin/ -c -I./zlib-src -DPTR_IS_LONG -I/usr/local/include -I/usr/local/BerkeleyDB.5.0/include -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -O3 -DVERSION=\"2.027\" -DXS_VERSION=\"2.027\" -fPIC "-I/usr/local/lib/perl5/5.12.1/i86pc-solaris-64int/CORE" -DNO_VIZ -DGZIP_OS_CODE=3 -DUSE_PPPORT_H adler32.c gcc -B/usr/ccs/bin/ -c -I./zlib-src -DPTR_IS_LONG -I/usr/local/include -I/usr/local/BerkeleyDB.5.0/include -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -O3 -DVERSION=\"2.027\" -DXS_VERSION=\"2.027\" -fPIC "-I/usr/local/lib/perl5/5.12.1/i86pc-solaris-64int/CORE" -DNO_VIZ -DGZIP_OS_CODE=3 -DUSE_PPPORT_H crc32.c gcc -B/usr/ccs/bin/ -c -I./zlib-src -DPTR_IS_LONG -I/usr/local/include -I/usr/local/BerkeleyDB.5.0/include -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -O3 -DVERSION=\"2.027\" -DXS_VERSION=\"2.027\" -fPIC "-I/usr/local/lib/perl5/5.12.1/i86pc-solaris-64int/CORE" -DNO_VIZ -DGZIP_OS_CODE=3 -DUSE_PPPORT_H infback.c gcc -B/usr/ccs/bin/ -c -I./zlib-src -DPTR_IS_LONG -I/usr/local/include -I/usr/local/BerkeleyDB.5.0/include -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -O3 -DVERSION=\"2.027\" -DXS_VERSION=\"2.027\" -fPIC "-I/usr/local/lib/perl5/5.12.1/i86pc-solaris-64int/CORE" -DNO_VIZ -DGZIP_OS_CODE=3 -DUSE_PPPORT_H inflate.c gcc -B/usr/ccs/bin/ -c -I./zlib-src -DPTR_IS_LONG -I/usr/local/include -I/usr/local/BerkeleyDB.5.0/include -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -O3 -DVERSION=\"2.027\" -DXS_VERSION=\"2.027\" -fPIC "-I/usr/local/lib/perl5/5.12.1/i86pc-solaris-64int/CORE" -DNO_VIZ -DGZIP_OS_CODE=3 -DUSE_PPPORT_H uncompr.c gcc -B/usr/ccs/bin/ -c -I./zlib-src -DPTR_IS_LONG -I/usr/local/include -I/usr/local/BerkeleyDB.5.0/include -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -O3 -DVERSION=\"2.027\" -DXS_VERSION=\"2.027\" -fPIC "-I/usr/local/lib/perl5/5.12.1/i86pc-solaris-64int/CORE" -DNO_VIZ -DGZIP_OS_CODE=3 -DUSE_PPPORT_H compress.c gcc -B/usr/ccs/bin/ -c -I./zlib-src -DPTR_IS_LONG -I/usr/local/include -I/usr/local/BerkeleyDB.5.0/include -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -O3 -DVERSION=\"2.027\" -DXS_VERSION=\"2.027\" -fPIC "-I/usr/local/lib/perl5/5.12.1/i86pc-solaris-64int/CORE" -DNO_VIZ -DGZIP_OS_CODE=3 -DUSE_PPPORT_H deflate.c gcc -B/usr/ccs/bin/ -c -I./zlib-src -DPTR_IS_LONG -I/usr/local/include -I/usr/local/BerkeleyDB.5.0/include -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -O3 -DVERSION=\"2.027\" -DXS_VERSION=\"2.027\" -fPIC "-I/usr/local/lib/perl5/5.12.1/i86pc-solaris-64int/CORE" -DNO_VIZ -DGZIP_OS_CODE=3 -DUSE_PPPORT_H inffast.c gcc -B/usr/ccs/bin/ -c -I./zlib-src -DPTR_IS_LONG -I/usr/local/include -I/usr/local/BerkeleyDB.5.0/include -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -O3 -DVERSION=\"2.027\" -DXS_VERSION=\"2.027\" -fPIC "-I/usr/local/lib/perl5/5.12.1/i86pc-solaris-64int/CORE" -DNO_VIZ -DGZIP_OS_CODE=3 -DUSE_PPPORT_H inftrees.c gcc -B/usr/ccs/bin/ -c -I./zlib-src -DPTR_IS_LONG -I/usr/local/include -I/usr/local/BerkeleyDB.5.0/include -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -O3 -DVERSION=\"2.027\" -DXS_VERSION=\"2.027\" -fPIC "-I/usr/local/lib/perl5/5.12.1/i86pc-solaris-64int/CORE" -DNO_VIZ -DGZIP_OS_CODE=3 -DUSE_PPPORT_H trees.c gcc -B/usr/ccs/bin/ -c -I./zlib-src -DPTR_IS_LONG -I/usr/local/include -I/usr/local/BerkeleyDB.5.0/include -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -O3 -DVERSION=\"2.027\" -DXS_VERSION=\"2.027\" -fPIC "-I/usr/local/lib/perl5/5.12.1/i86pc-solaris-64int/CORE" -DNO_VIZ -DGZIP_OS_CODE=3 -DUSE_PPPORT_H zutil.c Running Mkbootstrap for Compress::Raw::Zlib () chmod 644 Zlib.bs rm -f blib/arch/auto/Compress/Raw/Zlib/Zlib.so gcc -B/usr/ccs/bin/ -G -L/usr/local/lib -L/usr/local/BerkeleyDB.5.0/lib Zlib.o adler32.o crc32.o infback.o inflate.o uncompr.o compress.o deflate.o inffast.o inftrees.o trees.o zutil.o -o blib/arch/auto/Compress/Raw/Zlib/Zlib.so \ \ chmod 755 blib/arch/auto/Compress/Raw/Zlib/Zlib.so cp Zlib.bs blib/arch/auto/Compress/Raw/Zlib/Zlib.bs chmod 644 blib/arch/auto/Compress/Raw/Zlib/Zlib.bs Manifying blib/man3/Compress::Raw::Zlib.3 lidl@prod01-150: make test PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/000prereq.t ...... ok t/01version.t ...... ok t/02zlib.t ......... ok t/07bufsize.t ...... ok t/09limitoutput.t .. ok t/18lvalue.t ....... ok t/99pod.t .......... ok All tests successful. Files=7, Tests=700, 6 wallclock secs ( 0.41 usr 0.09 sys + 5.16 cusr 0.44 csys = 6.10 CPU) Result: PASS
Thanks, patch applied.