kdecore/netsupp.h:176: error: redefinition of 'struct addrinfo'

Grzegorz Jaskiewicz gj at pointblue.com.pl
Thu Apr 27 13:15:49 CEST 2006


   
trying to compile kdelibs snapshot , I get:

/home/test/kde-sources/kdelibs4_snapshot/kdecore/netsupp.h:176: error: 
redefinition of 'struct addrinfo'
/usr/include/netdb.h:539: error: previous definition of 'struct addrinfo'

the kdecore/netsupp.h is checking for :
#if !defined(HAVE_GETADDRINFO) || defined(HAVE_BROKEN_GETADDRINFO)
# ifndef HAVE_STRUCT_ADDRINF
...

but none of these is defined here on my system:

test at puppet:$ grep -i addrinf /usr/include/netdb.h
/* Scope delimiter for getaddrinfo(), getnameinfo().  */
struct addrinfo
  struct addrinfo *ai_next;     /* Pointer to next in list.  */
  const struct addrinfo *ar_request; /* Additional request specification.  */
  struct addrinfo *ar_result;   /* Pointer to result.  */
/* Possible values for `ai_flags' field in `addrinfo' structure.  */
/* Error values for `getaddrinfo' function.  */
extern int getaddrinfo (__const char *__restrict __name,
                        __const struct addrinfo *__restrict __req,
                        struct addrinfo **__restrict __pai);
/* Free `addrinfo' structure AI including associated storage.  */
extern void freeaddrinfo (struct addrinfo *__ai) __THROW;
/* Convert error return from getaddrinfo() to a string.  */
extern int getaddrinfo_a (int __mode, struct gaicb *__list[__restrict_arr],


***********
I don't think it is wise to declare stuff in kdelibs , that should be declared 
in the system.


More information about the Kde-buildsystem mailing list