Re: bugs
Michael Sperber <[email protected]> Sun, 30 Oct 2011 09:19:43 +0100
| Newsgroups | gmane.lisp.scheme.scheme48 |
|---|---|
| Message-ID | <[email protected]> |
"=?GBK?B?48a6vQ==?=" <[email protected]> writes: > My system is opensuse 11.4,I download the source code (v1.8) and compile it .During 'make',a small error occured.I didn't record it .but i will try to explain it to you. > file: ./c/unix/socket.c > line: 354 > func:gethostbyname_thread > host->h_addr--->I was told that struct host has no member 'h_addr' > host---------->struct hostent > The same error happend in func s48_get_host_by_name (line 385) > and i checked my defination of struct hostent(netdb.h) > > > struct hostent > { > char *h_name; /* Official name of host. */ > char **h_aliases; /* Alias list. */ > int h_addrtype; /* Host address type. */ > int h_length; /* Length of address. */ > char **h_addr_list; /* List of addresses from name server. */ > #if defined __USE_MISC || defined __USE_GNU > # define h_addr h_addr_list[0] /* Address, for backward compatibility.*/ > #endif > }; > > > > It seems some thing wrong with the marco defination.so i changed the h_addr to > h_addr_list[0] ,and it wored.I don't know whether other distributions has this problem. > hope it maybe helps to you This has been reported before. Here's how to work around it: http://article.gmane.org/gmane.lisp.scheme.scheme48/2405 -- Cheers =8-} Mike Friede, Völkerverständigung und überhaupt blabla