Re: Problem with compilation
| From: | David Robley | Date: | Tue, 28 May 2002 10:15:11 +0000 |
| Subject: | Re: Problem with compilation | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-99461@lists.php.net to get a copy of this message | ||
In article <3CF34EF3.8010407@auto.cz>, mirek.novak@auto.cz says...
> 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.
> --
You seem to be pointing to an unusual directory for your mysql
installation??
--
David Robley
Temporary Kiwi!
Quod subigo farinam