From:	SMTP%"MWC@LIBRARY.sannet.gov" 26-JAN-1995 12:01:04.76
To:	EVERHART
CC:	
Subj:	Re: PINE on VMS

From: MWC@LIBRARY.sannet.gov
X-Newsgroups: comp.os.vms
Subject: Re: PINE on VMS
Message-ID: <950126084222.246008a3@LIBRARY.sannet.gov>
Date: Thu, 26 Jan 1995 8:42:21 -0800 (PST)
Organization: Info-Vax<==>Comp.Os.Vms Gateway
X-Gateway-Source-Info: Mailing List
Lines: 65
To: Info-VAX@Mvb.Saic.Com

mandrews@fragile.termfrost.org (Mike Andrews) writes:
>I feel stupid for asking this, but: has anyone gotten it to compile using
>NETLIB instead of Multinet?  It's not able to find get_local_host_name when
>it links, and the comment in os_vms.c there says it's defined in some other
>(nonexistant) file, and a search of the source tree confirms it isn't defined
>_anywhere_...  Anyone want to steer me in the right direction?  I know this
>has got to be REALLY simple....

Randy Dodge posted this information on December 3rd:
>From: randy@kean.ucs.mun.ca (Randy Dodge, Tech Support Manager C&C)
>Installation problem - module os_vms.c refers to a
>routine get_local_host_name which seems to have gone missing in the
>current code. I cut the code from the v 3.89 source and pasted it into
>[c-client]tcp_vmsl.c and rebuilt to fix the unresolved reference.
>
>My setup is VMS (5.5-2), UCX(3.1) and NETLIB (V 1.7)
             
The missing code is as follows:
$ diff PKG_ROOT:[PINE_3-91.C-CLIENT]TCP_VMSL.C;2 ;1
************
File PKG_ROOT:[PINE_3-91.C-CLIENT]TCP_VMSL.C;2
  104   
  105   /*
  106    | return the local hostname in Buffer whose size is Size. This is a
  107    | replacement to the Gethostname() which does not exist in Nelib.
  108    */
  109   get_local_host_name(buffer, size)
  110   char	*buffer;
  111   int	size;
  112   {
  113     int	status;
  114   
  115     struct dsc$descriptor LocalhostDesc = { 0, DSC$K_DTYPE_T,
  116   	DSC$K_CLASS_D, NULL };	/* Used to receive the local hostname */
  117   
  118     status = net_get_hostname(&LocalhostDesc);
  119     if((status & 0x1) == 0) {
  120   	char	tmp[256];
  121   	sprintf(tmp, "Can't get local hostname, status=%d", status);
  122   	mm_log(tmp, ERROR);
  123   	return NIL;
  124     }
  125     strncpy(buffer, LocalhostDesc.dsc$a_pointer, LocalhostDesc.dsc$w_length);
  126     buffer[LocalhostDesc.dsc$w_length] = '\0';
  127     str$free1_dx(&LocalhostDesc);
  128   }
  129   
  130   
  131   
******
File PKG_ROOT:[PINE_3-91.C-CLIENT]TCP_VMSL.C;1
  104   
************

Number of difference sections found: 1
Number of difference records found: 27

DIFFERENCES /IGNORE=()/MERGED=1-
    PKG_ROOT:[PINE_3-91.C-CLIENT]TCP_VMSL.C;2-
    PKG_ROOT:[PINE_3-91.C-CLIENT]TCP_VMSL.C;1

--
Margaret Clark: mwc@library.sannet.gov  | San Diego Data Processing Corp
Voice:          619.581.9916            | 5975 Santa Fe St
Fax:            619.581.9606            | San Diego, CA 92109
