| Summary: | alphaev7-dec-osf5.1 cc compiler warning for OpenSSH-3.8p1 | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Portable OpenSSH | Reporter: | Joerg Schulenburg <jschulen> | ||||
| Component: | Build system | Assignee: | OpenSSH Bugzilla mailing list <openssh-bugs> | ||||
| Status: | CLOSED FIXED | ||||||
| Severity: | trivial | ||||||
| Priority: | P2 | ||||||
| Version: | 3.8p1 | ||||||
| Hardware: | Alpha | ||||||
| OS: | OSF/1 | ||||||
| Attachments: |
|
||||||
|
Description
Joerg Schulenburg
2004-03-10 20:26:34 AEDT
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 |