22 Apr 07:56
[s48-1.8]: glibc 2.8/gcc4.3.0 build problem
From: Brad Walker <me <at> bradmwalker.com>
Subject: [s48-1.8]: glibc 2.8/gcc4.3.0 build problem
Newsgroups: gmane.lisp.scheme.scheme48
Date: 2008-04-22 05:57:53 GMT
Subject: [s48-1.8]: glibc 2.8/gcc4.3.0 build problem
Newsgroups: gmane.lisp.scheme.scheme48
Date: 2008-04-22 05:57:53 GMT
Hello,
I'm packaging scheme48 for Fedora 9 and I ran into build trouble. The
build process throws this error:
c/unix/socket.c: In function 'gethostbyname_thread':
c/unix/socket.c:354: error: 'struct hostent' has no member named
'h_addr'
c/unix/socket.c: In function 's48_get_host_by_name':
c/unix/socket.c:377: warning: implicit declaration of function
'pthread_create'
c/unix/socket.c:385: error: 'struct hostent' has no member named
'h_addr'
I found this definition of hostent in /usr/include/netdb.h (from package
glibc-headers-2.8-1.x86_64):
/* Description of data base entry for a single host. */
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
};
(Continue reading)
RSS Feed