-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Compilation errors in illumos #305
Comments
@gdamore There's an open issue for using |
I can try to code it up and send you a patch if you like. Sent from my iPhone
|
Yeah, that'd be great. I'm happy to test the changes on Linux & Mac OS X if you get them working on Illumos. Hopefully those changes should translate over to SmartOS too. |
They will. ;-) The only thing I’m not sure about is the Mmap stuff… I don’t know why that is missing from syscall..
|
I'm looking at this issue but having problems getting a Solaris instance up and running. The Vagrant boxes out there use VirtualBox (I'm on VMWare) and DigitalOcean doesn't support Solaris distros. :-/ I may have to build a Vagrant box from scratch but first I need to figure out how to do that. :) |
Waiting on this fix. |
Hi Ben, If I were to supply you with a SmartOS VM (illumos based distro) in our cloud would that help with this issue? We're keen to use this on SmartOS... Cheers, Alasdair |
@alasdairrr Yeah, that'd be great. I burned about 4 hours trying to get it running in Vagrant and I haven't had the time to invest to try again. I don't think the fix itself is that hard so a VM would be a huge help. |
I’m super sorry I’ve not had time to work on this. I switched to goleveldb for my immediate needs, and haven’t had cycles to go back and fix this. But doing so is important to making some applications, such as Consul.io, work on illumos. Its been on my TODO list for a while now, but I’m completely swamped.
|
No problem. Hopefully it'll be pretty straightforward once I get a VM up and running. |
Hi Ben, I've created the VM, bolt.cloud.ec - could you let me know your ssh public key? My email is al at everycity dot co dot uk Cheers! |
Hi, any updates on this issue? I'm also interested in running consul on openindiana/illumos. |
@caquino I've been slammed for time lately but I'm planning on working on this after GopherCon (July 7 - 10th). |
@caquino would be great to have this fixed as Consul.io fails to build on SmartOS/Illumos. If you still need a VM to test let me know. |
golang/go#11113 discusses mmap fixes for golang
|
The patch requires change in the test because the lock test fails on Solaris. This is caused by the fact that fcntl-based locking doesn't protect within the same pid. |
It would appear that under cgo 1.4, it doesn't work on illumos systems:
../../../../boltdb/bolt/bolt_unix.go:26: undefined: syscall.Flock
../../../../boltdb/bolt/bolt_unix.go:26: undefined: syscall.LOCK_EX
../../../../boltdb/bolt/bolt_unix.go:26: undefined: syscall.LOCK_NB
../../../../boltdb/bolt/bolt_unix.go:40: undefined: syscall.Flock
../../../../boltdb/bolt/bolt_unix.go:40: undefined: syscall.LOCK_UN
../../../../boltdb/bolt/bolt_unix.go:55: undefined: syscall.Mmap
../../../../boltdb/bolt/bolt_unix.go:75: undefined: syscall.Munmap
It looks like you're using a lot of Unix system calls that are simply not actually portable. Sadly, these calls do exist in the C library under the hood, but apparently cgo doesn't have them exposed for Solaris.
This prevents me from being able to use an otherwise very promising key value store in my project.
The text was updated successfully, but these errors were encountered: