This is apparently a known issue . Take the libiodbc source , apply the following patch, build and install:
diff -ub libiodbc-3.52.6/include/iodbcunix.h.orig --- libiodbc-3.52.6/include/iodbcunix.h.orig 2006-01-26 09:50:59.000000000 +0000 +++ libiodbc-3.52.6/include/iodbcunix.h 2007-12-24 19:33:57.859375000 +0000 @@ -124,6 +124,7 @@ #if defined (OBSOLETE_WINDOWS_TYPES) typedef unsigned char BYTE; #endif +#ifndef WIN32 typedef unsigned short WORD; typedef unsigned int DWORD; typedef char * LPSTR; @@ -131,6 +132,7 @@ typedef wchar_t * LPWSTR; typedef const wchar_t * LPCWSTR; typedef DWORD * LPDWORD; +#endif #if !defined(BOOL) && !defined(_OBJC_OBJC_H_) typedef int BOOL;
UPDATE: Cygwin people have TODO for this problem , but it's been several months now. In case you wait too long, you can fake it in the meantime:
#! /bin/bash
source share