curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: Build issues for curl/libcurl > 7.53.1 on OpenServer 5.0.7

From: Kevin R. Bulgrien <kevinb_at_systemsdesignusa.com>
Date: Wed, 20 Jun 2018 14:12:43 -0500 (CDT)

----- Original Message -----
> From: "Daniel Stenberg" <daniel_at_haxx.se>
>
> On Tue, 19 Jun 2018, Kevin R. Bulgrien wrote:
>
> > ../include/curl/system.h:426: parse error before `curl_socklen_t'
>
> Do does your OS not have a 'socklen_t' type in a header somewhere, or
> is this problem happening because we don't include that?

$ grep -R socklen_t /usr/include
/usr/include/php/main/php.h:typedef unsigned int socklen_t;
/usr/include/php/main/php_config.h:/* Define if the socklen_t typedef is in sys/socket.h */
/usr/include/php/main/php_config.h:/* Whether you have socklen_t */
/usr/include/php/main/php_network.h:# define socklen_t unsigned int
/usr/include/php/main/php_network.h:PHPAPI int php_connect_nonb(int sockfd, const struct sockaddr *addr, socklen_t addrlen, struct timeval *timeout);
/usr/include/php/main/php_network.h:PHPAPI int php_connect_nonb_win32(SOCKET sockfd, const struct sockaddr *addr, socklen_t addrlen, struct timeval *timeout);
/usr/include/schily/xconfig.h:#define socklen_t int /* To be used if socklen_t is not present */
/usr/include/gcrypt.h:#define _GCRY_PTH_SOCKLEN_T socklen_t
grep: /usr/include/xpg4v2/machlock.h: No such file or directory

It would appear socklen_t is not defined by the system, though it is
by a number of add-on packages: php, cdrecord, and libgcrypt.

-- 
Kevin R. Bulgrien, Network/Software Engineer
http://www.systemsdesignusa.com
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2018-06-20