PHP 4.0 Bug #7313 Updated: checks for ipv6 are too weak.
| From: | venaas@php.net | Date: | Thu, 19 Oct 2000 15:01:02 +0000 |
| Subject: | PHP 4.0 Bug #7313 Updated: checks for ipv6 are too weak. | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-35536@lists.php.net to get a copy of this message | ||
ID: 7313
Updated by: venaas
Reported By: jan@kneschke.de
Status: Closed
Bug Type: Compile Problem
Assigned To:
Comments:
Fixed in CVS. Thanks for the excellent bug report,
wish more were like this.
Stig
Previous Comments:
---------------------------------------------------------------------------
[2000-10-18 12:37:14] jan@kneschke.de
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
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=7313