[PHP-DEV] Bug #437: Parse Error while including kernel & httpd header. From: arthurm <email protected>
Date: 06/04/98

From: arthurm <email protected>
Operating system: FreeBSD 2.2.6
PHP version: 3.0 Release Candidate 5
PHP Bug Type: Compile Failure
Bug description:
--with-apache=/usr/src/apache --with-gd=/usr/local --enable-debug=no --enable-bcmath=yes

In file included from functions/mysql.c:58:
/usr/include/netinet/in.h:212: parse error before `u_long'
/usr/include/netinet/in.h:212: warning: no semicolon at end of struct or union
/usr/include/netinet/in.h:263: parse error before `u_char'
/usr/include/netinet/in.h:263: warning: no semicolon at end of struct or union
/usr/include/netinet/in.h:264: warning: data definition has no type or storage class
/usr/include/netinet/in.h:265: parse error before `sin_port'
/usr/include/netinet/in.h:265: warning: data definition has no type or storage class
/usr/include/netinet/in.h:268: parse error before `}'
/usr/include/netinet/in.h:278: field `ip_dst' has incomplete type
/usr/include/netinet/in.h:325: field `imr_multiaddr' has incomplete type
/usr/include/netinet/in.h:326: field `imr_interface' has incomplete type
In file included from /usr/src/apache/src/include/conf.h:838,
                 from /usr/src/apache/src/include/httpd.h:67,
                 from php.h:182,
                 from functions/mysql.c:61:
/usr/include/arpa/inet.h:71: warning: parameter has incomplete type
/usr/include/arpa/inet.h:74: warning: parameter has incomplete type
/usr/include/arpa/inet.h:78: warning: parameter has incomplete type
In file included from php.h:182,
                 from functions/mysql.c:61:
/usr/src/apache/src/include/httpd.h:711: field `local_addr' has incomplete type
/usr/src/apache/src/include/httpd.h:712: field `remote_addr' has incomplete type
/usr/src/apache/src/include/httpd.h:747: field `host_addr' has incomplete type
/usr/src/apache/src/include/httpd.h:804: field `local_addr' has incomplete type
/usr/include/netinet/in.h:266: storage size of `sin_addr' isn't known
*** Error code 1

PHP release 4 compiled fine on this system with the same options.

Am I missing something?