PHP 4.0 Bug #7313: checks for ipv6 are too weak.

From: Date: Wed, 18 Oct 2000 16:37:14 +0000
Subject: PHP 4.0 Bug #7313: checks for ipv6 are too weak.
Groups: php.dev 
Request: Send a blank email to php-dev+get-35440@lists.php.net to get a copy of this message
From: jan@kneschke.de Operating system: Linux 2.0.x PHP version: 4.0.3pl1 PHP Bug Type: Compile Problem Bug description: checks for ipv6 are too weak. an old lib5 system (kernel 2.0.x) is providing struct sockaddr_in6 but doesn't define AF_INET6. the whole system is not ipv6 capable. applying the patch below fix the build process. --- configure.in Wed Oct 11 19:31:34 2000 +++ configure.in Tue Oct 17 23:23:28 2000 @@ -337,5 +337,5 @@ AC_CACHE_CHECK([for struct sockaddr_in6], ac_cv_struct_sockaddr_in6, [AC_TRY_COMPILE([#include <sys/socket.h> -#include <netinet/in.h>], [struct sockaddr_in6 s; s;], +#include <netinet/in.h>], [struct sockaddr_in6 s; int i; s; i = AF_INET6;], ac_cv_struct_sockaddr_in6=yes, ac_cv_struct_sockaddr_in6=no)]) if test "$ac_cv_struct_sockaddr_in6" = yes; then -- Edit Bug report at: http://bugs.php.net/?id=7313&edit=1

« previous php.dev (#35440) next »