php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #437 Parse Error while including kernel & httpd header.
Submitted: 1998-06-04 00:00 UTC Modified: 1998-06-04 00:37 UTC
From: arthurm at bellatlantic dot net Assigned: rasmus (profile)
Status: Closed Package: Compile Failure
PHP Version: 3.0 Release Candidate 5 OS: FreeBSD 2.2.6
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: arthurm at bellatlantic dot net
New email:
PHP Version: OS:

 

 [1998-06-04 00:00 UTC] arthurm at bellatlantic dot net
--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?

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-06-04 00:37 UTC] rasmus
This one has been reported a few times now.  Stick this line in your config.h.in file:
#undef HAVE_SYS_TYPES_H
And re-run ./configure
(Fixed in CVS)
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 19:01:35 2025 UTC