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

Bug#2184: perl's sys/socket.ph causes warning



Package: perl
Version: 5.002-3

For a long time I couldn't figure out where this message was coming from:

  Number found where operator expected at (eval 180) line 1, near ") 0"
          (Missing operator before 0?)

Apparently this is provoked by perl5 programs which:

  require 'sys/socket.ph';

Tracing the error was difficult, but I suspect it may be caused by the
following code in /usr/lib/perl5/i486-linux/5.002/linux/types.ph:

    if (!defined &NULL) {
	eval 'sub NULL {(( &void *) 0);}';
    }

This is but one of several null-pointer-casts which will probably only cause
trouble for programs that try to use the files they're contained in.

I think this is a bug in h2ph, but that has its own caveat emptor, found in
the h2ph man page (which, btw, isn't installed by the perl package):

       It's  only  intended  as  a  rough  tool.  You may need to
       dicker with the files produced.

So, can we dicker with the files to at least eliminate the warning, or is
there a better plan?

Thanks.

--
Robert Leslie
rob@mars.org


Reply to: