LWP error: "...not exported by the Socket module"

Leo Ramos (leo@netgate.net)
Thu, 22 Jan 1998 10:05:56 -0800 (PST)


Hi,

I've had this error now on two different machines.  If 
someone would care to enlighten me on its cause, that
would be a big help.

I have written a script using perl 5.004_0x  and LWP 5.18 on
Solaris.  First I was using a Solaris 2.5.1 machine, now on
a Solaris 2.6 machine.  Same problem occurred:  the 
script ran OK for awhile, then suddenly no longer would
run, giving an error message.  No changes were made to perl
or LWP which might have caused the script to fail.

The  script basically checks a number of web pages on the 
internet, and sends back a report based on the contents of
those pages.  Kind of like a content-checking robot.

Here are the messages:
"pack_sockaddr_in" is not exported by the Socket module at
/my/path/lib/perl5/site_perl/LWP/Socket.pm line 43
"unpack_sockaddr_in" is not exported by the Socket module at
/my/path/lib/perl5/site_perl/LWP/Socket.pm line 43
"INADDR_ANY" is not exported by the Socket module at ....
"inet_ntoa" is not exported by the Socket module at ....
"inet_aton" is not exported by the Socket module at ....

all referencing LWP/Socket.pm line 43

What puzzles me is not only why there is an error, but
mainly why it did not show up at all, and the script 
ran successfully many times, but now suddenly the
error does show up every time.  

Again, this has happened on 2 different machines in 
the same way (though on the first machine the script
succeeded more times than on the 2nd machine before 
failing).  

-Puzzled, and grateful for any insights.

Leo

                L E O   R A M O S
	  650 964 5569  *  leo@netgate.net