php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #421 Parse errors compiling functions/mysql.c
Submitted: 1998-05-31 11:20 UTC Modified: 1998-06-02 10:30 UTC
From: mattp at conundrum dot com Assigned: rasmus (profile)
Status: Closed Package: Compile Failure
PHP Version: 3.0 Release Candidate 5 OS: FreeBSD 2.2.6-STABLE
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: mattp at conundrum dot com
New email:
PHP Version: OS:

 

 [1998-05-31 11:20 UTC] mattp at conundrum dot com
----------
./do-conf
----------
./configure --with-apache --with-gd=/usr/local --with-mysql --with-config-file-path=/usr/local/etc --enable-track-vars=yes --enable-bcmath=yes --enable-url-fopen-wrapper=no

-------------------------
The last output from make
-------------------------

gcc -O2 -fpic   -I. -I.   -I/usr/local/etc/httpd/src/include -I/usr/local/etc/httpd/src/os/unix      -I/usr/local/include/mysql      -I/usr/local/include -I/usr/local/include/gd -g -Wall   -c functions/mysql.c -o functions/mysql.o
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/local/etc/httpd/src/include/conf.h:878,
                 from /usr/local/etc/httpd/src/include/httpd.h:71,
                 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/local/etc/httpd/src/include/httpd.h:733: field `local_addr' has incomplete type
/usr/local/etc/httpd/src/include/httpd.h:734: field `remote_addr' has incomplete type
/usr/local/etc/httpd/src/include/httpd.h:769: field `host_addr' has incomplete type
/usr/local/etc/httpd/src/include/httpd.h:830: field `local_addr' has incomplete type
/usr/include/netinet/in.h:266: storage size of `sin_addr' isn't known
gmake: *** [functions/mysql.o] Error 1

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-06-02 10:30 UTC] rasmus
I believe this one is due to the fact that we forgot to run 'autoheader' before building the RC5 tarball.  Try adding these lines to your config.h.in file:

/* Define if you have the <sys/types.h> header file.  */
#undef HAVE_SYS_TYPES_H

Please report back to php-dev@php.iquest.net with the status so we know if we can close this bug.

Fixed
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 19:01:35 2025 UTC