From:             [EMAIL PROTECTED]
Operating system: OpenBSD 3.1-stable
PHP version:      4CVS-2002-10-28
PHP Bug Type:     Compile Failure
Bug description:  conflicting types for php_read in sockets.c

I've now been unable to compile PHP for about 10 days due 
to compilation errors (see bug 20063). That bug may now 
have been obscured by this one.

buildconf works fine (I installed bison 1.75). I'm using 
this configure (and have been for the last few months), 
which gives no complaints:

./configure --with-mysql=/usr/local --with-pdflib 
--enable-exif --with-bz2 --with-zlib --with-openssl 
--with-gettext --with-ldap --with-mhash --disable-overload 
--enable-sockets --with-vpopmail --with-mcrypt 
--enable-sysvshm --enable-pcntl 
--with-config-file-path=/var/www/conf/php43/ 
--enable-mbstring --with-pear=/usr/local/lib/php

I get this compile error on make:

gcc  -Iext/sockets/ -I/usr/local/src/php4/ext/sockets/ 
-DPHP_ATOM_INC -I/usr/local/src/php4/include 
-I/usr/local/src/php4/main -I/usr/local/src/php4 
-I/usr/local/src/php4/Zend -I/usr/local/include 
-I/usr/local/include/mysql 
-I/usr/local/src/php4/ext/xml/expat  
-I/usr/local/src/php4/TSRM  -g -O2  -c 
/usr/local/src/php4/ext/sockets/sockets.c -o 
ext/sockets/sockets.o  && echo > ext/sockets/sockets.lo
/usr/local/src/php4/ext/sockets/sockets.c:276: conflicting 
types for `php_read'
/usr/local/src/php4/ext/sockets/php_sockets.h:105: previous 
declaration of `php_read'
*** Error code 1

Stop in /usr/local/src/php4 (line 422 of Makefile).

Thanks for your attention
-- 
Edit bug report at http://bugs.php.net/?id=20137&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=20137&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=20137&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=20137&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=20137&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=20137&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=20137&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=20137&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=20137&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=20137&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=20137&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20137&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=20137&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=20137&r=isapi

Reply via email to