cURL / Mailing Lists / curl-users / Single Mail

curl-users

Building curl 7.15.3 with cygwin

From: <youcef.laribi_at_ntlworld.com>
Date: Tue, 6 Jun 2006 11:00:33 +0000

Hi,

I'm trying to build curl-7.15.3 on cygwin. I downloaded the curl source package (from http://curl.haxx.se/download/curl-7.15.3.zip).

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
ibs/file.o
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.

Thanks,
Youcef

-----------------------------------------
Email sent from www.ntlworld.com
Virus-checked using McAfee(R) Software
Visit www.ntlworld.com/security for more information
Received on 2006-06-06