Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#531 breaks build on Mac OSX #532

Closed
rikvdh opened this issue Feb 17, 2018 · 2 comments
Closed

#531 breaks build on Mac OSX #532

rikvdh opened this issue Feb 17, 2018 · 2 comments

Comments

@rikvdh
Copy link

rikvdh commented Feb 17, 2018

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. tarantool/tarantool#2303

@mattn mattn closed this as completed in bd9ec08 Feb 17, 2018
mattn added a commit that referenced this issue Feb 17, 2018
only enable pread/pwrite for linux. fixes #533 and fixes #532
@book777
Copy link

book777 commented Aug 21, 2018

I still have the same problem
GOOS=linux CGO_ENABLED=1
Also used brew install go --with-cc-all

  digest = "1:3cafc6a5a1b8269605d9df4c6956d43d8011fc57f266ca6b9d04da6c09dee548"
  name = "github.com/mattn/go-sqlite3"
  packages = ["."]
  pruneopts = "UT"
  revision = "25ecb14adfc7543176f7d85291ec7dba82c6f7e4"
  version = "v1.9.0"

@book777
Copy link

book777 commented Aug 22, 2018

Solution to the problem #372 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants