[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: perl problem



On Wed, Jul 10, 2002 at 02:54:00PM +0200, Bart Schuller wrote:
> On Wed, Jul 10, 2002 at 05:05:26PM +1000, Brian May wrote:
> > Can any perl experts see what is wrong here?
> > 
> > Starting amavisd: Bareword "SO_REUSEPORT" not allowed while "strict subs" in use at /usr/share/perl/5.6.1/IO/Socket/INET.pm line 159.
> 
> Looks like a bug in perl's Socket.pm (/usr/lib/perl/5.6.1/Socket.pm)
> where SO_REUSEPORT is exported by default, but there's no prototype for
> it lower down. I'd have to look in the source to see whether the
> function itself is defined in the XS part, but I expect it isn't.

A prototype might be a good idea, but that shouldn't break compilation
in the manner described, because there's an AUTOLOAD there pointing to
the constant() function in Socket's XS portion. constant() only defines
SO_REUSEPORT if SO_REUSEPORT is defined in the system header files
(which it isn't here), and otherwise sets $! to ENOENT; however, that
doesn't cause a problem because the AUTOLOAD is only called at run-time.

-- 
Colin Watson                                  [cjwatson@flatline.org.uk]


-- 
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: