|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-07-01 16:31 UTC] marcos at penosaco dot com dot 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
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 22 02:00:01 2025 UTC |
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!! :) MarcosOk... 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