[PHP-DEV] Bug #1258: Cannot compile with Mysql option (not related to directory issue) From: bcosta <email protected>
Date: 03/22/99

From: bcosta <email protected>
Operating system: Redhat Linux 5.2
PHP version: 3.0.5
PHP Bug Type: Compile Failure
Bug description: Cannot compile with Mysql option (not related to directory issue)

I have been attempting to install php 3.0.5, according to the directions on page 6 of the manual. I need PHP/MySQL support with apache.

This is a standard redhat 5.2 server installation

I used the following configure line (line 8)

./configure --with-mysql=/usr/src/redhat/SOURCES/mysql-3.22.20a --with-apache=../apache_1.3.3 --enable-track-vars

during the make phase next, I encountered a series of errors. First, I had to

cp mysql_com.h.in mysql_com.h
cp mysql_version.h.in mysql_version.h

since mysql.h referenced these files, but they do not exist in the standrad source for mysql-3.22.20a

I do not know if this was a correct action, but I did not have mysql_com.h or mysql_version.h available in the /include directory, and their absence was causing make errors as well.

AFter this change, This resulted in a series of parse errors from mysql.c
output from that make is below:

 make
gcc -g -O2 -O2 -I. -I. -I../apache_1.3.3/src/include -I../apache_1.3.3/src/o
s/unix -I/usr/src/redhat/SOURCES/mysql-3.22.20a/include -c f
unctions/mysql.c -o functions/mysql.o
In file included from functions/mysql.c:67:
/usr/src/redhat/SOURCES/mysql-3.22.20a/include/mysql.h:165: parse error
functions/mysql.c:77: parse error
functions/mysql.c:442: parse error
functions/mysql.c:468: parse error
functions/mysql.c:507: parse error
functions/mysql.c:558: parse error
functions/mysql.c:816: parse error
functions/mysql.c:879: parse error
make: *** [functions/mysql.o] Error 1

PLEASE HELP IF YOU CAN. Thanks

--
PHP Development Mailing List   http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe <email protected>
For help: php-dev-help <email protected>