Bug #18097 Updated: conflicting types for `socklen_t' - previous declaration of `socklen_t'
| From: | sniper@php.net | Date: | Mon, 08 Jul 2002 01:26:41 +0000 |
| Subject: | Bug #18097 Updated: conflicting types for `socklen_t' - previous declaration of `socklen_t' | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-13456@lists.php.net to get a copy of this message | ||
ID: 18097
Updated by: sniper@php.net
Reported By: marcos@penosaco.com.br
-Status: Open
+Status: Feedback
Bug Type: Compile Failure
Operating System: HP-UX 11.11
PHP Version: 4.3.0-dev
New Comment:
Please try this snapshot:
(some related stuff was fixed)
http://snaps.php.net/php4-latest.tar.gz
Previous Comments:
------------------------------------------------------------------------
[2002-07-02 13:48:10] marcos@penosaco.com.br
email sent
:)
------------------------------------------------------------------------
[2002-07-02 11:32:15] sniper@php.net
Looks like the test for socklen_t fails in configure.
Check main/php_config.h for HAVE_SOCKLEN_T whether it's
defined or not.
And send me your config.log to sniper@php.net
--Jani
------------------------------------------------------------------------
[2002-07-02 11:27:25] marcos@penosaco.com.br
Ok... new apache version, new php version (snapshot), new gcc(3.1)
./configure --without-mysql --with-apache=../apache_1.3.26
--with-oci8=/opt/apache/ora_apa/8.1.7 --enable-sigchild
--enable-libgcc
(when trying to compile with mysql, i got another compilation error. I
don't need mysql for now so i'm trying with '--without-mysql'...)
...
...
...
gcc -Iext/standard/
-I/usr/src/novos_testes/php4-200207020600/ext/standard/ -DPHP_ATOM_INC
-I/usr/src/novos_testes/php4-200207020600/include
-I/usr/src/novos_testes/php4-200207020600/main
-I/usr/src/novos_testes/php4-200207020600
-I/usr/src/novos_testes/php4-200207020600/Zend
-I/opt/apache/ora_apa/8.1.7/rdbms/public
-I/opt/apache/ora_apa/8.1.7/rdbms/demo
-I/usr/src/novos_testes/php4-200207020600/ext/xml/expat
-I/usr/src/novos_testes/php4-200207020600/TSRM -g -O2 -c
/usr/src/novos_testes/php4-200207020600/ext/standard/basic_functions.c
-o ext/standard/basic_functions.o && echo >
ext/standard/basic_functions.lo
In file included from
/usr/src/novos_testes/php4-200207020600/main/php_network.h:51,
from
/usr/src/novos_testes/php4-200207020600/ext/standard/fsock.h:30,
from
/usr/src/novos_testes/php4-200207020600/ext/standard/php_standard.h:43,
from
/usr/src/novos_testes/php4-200207020600/ext/standard/basic_functions.c:2
8:
/usr/include/sys/socket.h:199: conflicting types for `socklen_t'
/usr/src/novos_testes/php4-200207020600/main/php.h:131: previous
declaration of `socklen_t'
/usr/include/sys/socket.h:484: parse error before "sendfile"
/usr/include/sys/socket.h:485: parse error before "bsize_t"
/usr/include/sys/socket.h:486: parse error before "sendpath"
/usr/include/sys/socket.h:487: parse error before "bsize_t"
gmake: *** [ext/standard/basic_functions.lo] Error 1
bmpcpd2:/usr/src/novos_testes/php4-200207020600# gcc -v
Reading specs from
/usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.1/specs
Configured with: ./configure : (reconfigured) ./configure :
(reconfigured) ./configure
Thread model: posix
gcc version 3.1
bmpcpd2:/usr/src/novos_testes/php4-200207020600#
What I can try now? :(
Thanks!! :)
Marcos
------------------------------------------------------------------------
[2002-07-02 11:24:42] marcos@penosaco.com.br
Ok... new apache version, new php version (snapshot), new gcc(3.1)
./configure --without-mysql --with-apache=../apache_1.3.26
--with-oci8=/opt/apache/ora_apa/8.1.7 --enable-sigchild
--enable-libgcc
(when trying to compile with mysql, i got another compilation error. I
don't need mysql for now so i'm trying with '--without-mysql'...)
...
...
...
gcc -Iext/standard/
-I/usr/src/novos_testes/php4-200207020600/ext/standard/ -DPHP_ATOM_INC
-I/usr/src/novos_testes/php4-200207020600/include
-I/usr/src/novos_testes/php4-200207020600/main
-I/usr/src/novos_testes/php4-200207020600
-I/usr/src/novos_testes/php4-200207020600/Zend
-I/opt/apache/ora_apa/8.1.7/rdbms/public
-I/opt/apache/ora_apa/8.1.7/rdbms/demo
-I/usr/src/novos_testes/php4-200207020600/ext/xml/expat
-I/usr/src/novos_testes/php4-200207020600/TSRM -g -O2 -c
/usr/src/novos_testes/php4-200207020600/ext/standard/basic_functions.c
-o ext/standard/basic_functions.o && echo >
ext/standard/basic_functions.lo
In file included from
/usr/src/novos_testes/php4-200207020600/main/php_network.h:51,
from
/usr/src/novos_testes/php4-200207020600/ext/standard/fsock.h:30,
from
/usr/src/novos_testes/php4-200207020600/ext/standard/php_standard.h:43,
from
/usr/src/novos_testes/php4-200207020600/ext/standard/basic_functions.c:28:
/usr/include/sys/socket.h:199: conflicting types for `socklen_t'
/usr/src/novos_testes/php4-200207020600/main/php.h:131: previous
declaration of `socklen_t'
/usr/include/sys/socket.h:484: parse error before "sendfile"
/usr/include/sys/socket.h:485: parse error before "bsize_t"
/usr/include/sys/socket.h:486: parse error before "sendpath"
/usr/include/sys/socket.h:487: parse error before "bsize_t"
gmake: *** [ext/standard/basic_functions.lo] Error 1
bmpcpd2:/usr/src/novos_testes/php4-200207020600# gcc -v
Reading specs from
/usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.1/specs
Configured with: ./configure : (reconfigured) ./configure :
(reconfigured) ./configure
Thread model: posix
gcc version 3.1
bmpcpd2:/usr/src/novos_testes/php4-200207020600#
What I can try now? :(
Thanks!! :)
Marcos
------------------------------------------------------------------------
[2002-07-01 17:50:12] sniper@php.net
Oh, and GCC 3.0 has caused trouble for others..although on different
platforms. If that snapshot doesn't work either,
you might wanna try upgrading it to 3.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/18097
--
Edit this bug report at http://bugs.php.net/?id=18097&edit=1