I am upgrading from analog 4.13 to the latest version 5.31. I am running
analog on an HP/Compaq alpha with OS Tru64 UNIX 5.1a. The build process 
works fine (using gcc version 3.2) but the resultant binary fails to 
resolve ip numbers so the dnscache file I produce is now useless. This 
worked fine in version 4.13. I've even recompiled 4.13 (in case anything 
has change on the system in the meantime) and it still works fine. 

Running version 5.31 with DEBUG ON I see a succession of messages of the
form

D: Looking up 161.139.191.83:
D:   can't resolve

with no successful resolutions at all.

I'm no C programmer but took a look at the code anyway to see if I could
see an difference between version 4.13 and 5.31. The file alias.c is where
the error report was coming from and looking at that I changed line 604
from

tempp = gethostbyaddr(addrp, sizeof(IN_ADDR_T), AF_INET)

first to

tempp = gethostbyaddr(addrp, sizeof(struct in_addr), AF_INET);

which is the form of the line from the version 4.13 code.

Recompiling I find DNS resolution now works. I then tried changing the line to

tempp = gethostbyaddr(addrp, sizeof(in_addr_t), AF_INET);

and again DNS resolution is successful.

Whether either of these is strictly correct I don't know since as I say I'm
no C programmer. 

Perhaps someone could confirm this fix is valid or respond with a more
correct fix.

Thanks

Keith 


+------------------------------------------------------------------------
|  TO UNSUBSCRIBE from this list:
|    http://lists.isite.net/listgate/analog-help/unsubscribe.html
|
|  Digest version: http://lists.isite.net/listgate/analog-help-digest/
|  Usenet version: news://news.gmane.org/gmane.comp.web.analog.general
|  List archives:  http://www.analog.cx/docs/mailing.html#listarchives
+------------------------------------------------------------------------

Reply via email to