cyrusimap / bugzilla-migrate-test

0 stars 1 forks source link

getaddrinfo in #515

Closed brong closed 13 years ago

brong commented 22 years ago

From: torkel@pdc.kth.se Bugzilla-Id: 1269 Version: 2.1.x Owner: Rob Siemborski

brong commented 22 years ago

From:

brong commented 22 years ago

From: Walter Wong

Reassigned to Distribution since Deployment is internal to CMU.

Also closed the bug because of the lack of any information. If there is more information, feel free to reopen.

brong commented 22 years ago

From:

sorry, I hit wong key :-(

On:

ratatosk[alpha_dux50]$ uname -a OSF1 ratatosk.pdc.kth.se V5.0 1094 alpha

configure fails to detect getaddrinfo though it's available in netdb.h.

From netdb.h:

ifdef _SOCKADDR_LEN

define getaddrinfo ngetaddrinfo

else

define getaddrinfo ogetaddrinfo

endif

If I run the testprogram by hand. I get the following errors:

cc: Error: test.c, line 9: In this declaration, the type of "ogetaddrinfo" is not compatible with the type of a previous declaration of "ogetaddrinfo" at line number 283 in file /usr/include/netdb.h. (notcompat) char getaddrinfo(); -----^ cc: Error: test.c, line 19: In this statement, "ogetaddrinfo" expects 4 arguments, but 0 are supplied. (toofewargs) getaddrinfo();

brong commented 21 years ago

From: Rob Siemborski

Hajimu UMEMOTO is generally our IPv6 expert. Perhaps he knows what is going on.

brong commented 21 years ago

From: Hajimu UMEMOTO

Umm, it seems OSF/1 doesn't have getaddrinfo(), but getaddrinfo is defined as ngetaddrinfo or ogetaddrinfo in netdb.h. So, AC_CHECK_FUNC() cannot detect the existence of getaddrinfo(). I'll examine how to detect this situation.

brong commented 21 years ago

Attachment-Id: 194 From: Hajimu UMEMOTO Type: text/plain File: ipv6.m4.diff

The candidate patch against cmulocal/ipv6.m4

brong commented 21 years ago

From: Rob Siemborski

torkel@pdc.kth.se: Any chance you could verify this patch works for you, since I don't want to commit it without atleast some verification.

brong commented 21 years ago

From: Rob Siemborski

This bug has been marked as a duplicate of 2116