cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

compiling php, getting socklen_t error

From: Nicki Handy <nhandy_at_eve.assumption.edu>
Date: Thu, 29 Jan 2004 15:44:37 -0500

Hi- I'm compiling php- have configured it --with-mysql and --with-curl.
during the make, it gives this error pretty quickly:

[ast:assumpti/Desktop/php-4.3.4] # make
gcc -Iext/curl/ -I/Users/assumpti/Desktop/php-4.3.4/ext/curl/ -DPHP_ATOM_IN
C -I/Users/assumpti/Desktop/php-4.3.4/include -I/Users/assumpti/Desktop/php-
4.3.4/main -I/Users/assumpti/Desktop/php-4.3.4 -I/Users/assumpti/Desktop/php
-4.3.4/Zend -I/Users/assumpti/Desktop/php-4.3.4/ext/xml/expat -no-cpp-preco
mp -no-cpp-precomp -I/Users/assumpti/Desktop/php-4.3.4/TSRM -g -O2 -c
/Users/assumpti/Desktop/php-4.3.4/ext/curl/curl.c -o ext/curl/curl.o &&
echo > ext/curl/curl.lo
In file included from /usr/include/curl/multi.h:65,
                from /usr/include/curl/curl.h:1214,
                from /Users/assumpti/Desktop/php-4.3.4/ext/curl/curl.c:37:
/usr/include/sys/socket.h:79: error: conflicting types for `socklen_t'
/Users/assumpti/Desktop/php-4.3.4/main/php.h:147: error: previous
declaration of `socklen_t'
make: *** [ext/curl/curl.lo] Error 1

I'm on panther and have successfully installed curl.

Thanks,
Nicki

-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
Received on 2004-01-31