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

Build issue on Solaris #4787

Closed
fazalmajid opened this issue Nov 13, 2015 · 3 comments
Closed

Build issue on Solaris #4787

fazalmajid opened this issue Nov 13, 2015 · 3 comments
Labels

Comments

@fazalmajid
Copy link

tsdb/engine/tsm1/tsm1.go is using the obsolete syscall.Mmap and Munmap instead of golang.org/x/sys/unix.Mmap like BoltDB.

Compilation fails with:

local64 ~/build/influxdb-0.9.4.2/src/github.com/influxdb/influxdb>go build ./...
# github.com/influxdb/influxdb/tsdb/engine/tsm1
tsdb/engine/tsm1/tsm1.go:1974: undefined: syscall.Mmap
tsdb/engine/tsm1/tsm1.go:2033: undefined: syscall.Munmap

See:

@pauldix
Copy link
Member

pauldix commented Dec 8, 2015

Can you try to build this against master now? We just removed a bunch of stuff that may have caused this problem.

fazalmajid pushed a commit to Apsalar/influxdb that referenced this issue Dec 8, 2015
@fazalmajid
Copy link
Author

@pauldix yes, I had to create a Solaris-specific mmap_solaris.go (straight copy-paste job from the BoltDB version), and tsm1 now passes its unit tests. Thanks for the help!.

The pull request is #5027

fazalmajid pushed a commit to Apsalar/influxdb that referenced this issue Dec 8, 2015
pauldix added a commit that referenced this issue Dec 8, 2015
fix tsm1 for Solaris #4787, passes unit tests now
@pauldix
Copy link
Member

pauldix commented Dec 8, 2015

merged, will go into the 0.9.6 release

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

No branches or pull requests

3 participants