Skip Menu |

This queue is for tickets about the PGPLOT CPAN distribution.

Report information
The Basics
Id: 58327
Status: resolved
Priority: 0/
Queue: PGPLOT

People
Owner: Nobody in particular
Requestors: cphil [...] cpan.org
Cc: Chris.Phillips [...] csiro.au
AdminCc:

Bug Information
Severity: Important
Broken in: 2.20
Fixed in: 2.21



CC: Chris.Phillips [...] csiro.au
Subject: "PGPLOT::HANDLE" used only once:
Recent versions of perl (I am not sure, but I see this on Debian Etch and OSX Snow Leopard) give a warning each time perl is run: Name "PGPLOT::HANDLE" used only once: possible typo at /System/Library/Perl/5.10.0/darwin-thread-multi-2level/DynaLoader.pm line 230. The following patch seems to fix: 1435c1435 < sv_setiv(perl_get_sv("PGPLOT::HANDLE",TRUE|GV_ADDMULTI), (IV) (void*) &myPGPLOT_handle); --- Show quoted text
> sv_setiv(perl_get_sv("PGPLOT::HANDLE",TRUE), (IV) (void*)
&myPGPLOT_handle);
On Thu Jun 10 21:22:39 2010, CPHIL wrote: Show quoted text
> Recent versions of perl (I am not sure, but I see this on Debian Etch > and OSX Snow Leopard) give a warning each time perl is run: > > Name "PGPLOT::HANDLE" used only once: possible typo at > /System/Library/Perl/5.10.0/darwin-thread-multi-2level/DynaLoader.pm > line 230. > > The following patch seems to fix: > > 1435c1435 > < sv_setiv(perl_get_sv("PGPLOT::HANDLE",TRUE|GV_ADDMULTI), (IV) > (void*) &myPGPLOT_handle); > ---
> > sv_setiv(perl_get_sv("PGPLOT::HANDLE",TRUE), (IV) (void*)
> &myPGPLOT_handle);
Thanks for that. Seems to work What does GV_ADDMULTI do?? Karl
CC: "cphil [...] cpan.org" <cphil [...] cpan.org>
Subject: Re: [rt.cpan.org #58327] "PGPLOT::HANDLE" used only once:
Date: Wed, 15 Dec 2010 15:42:35 +1100
To: "bug-PGPLOT [...] rt.cpan.org" <bug-PGPLOT [...] rt.cpan.org>
From: Chris Phillips <Chris.Phillips [...] csiro.au>
No idea! I just googled the solution..... ------------------------------------------------------------ Chris Phillips CSIRO ATNF eVLBI project scientist Office: (+61) (0)2 93724608 Mobile: (+61) (0)439487601 On 15/12/2010, at 3:41 PM, Karl Glazebrook via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=58327 > > > On Thu Jun 10 21:22:39 2010, CPHIL wrote:
>> Recent versions of perl (I am not sure, but I see this on Debian Etch >> and OSX Snow Leopard) give a warning each time perl is run: >> >> Name "PGPLOT::HANDLE" used only once: possible typo at >> /System/Library/Perl/5.10.0/darwin-thread-multi-2level/DynaLoader.pm >> line 230. >> >> The following patch seems to fix: >> >> 1435c1435 >> < sv_setiv(perl_get_sv("PGPLOT::HANDLE",TRUE|GV_ADDMULTI), (IV) >> (void*) &myPGPLOT_handle); >> ---
>>> sv_setiv(perl_get_sv("PGPLOT::HANDLE",TRUE), (IV) (void*)
>> &myPGPLOT_handle);
> > > Thanks for that. Seems to work > > What does GV_ADDMULTI do?? > > Karl > > >
This was released by Karl in 2.21, in Jan 2011. GV_ADDMULTI notes at https://grokbase.com/t/perl/xs/084w994x1t/used-only-once-in-perl-5-10 say it's basically to tell Perl it's not just used once, i.e. its purpose is explicitly to turn off that warning.