[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



Hi,

> 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.

hopefully I am not doing something very silly, but during the 
last days I have tried egcs 1.1.2, gcc 2.95 and SUNWspro 4.2 and
have still the same error: perl compiles fine, but not the module.
If you are interested, the perl -V output is below and I will be 
glad to provide more info.

Regards
Alex

----------
perl -V

Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration:
  Platform:
    osname=solaris, osvers=2.6, archname=sun4-solaris
    uname='sunos granus18 5.6 generic_105181-09 sun4u sparc sunw,ultra-5_10 '
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef useperlio=undef d_sfio=undef
  Compiler:
    cc='/all/project_m_t/SUNWspro/bin/cc', optimize='-O', gccversion=
    cppflags='-I/home/eedalf/BerkeleyDB/include'
    ccflags ='-I/home/eedalf/BerkeleyDB/include'
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    alignbytes=8, usemymalloc=y, prototype=define
  Linker and Libraries:
    ld='/all/project_m_t/SUNWspro/bin/cc', ldflags =' -L/home/eedalf/BerkeleyDB/lib'
    libpth=/home/eedalf/BerkeleyDB/lib /lib /usr/lib /usr/ccs/lib /usr/local/lib
    libs=-lsocket -lnsl -ldb -ldl -lm -lc -lcrypt
    libc=/lib/libc.so, so=so, useshrplib=true, libperl=libperl.so
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='  -R
/home/eedalf/lib/perl5/5.00503/sun4-solaris/CORE'
    cccdlflags='-KPIC', lddlflags='-G -L/home/eedalf/BerkeleyDB/lib'


Characteristics of this binary (from libperl): 
  Built under solaris
  Compiled at Jan 12 2000 16:22:49
  @INC:
    /home/eedalf/lib/perl5/5.00503/sun4-solaris
    /home/eedalf/lib/perl5/5.00503
    /home/eedalf/lib/perl5/site_perl/5.005/sun4-solaris
    /home/eedalf/lib/perl5/site_perl/5.005
    .
-----------------
and the printenv |fgrep PATH

PATH=/usr/dt/bin:/usr/openwin/bin:/usr/openwin/demo:/home/eedalf/bin:/usr/ccs/bin:/usr/dt/bin:/usr/openwin/bin:/usr/openwin/demo:/home/eedalf/qt/bin:/Local/teTeX/bin:/usr/ucb:/usr/bin:/opt/local/bin:/usr/local/bin:/usr/sbin:/home/tool/bin:/usr/ucb:/usr/tran/sparc/bin:/usr/klenkes/local/aps/3.0/bin:/usr/ucb:/usr/tran/sparc/bin:/usr/openwin/bin

LD_LIBRARY_PATH=/usr/openwin/lib:/home/eedalf/lib:/home/eedalf/BerkeleyDB/lib:/opt/local/libXpm-3.4.8:/opt/local/libpng-1.0.2/lib:/opt/local/sybase/lib:/home/eedalf/qt/lib:/usr/dt/lib:/opt/local/glib-1.2.3/lib:/opt/local/gtk+-1.2.3/lib:/usr/klenkes/local/aps/3.0/lib/runtime:/usr/openwin/lib:/usr/ucblib

------------------
which ld
/usr/ccs/bin/ld

-----------------
ld -V
ld: Software Generation Utilities - Solaris/ELF (3.0)


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