Pull-request #531 breaks for OSX. The build is broken because OSX doesnt have pread, reverting to 3c6eef4 works.
~/src/github.com/mattn/go-sqlite3 master $ go build
# github.com/mattn/go-sqlite3
sqlite3-binding.c:31162:42: error: use of undeclared identifier 'pread64'
sqlite3-binding.c:31180:42: error: use of undeclared identifier 'pwrite64'
sqlite3-binding.c:31304:22: error: invalid application of 'sizeof' to an incomplete type 'struct unix_syscall []'
sqlite3-binding.c:31313:22: error: invalid application of 'sizeof' to an incomplete type 'struct unix_syscall []'
sqlite3-binding.c:31340:20: error: invalid application of 'sizeof' to an incomplete type 'struct unix_syscall []'
sqlite3-binding.c:31357:16: error: invalid application of 'sizeof' to an incomplete type 'struct unix_syscall []'
sqlite3-binding.c:13164:38: note: expanded from macro 'ArraySize'
sqlite3-binding.c:31361:14: error: invalid application of 'sizeof' to an incomplete type 'struct unix_syscall []'
sqlite3-binding.c:13164:38: note: expanded from macro 'ArraySize'
sqlite3-binding.c:33907:11: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
sqlite3-binding.c:31166:49: note: expanded from macro 'osPread64'
sqlite3-binding.c:34019:17: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
sqlite3-binding.c:31184:57: note: expanded from macro 'osPwrite64'
A quick Google-search led me to this who also had the same problem. https://github.com/tarantool/tarantool/issues/2303
I still have the same problem
GOOS=linux CGO_ENABLED=1
Also used brew install go --with-cc-all
```[[projects]]
digest = "1:3cafc6a5a1b8269605d9df4c6956d43d8011fc57f266ca6b9d04da6c09dee548"
name = "github.com/mattn/go-sqlite3"
packages = ["."]
pruneopts = "UT"
revision = "25ecb14adfc7543176f7d85291ec7dba82c6f7e4"
version = "v1.9.0"
Solution to the problem https://github.com/mattn/go-sqlite3/issues/372#issuecomment-396863368
Most helpful comment
I still have the same problem
GOOS=linux CGO_ENABLED=1Also used brew install go --with-cc-all
```[[projects]]
digest = "1:3cafc6a5a1b8269605d9df4c6956d43d8011fc57f266ca6b9d04da6c09dee548"
name = "github.com/mattn/go-sqlite3"
packages = ["."]
pruneopts = "UT"
revision = "25ecb14adfc7543176f7d85291ec7dba82c6f7e4"
version = "v1.9.0"