Mailing List Archive

[Bug 812] alphaev7-dec-osf5.1 cc compiler warning for OpenSSH-3.8p1
http://bugzilla.mindrot.org/show_bug.cgi?id=812

Summary: alphaev7-dec-osf5.1 cc compiler warning for OpenSSH-
3.8p1
Product: Portable OpenSSH
Version: 3.8p1
Platform: Alpha
OS/Version: OSF/1
Status: NEW
Severity: trivial
Priority: P2
Component: Build system
AssignedTo: openssh-bugs@mindrot.org
ReportedBy: jschulen@gmx.de


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))
--------------------^



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 812] alphaev7-dec-osf5.1 cc compiler warning for OpenSSH-3.8p1 [ In reply to ]
http://bugzilla.mindrot.org/show_bug.cgi?id=812





------- Additional Comments From dtucker@zip.com.au 2004-03-10 20:31 -------
What's the system's definition of the getaddrinfo macro? Does adding "#undef
getaddrinfo" before "#define getaddrinfo(a,b,c,d)" silence the warnings?



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 812] alphaev7-dec-osf5.1 cc compiler warning for OpenSSH-3.8p1 [ In reply to ]
http://bugzilla.mindrot.org/show_bug.cgi?id=812





------- Additional Comments From dtucker@zip.com.au 2004-03-10 20:39 -------
Created an attachment (id=571)
--> (http://bugzilla.mindrot.org/attachment.cgi?id=571&action=view)
#undef getaddrinfo if defined

Please try this patch



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 812] alphaev7-dec-osf5.1 cc compiler warning for OpenSSH-3.8p1 [ In reply to ]
http://bugzilla.mindrot.org/show_bug.cgi?id=812





------- Additional Comments From jschulen@gmx.de 2004-03-10 20:49 -------
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.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 812] alphaev7-dec-osf5.1 cc compiler warning for OpenSSH-3.8p1 [ In reply to ]
http://bugzilla.mindrot.org/show_bug.cgi?id=812

dtucker@zip.com.au changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED



------- Additional Comments From dtucker@zip.com.au 2004-03-10 21:13 -------
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) for the next release. Thanks for
the report.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.