cc generates lot of warnings with same message: cc: Warning: openbsd-compat/fake-rfc2553.h, line 136: The redefinition of the macro "getaddrinfo" conflicts with a current definition because the number of parameters is different. The redefinition is now in effect. (macroredef) #define getaddrinfo(a,b,c,d) (ssh_getaddrinfo(a,b,c,d)) --------------------^
What's the system's definition of the getaddrinfo macro? Does adding "#undef getaddrinfo" before "#define getaddrinfo(a,b,c,d)" silence the warnings?
Created attachment 571 [details] #undef getaddrinfo if defined Please try this patch
I found a getaddrinfo definition in /usr/include/netdb.h using grep getaddrinfo /usr/include/*.h, but I dont understand if that definition is connected with the problem. Here is an excerpt of netdb.h: #if defined (_SOCKADDR_LEN) || defined (_XOPEN_SOURCE_EXTENDED) #define getaddrinfo ngetaddrinfo #else #define getaddrinfo ogetaddrinfo #endif #ifdef _OSF_SOURCE extern int getaddrinfo __((const char *, const char *, const struct addrinfo *, struct addrinfo **)); Nevertheless, an undef getaddrinfo solves the problem.
It appears Tru64 has 2 library calls for getaddrinfo (ogetaddrinfo and ngetaddrinfo) that presumably behave differently in some circumstances. (Aside: I wonder if those differences are responsible for the strange getaddrinfo problems we've seen on Tru64?) Anyway, it has been fixed (attachment #571 [details]) for the next release. Thanks for the report.
Mass change of RESOLVED bugs to CLOSED