oschwald / maxminddb-golang

MaxMind DB Reader for Go
ISC License
597 stars 101 forks source link

Does not build on Solaris #21

Closed AudriusButkevicius closed 8 years ago

AudriusButkevicius commented 8 years ago
Godeps/_workspace/src/github.com/oschwald/maxminddb-golang/mmap_unix.go:10: undefined: syscall.Mmap
Godeps/_workspace/src/github.com/oschwald/maxminddb-golang/mmap_unix.go:14: undefined: syscall.Munmap
oschwald commented 8 years ago

You could try building with -tags appengine. If that works, we should just be able to add solaris to everywhere where there is a conditional build for appengine. This will disable mmap. I am not sure if Go on Solaris supports mmap.

oschwald commented 8 years ago

I switched to using golang.org/x/sys/unix instead of syscall. Could you test the latest master to see if it works for you now?

AudriusButkevicius commented 8 years ago

Seems to build now. though I am crosscompiling.

AudriusButkevicius commented 8 years ago

Also, -tags appengine works too it seems.