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
From:
Dominic Dunlop
Date:
March 30, 2000 00:02
Subject:
[ID 20000330.001] [PATCH Compress-Zlib-1.08] SubroutineDynaLoader::dl_error redefined on static build
Message ID:
p04310100b508b92e0e09@[192.168.1.4]
This is a bug report for perl from domo@computer.org,
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
-I/usr/local/lib/perl5/5.6.0/pow
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
/usr/local
/lib/perl5/5.6.0/powerpc-machten/DynaLoader.pm 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
/usr/local/lib/
perl5/5.6.0/powerpc-machten/DynaLoader.pm line 93.
t/zlib..............ok
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%
okay.
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
architecture.

--- Compress-Zlib-1.08/Zlib.pm~ Sun Jan  9 17:08:38 2000
+++ Compress-Zlib-1.08/Zlib.pm  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
export
  # 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]
-----------------------------------------------------------------
---
Flags:
     category=library
     severity=medium
---
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:
   Platform:
     osname=machten, osvers=4.1.4, archname=powerpc-machten
     uname='machten ppp100 5 0.5 powerpc '
     config_args='-des'
     hint=recommended, useposix=true, d_sigaction=define
     usethreads=undef use5005threads=undef useithreads=undef 
usemultiplicity=undef
     useperlio=undef d_sfio=undef uselargefiles=define
     use64bitint=undef use64bitall=undef uselongdouble=undef usesocks=undef
   Compiler:
     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:
     /usr/local/lib/perl5/5.6.0/powerpc-machten
     /usr/local/lib/perl5/5.6.0
     /usr/local/lib/perl5/site_perl/5.6.0/powerpc-machten
     /usr/local/lib/perl5/site_perl/5.6.0
     /usr/local/lib/perl5/site_perl
     .

---
Environment for perl v5.6.0:
     HOME=/home/domo
     LANG (unset)
     LANGUAGE (unset)
     LD_LIBRARY_PATH=/usr/lib
     LOGDIR (unset)
 
PATH=/sbin:/usr/sbin:/sbin:/usr/sbin:/home/domo/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11/bin:/usr/libexec
     PERL_BADLANG (unset)
     SHELL=/bin/bash
-- 
Dominic Dunlop

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About