Summary: | app-crypt/heimdal-0.7.2-r3 fails to compile - conflicting types for 'getnameinfo' | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Daniel Black (RETIRED) <dragonheart> |
Component: | [OLD] Unspecified | Assignee: | Gentoo Kerberos Maintainers <kerberos> |
Status: | VERIFIED WONTFIX | ||
Severity: | normal | CC: | david.w.noon |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Daniel Black (RETIRED)
2007-04-30 08:59:26 UTC
I have this also, on a Core2 Duo system (i.e. also AMD64). The code compiles correctly on x86. There are two problems with the same test for broken getnameinfo: 1. GCC 4.2.2 will issue a warning for test program and it'll be detected as error. Fix is simple: diff -uNr cf/broken-getaddrinfo.m4 cf/broken-getaddrinfo.m4 --- cf/broken-getaddrinfo.m4 2005-06-16 20:23:03.000000000 +0400 +++ cf/broken-getaddrinfo.m4 2007-10-21 07:50:17.000000000 +0400 @@ -5,6 +5,7 @@ AC_DEFUN([rk_BROKEN_GETADDRINFO],[ AC_CACHE_CHECK([if getaddrinfo handles numeric services], ac_cv_func_getaddrinfo_numserv, AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdio.h> +#include <string.h> #include <sys/types.h> #include <sys/socket.h> #include <netdb.h> diff -uNr cf1/broken-getnameinfo.m4 cf/broken-getnameinfo.m4 --- cf/broken-getnameinfo.m4 2004-08-31 19:31:41.000000000 +0400 +++ cf/broken-getnameinfo.m4 2007-10-21 07:50:26.000000000 +0400 @@ -5,6 +5,7 @@ AC_DEFUN([rk_BROKEN_GETNAMEINFO],[ AC_CACHE_CHECK([if getnameinfo is broken], ac_cv_func_getnameinfo_broken, AC_RUN_IFELSE([AC_LANG_SOURCE([[[#include <stdio.h> +#include <string.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> 2. Test will actually can the getnameinfo and your DNS resolution is misconfigured - it'll fail. After that heimdal will try to use it's own version of getnameinfo and it'll conflict with glibc's one... We are not going to fix this because we are already working on heimdal-1.2.x - Please use heimdal with our overlay at git://git.overlays.gentoo.org/proj/kerberos.git. g, mueli |