Bug #17072 Updated: Compilation aborts while compiling ext/mysql/libmysql/libmysql.c
| From: | sniper@php.net | Date: | Sun, 30 Jun 2002 03:30:51 +0000 |
| Subject: | Bug #17072 Updated: Compilation aborts while compiling ext/mysql/libmysql/libmysql.c | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-12556@lists.php.net to get a copy of this message | ||
ID: 17072
Updated by: sniper@php.net
Reported By: kolmann@zid.tuwien.ac.at
-Status: Open
+Status: Closed
Bug Type: Compile Failure
Operating System: AIX
PHP Version: 4.2.0
New Comment:
Just tested the latest (from today) snapshot on AIX 4.3.3
and it compiles without any errors in libmysql.
Previous Comments:
------------------------------------------------------------------------
[2002-06-25 01:46:07] kolmann@zid.tuwien.ac.at
root@mail:~# ./configure --prefix=/pd/PGphp4
--with-config-file=/opt/PGphp4/lib --with-apxs=/pd/AGapache/bin/apxs
------------------------------------------------------------------------
[2002-06-24 19:48:38] sniper@php.net
What exactly was the configure line used to configure PHP?
------------------------------------------------------------------------
[2002-06-21 02:01:45] kolmann@zid.tuwien.ac.at
Hi,
just tried your snapshot:
It seems that it makes quite a trouble, that I have no mysql installed
native on the machine.
I can't get the mysql modules to compile:
gcc can't find <mysql.h> and breaks in ext/mysql/php_mysql.c:65
/bin/sh libtool --silent --mode=compile gcc -Iext/mysql/
-I/u/pkolmann/test/php4-200206202100/ext/mysql/ -DPHP_ATOM_INC
-I/u/pkolmann/test/php4-200206202100/include
-I/u/pkolmann/test/php4-200206202100/main
-I/u/pkolmann/test/php4-200206202100
-I/u/pkolmann/test/php4-200206202100/Zend
-I/u/pkolmann/test/php4-200206202100/ext/xml/expat -DAIX=43
-DUSE_PTHREAD_SERIALIZED_ACCEPT -DAIX_BIND_PROCESSOR -DMOD_SSL=208107
-DUSE_HSREGEX -DEAPI -DUSE_EXPAT
-I/u/pkolmann/test/php4-200206202100/TSRM -O2 -prefer-pic -c
/u/pkolmann/test/php4-200206202100/ext/mysql/php_mysql.c -o
ext/mysql/php_mysql.lo
/u/pkolmann/test/php4-200206202100/ext/mysql/php_mysql.c:65: mysql.h:
No such file or directory
make: *** [ext/mysql/php_mysql.lo] Error 1
if I changee this line to include "libmysql/mysql.h" it compiles, but
then hangs during the compilation of the libmysql dir.
Thanks so far
Kind Regards
Philipp Kolmann
------------------------------------------------------------------------
[2002-06-20 19:01:47] sniper@php.net
Try this snapshot:
http://snaps.php.net/php4-latest.tar.gz
------------------------------------------------------------------------
[2002-06-20 12:22:28] gbarnes@pumatech.com
I have a similar problem here. Version 4.1.0 compiled fine however. The
only command line argument I gave was --with-apxs:
Making all in libmysql
make[3]: Entering directory
`/usr/share/src/php-4.2.0/ext/mysql/libmysql'
make[4]: Entering directory
`/usr/share/src/php-4.2.0/ext/mysql/libmysql'
/bin/sh /usr/share/src/php-4.2.0/libtool --silent --mode=compile gcc
-I. -I/usr/share/src/php-4.2.0/ext/mysql/libmysql
-I/usr/share/src/php-4.2.0/main -I/usr/share/src/php-4.2.0
-I/usr/local/apache/include -I/usr/share/src/php-4.2.0/Zend
-I/usr/share/src/php-4.2.0/ext/mysql/libmysql
-I/usr/share/src/php-4.2.0/ext/xml/expat -D_POSIX_PTHREAD_SEMANTICS
-DSOLARIS2=270 -DUSE_EXPAT -I/usr/share/src/php-4.2.0/TSRM -g -O2
-prefer-pic -c libmysql.c
In file included from libmysql.c:5:
global.h:136: parse error
In file included from libmysql.c:5:
global.h:498: parse error
In file included from libmysql.c:12:
m_string.h:205: parse error
make[4]: *** [libmysql.lo] Error 1
make[4]: Leaving directory
`/usr/share/src/php-4.2.0/ext/mysql/libmysql'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/usr/share/src/php-4.2.0/ext/mysql/libmysql'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/share/src/php-4.2.0/ext/mysql'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/share/src/php-4.2.0/ext'
make: *** [all-recursive] Error 1
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/17072
--
Edit this bug report at http://bugs.php.net/?id=17072&edit=1