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

Re: [ID 20000322.005] -w gives DynaLoader::dl_error redefined warning from static load; -Mwarnings doesn't

Thread Previous | Thread Next
From:
Gurusamy Sarathy
Date:
March 22, 2000 10:19
Subject:
Re: [ID 20000322.005] -w gives DynaLoader::dl_error redefined warning from static load; -Mwarnings doesn't
Message ID:
200003221818.KAA06123@maul.ActiveState.com
On Wed, 22 Mar 2000 12:28:14 +0100, Dominic Dunlop wrote:
>$ perl -w -MIO -e 1      # (Or any XS module of your choice)

I don't think the bit about any XS module is true.  It only happens
for IO here.

>Subroutine DynaLoader::dl_error redefined at 
>/usr/local/lib/perl5/5.6.0/powerpc-machten/DynaLoader.pm line 93.

Patch attached.


Sarathy
gsar@ActiveState.com
-----------------------------------8<-----------------------------------
Change 5884 by gsar@auger on 2000/03/22 18:16:45

	avoid loading both XSLoader and DynaLoader (avoids dl_error()
	redefinition warnings when statically linked)

Affected files ...

... //depot/perl/ext/IO/lib/IO/File.pm#11 edit

Differences ...

==== //depot/perl/ext/IO/lib/IO/File.pm#11 (text) ====
Index: perl/ext/IO/lib/IO/File.pm
--- perl/ext/IO/lib/IO/File.pm.~1~	Wed Mar 22 10:16:50 2000
+++ perl/ext/IO/lib/IO/File.pm	Wed Mar 22 10:16:50 2000
@@ -113,9 +113,8 @@
 use File::Spec;
 
 require Exporter;
-require DynaLoader;
 
-@ISA = qw(IO::Handle IO::Seekable Exporter DynaLoader);
+@ISA = qw(IO::Handle IO::Seekable Exporter);
 
 $VERSION = "1.08";
 
End of Patch.

Thread Previous | 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