develooper Front page | perl.perl5.porters | Postings from March 2000

[ID 20000330.001] [PATCH Compress-Zlib-1.08] SubroutineDynaLoader::dl_error redefined on static build

Thread Next
Dominic Dunlop
March 30, 2000 00:02
[ID 20000330.001] [PATCH Compress-Zlib-1.08] SubroutineDynaLoader::dl_error redefined on static build
Message ID:
This is a bug report for perl from,
generated with the help of perlbug 1.28 running under perl v5.6.0.

[Please enter your report here]
[Third shot, in the hope that perlbug's up again.]

(Yes, this does look like another roughly contemporaneous report.  But
it's different really.)

If perl is statically-linked, and in the absence of the patch below,
make test for Compress::Zlib gives

PERL_DL_NONLAZY=1 ./perl -Iblib/arch -Iblib/lib
erpc-machten -I/usr/local/lib/perl5/5.6.0 -e 'use Test::Harness
qw(&runtests $ve
rbose); $verbose=0; runtests @ARGV;' t/*.t
t/examples..........NOK 6Subroutine DynaLoader::dl_error redefined at
/lib/perl5/5.6.0/powerpc-machten/ line 93.
t/examples..........NOK 13FAILED tests 2, 4, 6, 8, 11, 13
         Failed 6/13 tests, 53.85% okay
t/zlib..............Subroutine DynaLoader::dl_error redefined at
perl5/5.6.0/powerpc-machten/ line 93.
Failed Test  Status Wstat Total Fail  Failed  List of failed
t/examples.t                 13    6  46.15%  2, 4, 6, 8, 11, 13
Failed 1/2 test scripts, 50.00% okay. 6/167 subtests failed, 96.41%
make: *** [test_static] Error 255

Everything is fixed (for me) by stopping the module from requiring
DynaLoader.  The patch does the same thing as
Change 5884 by gsar@auger on 2000/03/22
did to the IO module.  It needs testing on a dynamically-linked

--- Compress-Zlib-1.08/ Sun Jan  9 17:08:38 2000
+++ Compress-Zlib-1.08/  Mon Mar 27 22:03:49 2000
@@ -12,7 +12,6 @@

  require 5.004 ;
  require Exporter;
-require DynaLoader;
  use AutoLoader;
  use Carp ;
  use IO::Handle ;
@@ -23,7 +22,7 @@

  $VERSION = "1.08" ;

-@ISA = qw(Exporter DynaLoader);
+@ISA = qw(Exporter);
  # Items to export into callers namespace by default. Note: do not
  # names by default without a very good reason. Use EXPORT_OK instead.
  # Do not simply export all your public functions/methods/constants.

[Please do not change anything below this line]
Site configuration information for perl v5.6.0:

Configured by domo at Thu Mar 23 20:29:52 WET 2000.

Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration:
     osname=machten, osvers=4.1.4, archname=powerpc-machten
     uname='machten ppp100 5 0.5 powerpc '
     hint=recommended, useposix=true, d_sigaction=define
     usethreads=undef use5005threads=undef useithreads=undef 
     useperlio=undef d_sfio=undef uselargefiles=define
     use64bitint=undef use64bitall=undef uselongdouble=undef usesocks=undef
     cc='cc', optimize='-O2 -fomit-frame-pointer', gccversion=2.8.1
     cppflags='-DNOTDEF_MACHTEN -DREG_INFTY=2047 -I/usr/local/include'
     ccflags ='-DNOTDEF_MACHTEN -DREG_INFTY=2047 -I/usr/local/include'
     stdchar='char', d_stdstdio=undef, usevfork=true
     intsize=4, longsize=4, ptrsize=4, doublesize=8
     d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
     ivtype='long', ivsize=4, nvtype='double', nvsize=8, 
Off_t='off_t', lseeksize=4
     alignbytes=8, usemymalloc=y, prototype=define
   Linker and Libraries:
     ld='ld', ldflags =' -Xlstack=1048576 -L/usr/local/lib'
     libpth=/usr/local/lib /usr/lib
     libs=-lndbm -lgdbm -ldb -lm -lc
     libc=/usr/lib/libc.a, so=so, useshrplib=false, libperl=libperl.a
   Dynamic Linking:
     dlsrc=dl_none.xs, dlext=none, d_dlsymun=undef, ccdlflags=''
     cccdlflags='', lddlflags=''

Locally applied patches:

@INC for perl v5.6.0:

Environment for perl v5.6.0:
     LANG (unset)
     LANGUAGE (unset)
     LOGDIR (unset)
     PERL_BADLANG (unset)
Dominic Dunlop

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About