Subject: | "Attempt to free unreferenced scalar" for invalid macros |
Date: | Sat, 28 Jul 2012 02:12:57 -0400 |
To: | bug-Socket [...] rt.cpan.org |
From: | "Daniel Macks" <dmacks [...] netspace.org> |
Using Socket-2.002 (installed via fink) on OS X on my intel Mac, I get a diagnostic whenever I try to access a Socket::* macro that doesn't exist. For example, TCP_KEEPALIVE is defined but TCP_oops is not...
% perl -MSocket -e 'print &Socket::TCP_KEEPALIVE, "\n"'
16
% perl -MSocket -e 'print &Socket::TCP_oops, "\n"'
TCP_oops is not a valid Socket macro at -e line 1
Attempt to free unreferenced scalar: SV 0x804b10, Perl interpreter: 0x800000 at -e line 1.
I see the same results for OS X 10.6 (perl 5.10.0) in either 32-bit or 64-bit mode and for OS X 10.7 (perl 5.12.3). The free... diagnostic does not appear for Socket-1.80 (as shipped in OS X 10.6 perl 5.10.0 itself) or Socket-1.87_01 (as shipped with OS X 10.7 perl 5.12.3 itself).
dan
--
Daniel Macks
dmacks@netspace.org