[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]

Solaris 2.6 + egcs 1.1.2 + Perl 5.005_03: relocation error



Dear porters,

I have read the hints/solaris_2.sh and have used the

./Configure -Dprefix=/home/eedalf -Dlocincpth=/home/eedalf/BerkeleyDB/include
-Dloclibpth=/home/eedalf/BerkeleyDB/lib -Dcc='/home/eedalf/bin/gcc -B/usr/ccs/bin/'

to configure the: perl, version 5.005_03 built for sun4-solaris

I have also set: GCC_EXEC_PREFIX=/usr/ccs/bin/

But I keep getting messages like this one (for Compress::Zlib 1.08):

$ perl Makefile.PL PREFIX=/home/eedalf INC='-I/opt/local/zlib-1.1.2/include/'
  .........

$ make
  .........
AutoSplitting blib/lib/Compress/Zlib.pm (blib/lib/auto/Compress/Zlib)
/home/eedalf/bin/perl -I/home/eedalf/lib/perl5/5.00503/sun4-solaris -I/home/eedalf/lib/perl5/5.00503
/home/eedalf/lib/perl5/5.00503/ExtUtils/xsubpp  -typemap
/home/eedalf/lib/perl5/5.00503/ExtUtils/typemap -typemap typemap Zlib.xs >xstmp.c && mv xstmp.c
Zlib.c
/home/eedalf/bin/gcc -B/usr/ccs/bin/ -B/usr/ccs/bin/ -c -I/opt/local/zlib-1.1.2/include/
-I/home/eedalf/BerkeleyDB/include -O    -DVERSION=\"1.08\" -DXS_VERSION=\"1.08\" -fPIC
-I/home/eedalf/lib/perl5/5.00503/sun4-solaris/CORE  Zlib.c
Running Mkbootstrap for Compress::Zlib ()
chmod 644 Zlib.bs
LD_RUN_PATH="" /home/eedalf/bin/gcc -B/usr/ccs/bin/ -B/usr/ccs/bin/ -o
blib/arch/auto/Compress/Zlib/Zlib.so  -G -L/home/eedalf/BerkeleyDB/lib Zlib.o     
gcc: file path prefix `/usr/ccs/bin/' never used
chmod 755 blib/arch/auto/Compress/Zlib/Zlib.so
cp Zlib.bs blib/arch/auto/Compress/Zlib/Zlib.bs
chmod 644 blib/arch/auto/Compress/Zlib/Zlib.bs
Manifying blib/man3/Compress::Zlib.3

$ make test
PERL_DL_NONLAZY=1 /home/eedalf/bin/perl -Iblib/arch -Iblib/lib
-I/home/eedalf/lib/perl5/5.00503/sun4-solaris -I/home/eedalf/lib/perl5/5.00503 -e 'use Test::Harness
qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
t/examples..........Can't load 'blib/arch/auto/Compress/Zlib/Zlib.so' for module Compress::Zlib:
ld.so.1: /home/eedalf/bin/perl: fatal: relocation error: file blib/arch/auto/Compress/Zlib/Zlib.so:
symbol gzerror: referenced symbol not found at
/home/eedalf/lib/perl5/5.00503/sun4-solaris/DynaLoader.pm line 169.

 at ./examples/filtdef line 3
BEGIN failed--compilation aborted at ./examples/filtdef line 3.
FAILED tests 1-13
        Failed 13/13 tests, 0.00% okay
t/zlib..............Can't load 'blib/arch/auto/Compress/Zlib/Zlib.so' for module Compress::Zlib:
ld.so.1: /home/eedalf/bin/perl: fatal: relocation error: file blib/arch/auto/Compress/Zlib/Zlib.so:
symbol gzerror: referenced symbol not found at
/home/eedalf/lib/perl5/5.00503/sun4-solaris/DynaLoader.pm line 169.

 at t/zlib.t line 2
BEGIN failed--compilation aborted at t/zlib.t line 2.
dubious
        Test returned status 2 (wstat 512, 0x200)
Failed Test  Status Wstat Total Fail  Failed  List of failed
-------------------------------------------------------------------------------
t/examples.t                 13   13 100.00%  1-13
t/zlib.t          2   512    ??   ??       %  ??
Failed 2/2 test scripts, 0.00% okay. 13/13 subtests failed, 0.00% okay.
make: *** [test_dynamic] Error 2

I get similar errors for other Perl modules :-(

Does anyone have a hint for me? I can not change egcs 1.1.2
because of some internal library, that I have to use and older
egcs is probably not the reason for these errors (all perl test
were passed ok).

I have read a posting at deja.com about setting LD_RUN_PATH "to the 
absolute path of F<../sharedlibdir> before you _build_ your module".,
but don't understand what would it be for me (/home/eedalf/lib ?).
I can not find any additional information about this variable.

Thank you
/Alex


[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]