Hi Rob, PDL folks:  I've looked at this PDL::SHARE warning a bit more.  It 
seems my scripts have this warning only when I use the old -w flag on the perl 
#! 
line:

perl -w -MPDL -e 0

Name "PDL::SHARE" used only once: possible typo at 
/ops/tools/lib/perl5/5.10.0/x86_64-linux-thread-multi/DynaLoader.pm line 
226.

A script which instead runs with 'use warnings' does not trigger this 
warning.

It seems that the PDL::SHARE that is used only once is from:

Basic/Core/Core.xs.PL:

    /*
       "Publish" pointer to this structure in perl variable for use
        by other modules
    */

    sv_setiv(perl_get_sv("PDL::SHARE",TRUE), PTR2IV(&PDL));

But I'm not sure what to do to get around this.

Anyone have any ideas?

Regards,

   Doug

[EMAIL PROTECTED]
Software Engineer III
UCAR - COSMIC, Tel. (303) 497-2611

On Thu, 3 Apr 2008, Sisyphus wrote:

>
> ----- Original Message ----- From: "Doug Hunt" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: Thursday, April 03, 2008 5:02 AM
> Subject: [Perldl] PDL make test problems under perl 5.10
>
>
>> Hi all:  I'm building PDL under the new perl 5.10 now--does anyone know
>> what is going on with the endless
>> 
>> Name "PDL::SHARE" used only once: possible typo at
>> /ops/tools/lib/perl5/5.10.0/x86_64-linux-thread-multi/DynaLoader.pm line
>> 226.
>> 
>> errors?
>> 
>> I'm looking into it, but I'd like to hear if anyone else knows about this.
>> 
>
> Yep, I've been getting the same (on Win32). They're just warnings, but I 
> couldn't find a way of shutting them up.
> And I haven't struck the same type of behaviour with any other modules.
>
> IIRC, it has something to do with running under Test::Harness. If you run the 
> scripts as normal scripts (without using Test::Harness), then the warnings go 
> away. I spent a few hours on it a couple of months ago but didn't get to 
> understand exactly what was going on. It's something that will have to be 
> sorted out.
>
> Cheers,
> Rob

_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to