libdrizzle can not compile under Cygwin on Windows 7

Bug #1361161 reported by B Druid
6
This bug affects 1 person
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://bugs.launchpad.net/drizzle ##
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://bugs.launchpad.net/drizzle ##
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_LIBDRIZZLE -g -O2 -Wno-pragmas -Wall -Wextra -Wunknown-pragmas --param=ssp-buffer-size=1 -Wno-attributes -Waddress -Warray-bounds -Wchar-subscripts -Wcomment -Wctor-dtor-privacy -Wfloat-equal -Wformat=2 -Wmaybe-uninitialized -Wmissing-field-initializers -Wlogical-op -Wnon-virtual-dtor -Wnormalized=id -Woverloaded-virtual -Wpointer-arith -Wredundant-decls -Wshadow -Wsign-compare -Wstrict-overflow=1 -Wswitch-enum -Wundef -Wc++11-compat -Wunused -Wunused-result -Wunused-variable -Wwrite-strings -Wformat-security -floop-parallelize-all -fwrapv -pipe -MT libdrizzle/libdrizzle_libdrizzle_la-command.lo -MD -MP -MF libdrizzle/.deps/libdrizzle_libdrizzle_la-command.Tpo -c libdrizzle/command.cc -DDLL_EXPORT -DPIC -o libdrizzle/.libs/libdrizzle_libdrizzle_la-command.o
In file included from ./libdrizzle/common.h:84:0,
                 from libdrizzle/command.cc:46:
./libdrizzle/structs.h:70:9: error: 'SOCKET' does not name a type
 typedef SOCKET socket_t;
         ^
./libdrizzle/structs.h:210:3: error: 'socket_t' does not name a type
   socket_t fd;
   ^
./libdrizzle/structs.h: In constructor 'drizzle_st::drizzle_st()':
./libdrizzle/structs.h:279:5: error: class 'drizzle_st' does not have any field
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.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.