weigj / go-odbc

ODBC Driver for Go language
Other
122 stars 49 forks source link

goinstall fails for go-odbc on Mac OS X Snow Leopard #5

Open ijt opened 13 years ago

ijt commented 13 years ago

I installed unixodbc, but go-odbc doesn't compile:

[ ijt issac-trotts-computer ~/Dropbox/repos/go-sqlite3 ] goinstall github.com/weigj/go-odbc /bin/bash: === cd /Users/ijt/vs/src/github.com/weigj/go-odbc; bash gomake -f- install CGOPKGPATH=github.com/weigj cgo -- odbc.go touch _obj/_cgo_run 6g -I "/Users/ijt/vs/pkg/darwin_amd64" -o go.6 doc.go util.go _obj/odbc.cgo1.go _obj/_cgo_gotypes.go odbc.go:243[_obj/odbc.cgo1.go:246]: cannot use &nor (type _Ctypedef_SQLINTEGER) as type _Ctypedef_SQLLEN in function argument odbc.go:397[_obj/odbc.cgo1.go:400]: cannot use _Ctypedef_SQLPOINTER(unsafe.Pointer(&field_type)) (type _Ctypedef_SQLPOINTER) as type _Ctypedef_SQLLEN in function argument odbc.go:401[_obj/odbc.cgo1.go:404]: cannot use _Ctypedef_SQLPOINTER(unsafe.Pointer(&field_len)) (type _Ctypedef_SQLPOINTER) as type _Ctypedef_SQLLEN in function argument odbc.go:425[_obj/odbc.cgo1.go:428]: cannot use _Ctypedef_SQLINTEGER(int(field_len) + 4) (type _Ctypedef_SQLINTEGER) as type _Ctypedef_SQLLEN in function argument odbc.go:430[_obj/odbc.cgo1.go:433]: cannot use _Ctypedef_SQLINTEGER(int(field_len) + 4) (type _Ctypedef_SQLINTEGER) as type _Ctypedef_SQLLEN in function argument odbc.go:532[_obj/odbc.cgo1.go:535]: cannot use slen (type _Ctypedef_SQLUINTEGER) as type _Ctypedef_SQLULEN in assignment odbc.go:533[_obj/odbc.cgo1.go:536]: cannot use _Ctypedef_SQLINTEGER(slen + 1) (type _Ctypedef_SQLINTEGER) as type _Ctypedef_SQLLEN in assignment odbc.go:534[_obj/odbc.cgo1.go:537]: cannot use _Ctypedef_SQLINTEGER(slen) (type _Ctypedef_SQLINTEGER) as type _Ctypedef_SQLLEN in assignment

lelandstarr commented 13 years ago

I have the same issue on Lion, is there an update out there?