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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 10:01:28 2024 UTC