This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: building Perl module DBD-ODBC-4.3 under 64-bit cygwin
- From: Simon Barnes <swbarnes at slb dot com>
- To: "cygwin at cygwin dot com" <cygwin at cygwin dot com>
- Date: Fri, 2 Aug 2013 07:11:40 +0000
- Subject: RE: building Perl module DBD-ODBC-4.3 under 64-bit cygwin
- References: <3BA6644C396CE44F83F988D688C72A73015956B870 at NL0230MBX08N1 dot DIR dot slb dot com>
> ...is a typical type conflict. ULONG is a Windows type defined as
> unsigned long in the Win32 API. The Win32 data model is LLP64, so
> unsigned long is 4 bytes. However, Cygwin is LP64, so unsigned long is
> 8 bytes. Therefore the `typedef unsigned long ULONG;' is wrong for 64
> bit. Either drop the definition entirely, or redefine it matching the
> data model:
>
> #ifdef __LP64__
> typedef unsigned int ULONG;
> #else
> typedef unsigned long ULONG;
> #endif
OK, managed to achieve a build with this. And I'll keep on eye on cygwin ports.
Thanks
Simon
--
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