php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #769 fopen_wrappers.c fails to compile : in_addr_t wrongly defined as "u_int".
Submitted: 1998-09-23 03:33 UTC Modified: 1998-10-03 20:57 UTC
From: Danny dot Heijl at cevi dot be Assigned:
Status: Closed Package: Compile Failure
PHP Version: 3.0.4 OS: NCR Unix MP-RAS 3.02
Private report: No CVE-ID: None
 [1998-09-23 03:33 UTC] Danny dot Heijl at cevi dot be
The "configure.in" script that comes with 3.04 mistakenly defines "in_addr_t" as "u_int" on 
NCR Unix MP-RAS 3.02 so that fopen_wrappers.c fails to compile.

Not being familiar with this autoconf stuff, I simply removed the offending
in_addr_t check for AIX (see below) and the problem went away.
If someone knows how to fix this let me know and I will test the fix on NCR MP-RAS.


--- configure.in        Wed Sep 23 09:20:38 1998
+++ configure.in.save   Wed Sep 23 09:13:40 1998
@@ -97,6 +97,25 @@
  ])
 ])

+dnl AIX keeps in_addr_t in /usr/include/netinet/in.h
+dnl AC_MSG_CHECKING(for in_addr_t)
+AC_CACHE_VAL(ac_cv_type_$1,
+[AC_EGREP_CPP(dnl
+changequote(<<,>>)dnl
+<<in_addr_t[^a-zA-Z_0-9]>>dnl
+changequote([,]), [#include <sys/types.h>
+#if STDC_HEADERS
+#include <stdlib.h>
+#include <stddef.h>
+#endif
+#ifdef HAVE_NETINET_IN_H
+#include <netinet/in.h>
+#endif], ac_cv_type_in_addr_t=yes, ac_cv_type_in_addr_t=no)])dnl
+
+dnl AC_MSG_RESULT($ac_cv_type_in_addr_t)
+if test $ac_cv_type_in_addr_t = no; then
+  AC_DEFINE(in_addr_t, u_int)
+fi

 dnl Checks for header files.
 AC_HEADER_STDC

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-10-03 20:57 UTC] rasmus
Fixed a while ago (forgot to close bug report)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 09 06:01:32 2024 UTC