php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1258 Cannot compile with Mysql option (not related to directory issue)
Submitted: 1999-03-22 20:18 UTC Modified: 1999-04-03 10:39 UTC
From: bcosta at stone-age dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 3.0.5 OS: Redhat Linux 5.2
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: bcosta at stone-age dot com
New email:
PHP Version: OS:

 

 [1999-03-22 20:18 UTC] bcosta at stone-age dot com
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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-04-03 10:39 UTC] rasmus
I suggest grabbing the PHP 3.0.7 tarball and reading through INSTALL.REDHAT. Pointing PHP at the MySQL source directory as opposed to the installed header files is not a good idea.  Install the mysql and mysql-devel rpm's and use just --with-mysql
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Nov 10 20:01:29 2024 UTC