libdrizzle can not compile under Cygwin on Windows 7
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Drizzle Client & Protocol Library |
New
|
Undecided
|
Unassigned |
Bug Description
The following information appears when running the configure script under Cygwin on Windows 7:
...
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking windows.h usability... yes
checking windows.h presence... yes
checking for windows.h... yes
checking winsock2.h usability... no
checking winsock2.h presence... yes
configure: WARNING: winsock2.h: present but cannot be compiled
configure: WARNING: winsock2.h: check for missing prerequisite headers?
configure: WARNING: winsock2.h: see the Autoconf documentation
configure: WARNING: winsock2.h: section "Present But Cannot Be Compiled"
configure: WARNING: winsock2.h: proceeding with the compiler's result
configure: WARNING: ## -------
configure: WARNING: ## Report this to http://
configure: WARNING: ## -------
checking for winsock2.h... no
checking ws2tcpip.h usability... no
checking ws2tcpip.h presence... yes
configure: WARNING: ws2tcpip.h: present but cannot be compiled
configure: WARNING: ws2tcpip.h: check for missing prerequisite headers?
configure: WARNING: ws2tcpip.h: see the Autoconf documentation
configure: WARNING: ws2tcpip.h: section "Present But Cannot Be Compiled"
configure: WARNING: ws2tcpip.h: proceeding with the compiler's result
configure: WARNING: ## -------
configure: WARNING: ## Report this to http://
configure: WARNING: ## -------
checking for ws2tcpip.h... no
checking for in_port_t... no
checking for ssize_t... yes
checking for size_t... yes
checking for fcntl... yes
checking for on_exit... yes
...
Later, if you ignore this and try and compile libdrizzle anyway, you receive the following error message:
libtool: compile: g++ -DHAVE_CONFIG_H -I. -fvisibility=hidden -DBUILDING_
In file included from ./libdrizzle/
./libdrizzle/
typedef SOCKET socket_t;
^
./libdrizzle/
socket_t fd;
^
./libdrizzle/
./libdrizzle/
named 'fd'
fd(-1),
^
So, I am doing what the program told me to do and submitting this as a bug report. Presumably, the configure script should not be identifying a Cygwin installation as Windows, but I am uncertain as to how to correct this problem.