[Sumover-dev] Re: Reg: VIC on OS X

Douglas Kosovic douglask at itee.uq.edu.au
Mon Aug 10 22:15:45 BST 2009


Hi Akhila,

> I made vic to work with my application but it's still posing some problems
> which I don't comprehend completely.
> 
> I get this message everytime I run vic.
> 
> vic: getaddrinfo: LOCALHOST: Bad hints
> 
> What does addrinfo has to do with vic? Does hostname play any role in vic?

The error message seems to be coming from the IPv6 code in 
common/src/net_udp.c

Is there any reason you need to build vic with IPv6 support or use IPv6? 
If you look at the net_udp.c, gethostname is used to get the hostname.

But looking at Apples getaddrinfo implementation:
 
http://www.google.com/codesearch/p?hl=en&sa=N&cd=2&ct=rc#6qb5uNIi0eg/Libinfo-129.2/gen.subproj/getaddrinfo.c&q=getaddrinfo

The error message only happens if hints->ai_addrlen isn't initilised to 
zero. In your modifications have you forgotten to initialise ai_addrlen 
to zero somewhere?

> And one thing I observed is, the vic I compiled is 7.3 MB but the one from
> the website is 15.8MB. Why is the difference? Are there any additional steps
> to compile vic? Please let me know.

7.3 MB is about the same size I have for vic on linux, 15.8 MB seems 
pretty large, I don't have a Mac handy, but can't rember vic being that 
large for the version I built (it may be statically linked with Tcl/Tk I 
guess).


Cheers,
Doug



More information about the Sumover-dev mailing list