#17072 [Com]: Compilation aborts while compiling ext/mysql/libmysql/libmysql.c

From: Date: Thu, 27 Mar 2003 12:19:56 +0000
Subject: #17072 [Com]: Compilation aborts while compiling ext/mysql/libmysql/libmysql.c
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-36557@lists.php.net to get a copy of this message
ID: 17072 Comment by: jason at jasonsrealm dot com Reported By: kolmann at zid dot tuwien dot ac dot at Status: Closed Bug Type: Compile Failure Operating System: AIX PHP Version: 4.2.0 New Comment: I am attempting to configure php 4.3.1 and apache 1.3.27 on a Redhat Linux 8 (Psyche) box and I am running into some problems. my configure command is: ./configure --with-mysql --with-apache=../apache_1.3.27/ --enable-track-vars then I run "make" and I get the following problem. What can I do to fix this. [root@code3 php-4.3.1]# make gcc -Iext/ctype/ -I/usr/local/src/php-4.3.1/ext/ctype/ -DPHP_ATOM_INC -I/usr/local/src/php-4.3.1/include -I/usr/local/src/php-4.3.1/main -I/usr/local/src/php-4.3.1 -I/usr/local/src/php-4.3.1/Zend -I/usr/local/src/php-4.3.1/ext/xml/expat -I/usr/local/src/php-4.3.1/TSRM -g -O2 -c /usr/local/src/php-4.3.1/ext/ctype/ctype.c -o ext/ctype/ctype.o && echo > ext/ctype/ctype.lo In file included from /usr/include/errno.h:36, from /usr/local/src/php-4.3.1/Zend/zend_operators.h:24, from /usr/local/src/php-4.3.1/Zend/zend_execute_globals.h:27, from /usr/local/src/php-4.3.1/Zend/zend_globals.h:34, from /usr/local/src/php-4.3.1/Zend/zend_list.h:25, from /usr/local/src/php-4.3.1/Zend/zend_API.h:26, from /usr/local/src/php-4.3.1/main/php.h:38, from /usr/local/src/php-4.3.1/ext/ctype/ctype.c:23: /usr/include/bits/errno.h:25:26: linux/errno.h: No such file or directory In file included from /usr/local/src/php-4.3.1/Zend/zend_execute_globals.h:27, from /usr/local/src/php-4.3.1/Zend/zend_globals.h:34, from /usr/local/src/php-4.3.1/Zend/zend_list.h:25, from /usr/local/src/php-4.3.1/Zend/zend_API.h:26, from /usr/local/src/php-4.3.1/main/php.h:38, from /usr/local/src/php-4.3.1/ext/ctype/ctype.c:23: /usr/local/src/php-4.3.1/Zend/zend_operators.h: In function `is_numeric_string': /usr/local/src/php-4.3.1/Zend/zend_operators.h:78: `ERANGE' undeclared (first use in this function) /usr/local/src/php-4.3.1/Zend/zend_operators.h:78: (Each undeclared identifier is reported only once /usr/local/src/php-4.3.1/Zend/zend_operators.h:78: for each function it appears in.) In file included from /usr/include/bits/posix1_lim.h:126, from /usr/include/limits.h:144, from /usr/lib/gcc-lib/i386-redhat-linux/3.2/include/limits.h:132, from /usr/lib/gcc-lib/i386-redhat-linux/3.2/include/syslimits.h:7, from /usr/lib/gcc-lib/i386-redhat-linux/3.2/include/limits.h:11, from /usr/include/sys/param.h:22, from /usr/local/src/php-4.3.1/main/php.h:205, from /usr/local/src/php-4.3.1/ext/ctype/ctype.c:23: /usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory In file included from /usr/local/src/php-4.3.1/main/php.h:205, from /usr/local/src/php-4.3.1/ext/ctype/ctype.c:23: /usr/include/sys/param.h:23:26: linux/limits.h: No such file or directory /usr/include/sys/param.h:24:25: linux/param.h: No such file or directory In file included from /usr/local/src/php-4.3.1/main/php.h:354, from /usr/local/src/php-4.3.1/ext/ctype/ctype.c:23: /usr/local/src/php-4.3.1/main/php_streams.h: At top level: /usr/local/src/php-4.3.1/main/php_streams.h:116: `PATH_MAX' undeclared here (not in a function) /usr/local/src/php-4.3.1/main/php_streams.h:117: confused by earlier errors, bailing out make: *** [ext/ctype/ctype.lo] Error 1 [root@code3 php-4.3.1]# Thanks Jason Previous Comments: ------------------------------------------------------------------------ [2002-07-06 20:36:30] sniper@php.net This bug has been fixed in CVS. You can grab a snapshot of the CVS version at http://snaps.php.net/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites. Thank you for the report, and for helping us make PHP better. ------------------------------------------------------------------------ [2002-06-30 07:29:40] derick@php.net I have the same problem on Solaris/intel with the latest DEV version as reported in "[21 Jun 2:01am] kolmann@zid.tuwien.ac.at" I don't have the mysql libs installed, and thus use the bundled libs. SOmething with the include paths is wrong, as mysql.h is in ext/mysql/libmysql. Chaching line 65 in php_mysql.h to include "libmysql/mysql.h" doesn't fix it either, as I then get errors for not finding other include files. reopening ------------------------------------------------------------------------ [2002-06-29 23:30:50] sniper@php.net Just tested the latest (from today) snapshot on AIX 4.3.3 and it compiles without any errors in libmysql. ------------------------------------------------------------------------ [2002-06-25 01:46:07] kolmann at zid dot tuwien dot ac dot 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? ------------------------------------------------------------------------ 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

« previous php.bugs (#36557) next »