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

 

     [nocol-users] Undefined subroutine


I'm having a problem with setting up hostmon on one of my clients.
When starting hostmon-client, I get the message

"Undefined subroutine &Socket::PF_INET called at ./hostmon-client line 120."

At line 120, the code appears as such...
----------------------------------------------
     ($AF_INET, $SOCK_STREAM, $SOCK_DGRAM) = (2, 1, 2); # default values
     if ( $] =~ /^5\.\d+$/ ) {        # perl v5
         # print STDERR "debug: Check for perl5 passed...\n";
         eval "use Socket";
->       $AF_INET = &Socket'PF_INET; #'
         $SOCK_STREAM = &Socket'SOCK_STREAM; #'
         $SOCK_DGRAM  = &Socket'SOCK_DGRAM;  #'
     }
     else {  # perl v4
-------------------------------------------

I've searched the mailing list archive and found nothing on the topic.

Does anyone have an idea of what's going on?

~min