X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=1.7 required=5.0 tests=BAYES_50,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SARE_OBFU_BELIEVE,T_FRT_STOCK2 X-Spam-Check-By: sourceware.org MIME-Version: 1.0 Date: Thu, 23 Dec 2010 14:17:05 -0200 Message-ID: Subject: make - lots of compile errors From: Carlos Pfitzner To: "cygwin AT cygwin DOT com" Content-Type: text/plain; charset=ISO-8859-1 Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com I am compliling squid to run on windows - native -or- under cygwin ./configure runs fine however make guives a lot off errors and termintates I believve is not possible to be c c++ forget to be updated or similar cause my cygwin version 1.7.1-1 is a new instalation completely downloaded from internet recently in addition I installed sasl so, now , ./configure works , but make still dont works help please $ make Making all in compat make[1]: Entering directory `/home/Administrator/work/squid-3.2.0.3/compat' g++ -DHAVE_CONFIG_H -I.. -I../include -I../lib -I../src -I../include -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Werror -pipe -D_REENTRANT -g -O2 -M T assert.o -MD -MP -MF .deps/assert.Tpo -c -o assert.o assert.cc In file included from /usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../include/w32a pi/ws2tcpip.h:19, from ../compat/os/mswin.h:221, from ../compat/compat.h:72, from ../include/config.h:68, from assert.cc:34: /usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../include/w32api/winsock2.h:103:2: e rror: #warning "fd_set and associated macros have been defined in sys/types. This may cause runtime problems with W32 sockets" In file included from /usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../include/w32a pi/ws2tcpip.h:19, from ../compat/os/mswin.h:221, from ../compat/compat.h:72, from ../include/config.h:68, from assert.cc:34: /usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../include/w32api/winsock2.h:632: err or: declaration of C function `int select(int, _types_fd_set*, _types_fd_set*, _ types_fd_set*, const timeval*)' conflicts with /usr/include/sys/select.h:31: error: previous declaration `int select(int, _type s_fd_set*, _types_fd_set*, _types_fd_set*, timeval*)' here In file included from ../compat/compat.h:72, from ../include/config.h:68, from assert.cc:34: ../compat/os/mswin.h: In function `int close(int)': ../compat/os/mswin.h:362: error: `_get_osfhandle' was not declared in this scope ../compat/os/mswin.h:370: error: `_free_osfhnd' was not declared in this scope ../compat/os/mswin.h:371: error: `__pioinfo' was not declared in this scope ../compat/os/mswin.h:374: error: `_close' was not declared in this scope ../compat/os/mswin.h: In function `int read(int, void*, size_t)': ../compat/os/mswin.h:399: error: `_get_osfhandle' was not declared in this scope ../compat/os/mswin.h:404: error: `_read' was not declared in this scope ../compat/os/mswin.h: In function `int write(int, const void*, size_t)': ../compat/os/mswin.h:412: error: `_get_osfhandle' was not declared in this scope ../compat/os/mswin.h:417: error: `_write' was not declared in this scope ../compat/os/mswin.h: In function `int Squid::accept(int, sockaddr*, size_t*)': ../compat/os/mswin.h:435: error: `_get_osfhandle' was not declared in this scope ../compat/os/mswin.h:440: error: `_open_osfhandle' was not declared in this scop e ../compat/os/mswin.h: In function `int Squid::bind(int, sockaddr*, int)': ../compat/os/mswin.h:446: error: `_get_osfhandle' was not declared in this scope ../compat/os/mswin.h: In function `int Squid::connect(int, const sockaddr*, int) ': ../compat/os/mswin.h:456: error: `_get_osfhandle' was not declared in this scope ../compat/os/mswin.h: In function `int Squid::getsockname(int, sockaddr*, size_t *)': ../compat/os/mswin.h:496: error: `_get_osfhandle' was not declared in this scope ../compat/os/mswin.h: In function `int Squid::getsockopt(int, int, int, void*, i nt*)': ../compat/os/mswin.h:518: error: `_get_osfhandle' was not declared in this scope ../compat/os/mswin.h: In function `int Squid::ioctl(int, int, void*)': ../compat/os/mswin.h:529: error: `_get_osfhandle' was not declared in this scope ../compat/os/mswin.h: In function `int Squid::ioctlsocket(int, long int, u_long* )': ../compat/os/mswin.h:539: error: `_get_osfhandle' was not declared in this scope ../compat/os/mswin.h: In function `int Squid::listen(int, int)': ../compat/os/mswin.h:549: error: `_get_osfhandle' was not declared in this scope ../compat/os/mswin.h: In function `int Squid::recv(int, void*, size_t, int)': ../compat/os/mswin.h:562: error: `_get_osfhandle' was not declared in this scope ../compat/os/mswin.h: In function `int Squid::recvfrom(int, void*, size_t, int, sockaddr*, size_t*)': ../compat/os/mswin.h:573: error: `_get_osfhandle' was not declared in this scope ../compat/os/mswin.h: In function `int Squid::send(int, const void*, size_t, int )': ../compat/os/mswin.h:596: error: `_get_osfhandle' was not declared in this scope ../compat/os/mswin.h: In function `int Squid::sendto(int, const void*, size_t, i nt, const sockaddr*, int)': ../compat/os/mswin.h:607: error: `_get_osfhandle' was not declared in this scope ../compat/os/mswin.h: In function `int Squid::setsockopt(SOCKET, int, int, const char*, int)': ../compat/os/mswin.h:619: error: `_get_osfhandle' was not declared in this scope ../compat/os/mswin.h: In function `int Squid::shutdown(int, int)': ../compat/os/mswin.h:632: error: `_get_osfhandle' was not declared in this scope ../compat/os/mswin.h: In function `int Squid::socket(int, int, int)': ../compat/os/mswin.h:648: error: `_open_osfhandle' was not declared in this scop e ../compat/os/mswin.h: In function `int Squid::WSAAsyncSelect(int, HWND__*, unsig ned int, long int)': ../compat/os/mswin.h:655: error: `_get_osfhandle' was not declared in this scope ../compat/os/mswin.h: In function `int Squid::WSADuplicateSocket(int, DWORD, _WS APROTOCOL_INFOA*)': ../compat/os/mswin.h:669: error: `_get_osfhandle' was not declared in this scope ../compat/os/mswin.h: In function `int Squid::WSASocket(int, int, int, _WSAPROTO COL_INFOA*, GROUP, DWORD)': ../compat/os/mswin.h:691: error: `_open_osfhandle' was not declared in this scop e In file included from /usr/include/unistd.h:4, from ../compat/debug.h:18, from ../compat/compat.h:99, from ../include/config.h:68, from assert.cc:34: ../compat/os/mswin.h: At global scope: ../compat/os/mswin.h:358: error: previous declaration of `int close(int)' with ` C++' linkage /usr/include/sys/unistd.h:29: error: conflicts with new declaration with `C' lin kage /usr/include/sys/unistd.h:89: error: declaration of C function `int getpagesize( )' conflicts with ../compat/os/mswin.h:753: error: previous declaration `size_t getpagesize()' her e ../compat/os/mswin.h:395: error: previous declaration of `int read(int, void*, s ize_t)' with `C++' linkage /usr/include/sys/unistd.h:138: error: conflicts with new declaration with `C' li nkage /usr/include/sys/unistd.h:171: error: `unsigned int Sleep' redeclared as differe nt kind of symbol /usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../include/w32api/winbase.h:2135: err or: previous declaration of `void Sleep(DWORD)' /usr/include/sys/unistd.h:171: error: expected primary-expression before `unsign ed' /usr/include/sys/unistd.h:171: error: expected `)' before `unsigned' ../compat/os/mswin.h:408: error: previous declaration of `int write(int, const v oid*, size_t)' with `C++' linkage /usr/include/sys/unistd.h:183: error: conflicts with new declaration with `C' li nkage make[1]: *** [assert.o] Error 1 make[1]: Leaving directory `/home/Administrator/work/squid-3.2.0.3/compat' make: *** [all-recursive] Error 1 Administrator AT lupus ~/work/squid-3.2.0.3 $ thanks -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple