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