Bug #18097: conflicting types for `socklen_t' - previous declaration of `socklen_t'
| From: | marcos at penosaco dot com dot br | Date: | Mon, 01 Jul 2002 20:31:04 +0000 |
| Subject: | Bug #18097: conflicting types for `socklen_t' - previous declaration of `socklen_t' | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-12712@lists.php.net to get a copy of this message | ||
From: marcos@penosaco.com.br
Operating system: HP-UX 11.11
PHP version: 4.2.1
PHP Bug Type: Compile Failure
Bug description: conflicting types for
socklen_t' - previous declaration of
socklen_t'
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 bug report at http://bugs.php.net/?id=18097&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=18097&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=18097&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=18097&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=18097&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=18097&r=support
Expected behavior: http://bugs.php.net/fix.php?id=18097&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=18097&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=18097&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=18097&r=globals