bugzilla-daemon at mindrot.org
2004-Mar-10 09:26 UTC
[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 at mindrot.org
ReportedBy: jschulen at 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.
bugzilla-daemon at mindrot.org
2004-Mar-10 09:31 UTC
[Bug 812] alphaev7-dec-osf5.1 cc compiler warning for OpenSSH-3.8p1
http://bugzilla.mindrot.org/show_bug.cgi?id=812 ------- Additional Comments From dtucker at 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.
bugzilla-daemon at mindrot.org
2004-Mar-10 09:39 UTC
[Bug 812] alphaev7-dec-osf5.1 cc compiler warning for OpenSSH-3.8p1
http://bugzilla.mindrot.org/show_bug.cgi?id=812 ------- Additional Comments From dtucker at 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.
bugzilla-daemon at mindrot.org
2004-Mar-10 09:49 UTC
[Bug 812] alphaev7-dec-osf5.1 cc compiler warning for OpenSSH-3.8p1
http://bugzilla.mindrot.org/show_bug.cgi?id=812
------- Additional Comments From jschulen at 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.
bugzilla-daemon at mindrot.org
2004-Mar-10 10:13 UTC
[Bug 812] alphaev7-dec-osf5.1 cc compiler warning for OpenSSH-3.8p1
http://bugzilla.mindrot.org/show_bug.cgi?id=812
dtucker at zip.com.au changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From dtucker at 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.