Hi, I'm trying to compile CGI version of latest PHP v4 (4.2.1) on Linux RH 6.2 kernel
2.2.14 with mysql client/server ver 2.22.49
and it always fails to compile while compiling mysql extension. I've included part
with error message which I don't understand to.
<CONFIG>
./configure --prefix=/usr \
--with-config-file-path=/etc \
--enable-sockets \
--enable-ftp \
--with-mysql=/usr \
--enable-inline-optimization
[root@www php-4.2.1]#
</CONFIG>
<MESSAGE>
Making all in mysql
make[2]: Entering directory `/usr/src/php-4.2.1/ext/mysql'
make[3]: Entering directory `/usr/src/php-4.2.1/ext/mysql'
gcc -I. -I/usr/src/php-4.2.1/ext/mysql -I/usr/src/php-4.2.1/main -I/usr/src/php-4.2.1
-I/usr/src/php-4.2.1/Zend
-I/usr/include/mysql -I/usr/src/php-4.2.1/ext/xml/expat -I/usr/src/php-4.2.1/TSRM -g
-O2 -c php_mysql.c && touch php_mysql.lo
In file included from /usr/include/sys/socket.h:34,
from /usr/include/netdb.h:31,
from php_mysql.c:49:
/usr/include/bits/socket.h:35: warning: redefinition of `socklen_t'
/usr/src/php-4.2.1/main/php.h:114: warning: `socklen_t' previously declared here
php_mysql.c: In function `_close_mysql_link':
php_mysql.c:252: `SIGPIPE' undeclared (first use in this function)
php_mysql.c:252: (Each undeclared identifier is reported only once
php_mysql.c:252: for each function it appears in.)
php_mysql.c:252: `SIG_IGN' undeclared (first use in this function)
php_mysql.c:252: warning: assignment makes pointer from integer without a cast
php_mysql.c: In function `_close_mysql_plink':
php_mysql.c:267: `SIGPIPE' undeclared (first use in this function)
php_mysql.c:267: `SIG_IGN' undeclared (first use in this function)
php_mysql.c:267: warning: assignment makes pointer from integer without a cast
php_mysql.c: In function `php_mysql_do_connect':
php_mysql.c:602: `SIGPIPE' undeclared (first use in this function)
php_mysql.c:602: `SIG_IGN' undeclared (first use in this function)
php_mysql.c:602: warning: assignment makes pointer from integer without a cast
make[3]: *** [php_mysql.lo] Error 1
make[3]: Leaving directory `/usr/src/php-4.2.1/ext/mysql'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/php-4.2.1/ext/mysql'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/php-4.2.1/ext'
make: *** [all-recursive] Error 1
</MESSAGE>
I'm not able to identify the real cause of this problem. Can someone help?
Mirek.
--
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php