cURL / Mailing Lists / curl-users / Single Mail


Building curl 7.15.3 with cygwin

From: <>
Date: Tue, 6 Jun 2006 11:00:33 +0000


I'm trying to build curl-7.15.3 on cygwin. I downloaded the curl source package (from

I unzip it, go to the direcory and run:

> ./configure

this ends without errors

> make

This fails to compile lib/file.c file with the following errors

Making all in lib
make[1]: Entering directory `/cygdrive/c/curl-7.15.3/lib'
echo "/* This file is generated automatically */" > ../lib/ca-bundle.h
echo '#define CURL_CA_BUNDLE "/cygdrive/c/curl-7.15.3/share/curl/curl-ca-bundle.
crt"' >> ../lib/ca-bundle.h
make all-am
make[2]: Entering directory `/cygdrive/c/curl-7.15.3/lib'
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I../include
-I../lib -I../lib -I/cygdrive/c/temp/shibbolethsourcecode/OpenSSL/include/opens
sl -I/cygdrive/c/temp/shibbolethsourcecode/OpenSSL/include -g -O2 -MT file.lo -
MD -MP -MF ".deps/file.Tpo" -c -o file.lo file.c; \
then mv -f ".deps/file.Tpo" ".deps/file.Plo"; else rm -f ".deps/file.Tpo"; exit
1; fi
mkdir .libs
 gcc -DHAVE_CONFIG_H -I../include -I../lib -I../lib -I/cygdrive/c/temp/shibbolet
hsourcecode/OpenSSL/include/openssl -I/cygdrive/c/temp/shibbolethsourcecode/Open
SSL/include -g -O2 -MT file.lo -MD -MP -MF .deps/file.Tpo -c file.c -DPIC -o .l
In file included from /usr/include/sys/socket.h:15,
                 from file.c:48:
/usr/include/cygwin/socket.h:26: error: redefinition of `struct sockaddr'
/usr/include/cygwin/socket.h:38: error: redefinition of `struct sockaddr_storage'

I appreciate it if anyone can help.


Email sent from
Virus-checked using McAfee(R) Software
Visit for more information
Received on 2006-06-06