php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1617 Failure to compile with MySQL support since PHP ver. 3.0.9
Submitted: 1999-06-28 17:44 UTC Modified: 1999-06-29 19:38 UTC
From: ravens at geocities dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 3.0.11 OS: linux kernel 2.2.9 (S.u.S.E6.1)
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ravens at geocities dot com
New email:
PHP Version: OS:

 

 [1999-06-28 17:44 UTC] ravens at geocities dot com
MySQL ver. 3.22.21
Apache 1.3.6
gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)

configures and compiles up until:
........
gcc -g -O2 -O2   -I. -I.   -I../apache/src/include -I../apache/src/os/unix                  -I/usr/src/packages/SOURCES/lamps/php-3.0.11/../gd -I/usr/include -I/usr/include/mysql    -c functions/mime.c -o functions/mime.o
gcc -g -O2 -O2   -I. -I.   -I../apache/src/include -I../apache/src/os/unix                  -I/usr/src/packages/SOURCES/lamps/php-3.0.11/../gd -I/usr/include -I/usr/include/mysql    -c functions/msql.c -o functions/msql.o
gcc -g -O2 -O2   -I. -I.   -I../apache/src/include -I../apache/src/os/unix                  -I/usr/src/packages/SOURCES/lamps/php-3.0.11/../gd -I/usr/include -I/usr/include/mysql    -c functions/mysql.c -o functions/mysql.o
In file included from /usr/include/mysql.h:19,
                 from functions/mysql.c:84:
/usr/include/mysql/mysql_com.h:83: parse error before `Socket'
/usr/include/mysql/mysql_com.h:83: warning: no semicolon at end of struct or union
/usr/include/mysql/mysql_com.h:84: `fcntl' redeclared as different kind of symbol
/usr/include/fcntl.h:49: previous declaration of `fcntl'
/usr/include/mysql/mysql_com.h:93: parse error before `}'
/usr/include/mysql/mysql_com.h:93: warning: data definition has no type or storage class
/usr/include/mysql/mysql_com.h:123: parse error before `*'
/usr/include/mysql/mysql_com.h:125: parse error before `*'
/usr/include/mysql/mysql_com.h:126: parse error before `*'
/usr/include/mysql/mysql_com.h:127: parse error before `*'
/usr/include/mysql/mysql_com.h:128: parse error before `*'
/usr/include/mysql/mysql_com.h:129: parse error before `*'
/usr/include/mysql/mysql_com.h:131: parse error before `*'
/usr/include/mysql/mysql_com.h:132: parse error before `*'
In file included from functions/mysql.c:84:
/usr/include/mysql.h:47: parse error before `MEM_ROOT'
/usr/include/mysql.h:47: warning: no semicolon at end of struct or union
/usr/include/mysql.h:48: warning: data definition has no type or storage class
/usr/include/mysql.h:52: parse error before `NET'
/usr/include/mysql.h:52: warning: no semicolon at end of struct or union
/usr/include/mysql.h:53: `scramble' redeclared as different kind of symbol
/usr/include/mysql/mysql_com.h:174: previous declaration of `scramble'
/usr/include/mysql.h:61: parse error before `field_alloc'
/usr/include/mysql.h:61: warning: data definition has no type or storage class
........

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-06-28 21:42 UTC] sas at cvs dot php dot net
Are you sure that your header files are correct? MySQL compiles here without any problem
 [1999-06-29 18:20 UTC] ravens at geocities dot com
well what really bugs me is that 3.0.9 compiles first shot. I just redid the whole procedure 3 times. Compiling PHP 3.0.11 I still get the named compiler errors.
What happend between both versions (3.0.9 - 3.0.11)? Ok, I know, "3.0.10", but that is out of the question with its socket probs.
My do-conf:
------
./configure --with-ttf=../freetype --enable-t1lib --with-apache=../apache --with-gd=../gd --with-zlib=/usr/local --with-mysql --with-dbase=yes --enable-safe-mode=no --enable-debug=no --enable-track-vars=yes --enable-magic-quotes=yes
------
identical on all php versions I compiled so far.

 [1999-06-29 18:25 UTC] rasmus at cvs dot php dot net
This seems to be a local problem.  Nobody else has reported
anything remotely similar and there are literally thousands of Linux/MySQL users out there.
 [1999-06-29 19:38 UTC] ravens at geocities dot com
"Problem" solved:
an old and stale "mysql.h" under /usr/include was
"caught" _before_ /usr/include/mysql was. Was the search
path changed?
Anyways, 3.0.11 compiles! 
Sorry for the inconvenience I caused - mom
always told me clean up...
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sun Jul 05 13:00:01 2026 UTC