Undefined subroutine "main'

Eric Morgan (eric_morgan@library.lib.ncsu.edu)
14 Sep 1994 16:05:10 U


Undefined subroutine "main'SEC_BASE"


Folks,

Upon trying to use the "get" program from libwww-perl-0.30 I get the following
error:

  Undefined subroutine "main'SEC_BASE" called at
/usr/local/lib/perl/sys/socket.ph line 19

I am new to this list, so please bear with me. My goal is to use libwww-perl
and MOMspider to validate the URLs of my WWW server.

This is what I've done:

  1. I downloaded and installed the libwww-perl and MOMspider archives.
  2. I created an environment variable with "setenv LIBWWW_PERL
/usr/local/www/httpd_1.3/cgi-bin/libwww-perl-0.30"
  3. I ran h2ph.
  4. Upon trying "get http://www.lib.ncsu.edu/" I got the error "Can't locate
mach/machine/vm_types.ph in @INC (did you run h2ph?) at
/usr/local/lib/perl/sys/types.ph line 132."
  5. I edited /usr/local/lib/perl/sys/types.ph and hardcoded the location of
vm_types.ph into type.ph.
  6. Upon trying "get http://www.lib.ncsu.edu/" again I now get "Undefined
subroutine "main'SEC_BASE" called at /usr/local/lib/perl/sys/socket.ph line
19."

Now I'm stuck. How do I define "main'SEC_BASE"?

What do I do now? My OS is OS/F 2.0 and my perl distribution is 4.036.

Eric Lease Morgan, Systems Librarian
NCSU Libraries