Bug #18097 Updated: conflicting types for `socklen_t' - previous declaration of `socklen_t'

From: Date: Tue, 02 Jul 2002 15:27:26 +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-12816@lists.php.net to get a copy of this message
ID: 18097 Updated by: marcos@penosaco.com.br Reported By: marcos@penosaco.com.br -Status: Feedback +Status: Open Bug Type: Compile Failure Operating System: HP-UX 11.11 -PHP Version: 4.2.1 +PHP Version: snapshot (200207020600) New Comment: 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 Previous Comments: ------------------------------------------------------------------------ [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. ------------------------------------------------------------------------ [2002-07-01 17:48:50] sniper@php.net Can you please try this snapshot: http://snaps.php.net/php4-latest.tar.gz ------------------------------------------------------------------------ [2002-07-01 16:31:03] marcos@penosaco.com.br Hi I'm trying to compile PHP 4.2.1 and i'm getting this: Making all in main gcc -I. -I/usr/src/php-4.2.1/main -I/usr/src/php-4.2.1/main -I/usr/src/php-4.2.1 -I/usr/src/apache_novo/src/include -I/usr/src/apache_novo/src/os/unix -I/usr/src/php-4.2.1/Zend -I/usr/src/php-4.2.1/ext/mysql/libmysql -I/opt/apache/ora_apa/8.1.7/rdbms/public -I/opt/apache/ora_apa/8.1.7/rdbms/demo -I/usr/src/php-4.2.1/ext/xml/expat -I/usr/src/php-4.2.1/TSRM -g -O2 -c main.c && touch main.lo In file included from php_network.h:37, from /usr/src/php-4.2.1/ext/standard/fsock.h:32, from /usr/src/php-4.2.1/ext/standard/php_standard.h:43, from main.c:52: /usr/include/sys/socket.h:199: conflicting types for `socklen_t' php.h:114: previous declaration of `socklen_t' /usr/include/sys/socket.h:484: parse error before "sendfile" /usr/include/sys/socket.h:484: parse error before "bsize_t" /usr/include/sys/socket.h:486: parse error before "sendpath" /usr/include/sys/socket.h:486: parse error before "bsize_t" *** Error exit code 1 Stop. *** Error exit code 1 Stop. *** Error exit code 1 Stop. bmpcpd2:/usr/src/php-4.2.1# bmpcpd2:/usr/src/php-4.2.1# uname -a HP-UX bmpcpd2 B.11.11 U 9000/800 1019781745 unlimited-user license bmpcpd2:/usr/src/php-4.2.1# gcc -v Reading specs from /usr/local/lib/gcc-lib/hppa1.1-hp-hpux11.00/3.0/specs Configured with: ../gcc/configure --enable-languages=c,c++ --host=hppa1.1-hp-hpux11.00 --target=hppa1.1-hp-hpux11.00 --with-ld=/usr/ccs/bin/ld --with-gnu-as --enable-libstdcxx-v3 Thread model: single gcc version 3.0 bmpcpd2:/usr/src/php-4.2.1# any idea? Thanks! Marcos ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=18097&edit=1

« previous php.bugs (#12816) next »