On Mon, 2 Apr 2001, Craig A. Berry wrote:

> I notice that Configure.com looks for the translation of the logical name 
> UCX$INET_HOST_NAME in attempting to determine the name of the host that Perl 
> is being configured on.  On a test system with TCP/IP services 5.1, I do not 
> see that logical name present but I do see UCX$INET_HOST (as well as 
> TCPIP$INET_HOST).  Is this a Configure.com bug or did the logical name 
> change at some point in the history of UCX/TCPIP Services?

It does not look like a bug to me since it is trying to find the FQDN at
the point in question:

$  IF myhostname.eqs."" THEN myhostname = F$TRNLNM("UCX$INET_HOST_NAME")
$  IF myhostname.eqs."".and. -
      F$TRNLNM("UCX$INET_HOST") .nes. "" .and. -
      F$TRNLNM("UCX$INET_DOMAIN") .nes. "" THEN -
     myhostname = F$TRNLNM("UCX$INET_HOST") + "." + F$TRNLNM("UCX$INET_DOMAIN")

So it ought to drop through to the values that your system has (does it
not do so?).

I note on a VAX running VMS V5.5-2 and UCX 2.0 the logical name
UCX$INET_HOST and UCX$INET_DOMAIN but I do not see UCX$INET_HOST_NAME.  
Nevertheless configure.com sets myhostname to the FQDN on that machine.

Clearly something like TCPIP$* would be more recent than UCX 4.x.  We
should probably add some checks for them.  I note that on UCX 5.0A I
have all of UCX$INET_HOST, UCX$INET_DOMAIN, TCPIP$INET_HOST, and 
TCPIP$INET_DOMAIN.  We might want to ponder the implications of a patch
such as:

--- configure.com;1     Mon Apr  2 12:10:24 2001
+++ configure.com       Mon Apr  2 14:36:38 2001
@@ -1932,6 +1932,10 @@
       F$TRNLNM("UCX$INET_HOST") .nes. "" .and. -
       F$TRNLNM("UCX$INET_DOMAIN") .nes. "" THEN - 
      myhostname = F$TRNLNM("UCX$INET_HOST") + "." + F$TRNLNM("UCX$INET_DOMAIN") 
+$  IF myhostname.eqs."".and. -
+      F$TRNLNM("TCPIP$INET_HOST") .nes. "" .and. -
+      F$TRNLNM("TCPIP$INET_DOMAIN") .nes. "" THEN - 
+     myhostname = F$TRNLNM("TCPIP$INET_HOST") + "." + F$TRNLNM("TCPIP$INET_DOMAIN") 
 $  IF myhostname.eqs."" THEN myhostname = F$TRNLNM("TCPWARE_DOMAINNAME")
 $  IF myhostname.eqs."" THEN myhostname = F$TRNLNM("NEWS_ADDRESS")
 $  IF myhostname.eqs."" THEN myhostname = F$TRNLNM("SYS$NODE") - "::"
End of Patch.

BTW all of those older logicals:  ARPANET_HOST_NAME INTERNET_HOST_NAME
MULTINET_HOST_NAME TCPWARE_DOMAINNAME, etc. are a conglomeration of
various VMS build configuation scripts from all over the net as well as
Charles Bailey's docs for the NNTP server.

Peter Prymmer


Reply via email to