Hello everybody,

I cannot compile php (version 4.3.3) on linux (fedora-core 4 distribution)

This is the configuration
./configure --with-mysql --with-apx=../../apache/bin/apxs
--disable-cgi --enable-cli

The output was normal, then I would compile with the commande make and
I get the following output:

gcc  -Isapi/cli/ -I/usr/local/src/php/sapi/cli/ -DPHP_ATOM_INC
-I/usr/local/src/php/include -I/usr/local/src/php/main
-I/usr/local/src/php -I/usr/local/src/php/Zend
-I/usr/local/src/php/ext/xml/expat  -I/usr/local/src/php/TSRM  -g -O2 
-c /usr/local/src/php/sapi/cli/php_cli.c -o sapi/cli/php_cli.o  &&
echo > sapi/cli/php_cli.lo
/usr/local/src/php/sapi/cli/php_cli.c:94: erreur: static declaration
of ‘optarg’ follows non-static declaration
/usr/include/getopt.h:59: erreur: previous declaration of ‘optarg’ was here
/usr/local/src/php/sapi/cli/php_cli.c:95: erreur: static declaration
of ‘optind’ follows non-static declaration
/usr/include/getopt.h:73: erreur: previous declaration of ‘optind’ was here
make: *** [sapi/cli/php_cli.lo] Erreur 1

Can somone helps me?

Thank in advance.
Karim.

Reply via email to