Re: OSX distribution
Frediano Ziglio <[email protected]>
| Newsgroups | gmane.comp.db.tds.freetds |
|---|---|
| Message-ID | <CAHt6W4ckW=3=VyQr0kgaT_PsHueNBmqVxucX6UL=YptwN7kMMw@mail.gmail.com> |
2016-06-06 12:25 GMT+01:00 Ryan Schmidt <[email protected]>: > > On Jun 6, 2016, at 5:06 AM, Frediano Ziglio wrote: > >> 2016-06-05 20:17 GMT+01:00 Igor Korot <[email protected]>: >>> Hi, ALL, >>> Is there a dmg file to download for the release? >>> >>> Thank you. >> >> There is actually not any official Mac OS X release package. > > I'm the maintainer of freetds in the MacPorts package management system, and unfortunately, I've found that freetds 1.00 does not compile on OS X. (0.95.x versions did.) The error is: > > > In file included from odbc.c:51: > ../../include/odbcss.h:300:8: error: unknown type name 'BYTE' > const BYTE * colptr; > ^ > ../../include/odbcss.h:305:29: error: unknown type name 'BYTE' > bcp_colptr(HDBC hdbc, const BYTE * colptr, int table_column) > ^ > ../../include/odbcss.h:343:8: error: unknown type name 'BYTE' > const BYTE * varaddr; > ^ > ../../include/odbcss.h:346:8: error: unknown type name 'BYTE' > const BYTE * terminator; > ^ > ../../include/odbcss.h:353:27: error: unknown type name 'BYTE' > bcp_bind(HDBC hdbc, const BYTE * varaddr, int prefixlen, int varlen, > ^ > ../../include/odbcss.h:354:8: error: unknown type name 'BYTE' > const BYTE * terminator, int termlen, int vartype, int table_column) > ^ I don't think will be hard to fix a -DBYTE="unsigned char" on CPPFLAGS should be a workaround. Or replace BYTE with "unsigned char" in odbcss.h (I think I'll manage this way). Could you confirm that last way works (I doubt it won't) ? Frediano