Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

Fails to compile on DragonflyBSD #5

Open
cgag opened this issue Jul 4, 2015 · 2 comments
Open

Fails to compile on DragonflyBSD #5

cgag opened this issue Jul 4, 2015 · 2 comments

Comments

@cgag
Copy link

cgag commented Jul 4, 2015

I tried to go get cockroach, but I get this error:

# github.com/cockroachdb/c-rocksdb
In file included from internal/port/port.h:18:0,
                 from internal/db/filename.h:18,
                 from internal/util/auto_roll_logger.h:12,
                 from src/go/src/github.com/cockroachdb/c-rocksdb/auto_roll_logger.cc:6:
internal/port/port_posix.h:37:22: fatal error: endian.h: No such file or directory
compilation terminated.

I looked at the detect platform script and I can see it uses uname -s and compares it to DragonFly, which should define OS_DRAGONFLYBSD. That all looks correct but the if defined check still seems to fail in port_posix.h.

Let me know if there's any more information I can get for you if you don't have access to a dragonfly system.

@petermattis
Copy link
Contributor

@cgag While rocksdb supports DragonFly, our c-rocksdb package doesn't (yet). Adding support should be pretty easy. You just need to add the appropriate cflags to https://github.com/cockroachdb/c-rocksdb/blob/master/cgo_flags.go with the build constraint of dragonfly. Something like:

// #cgo dragonfly CPPFLAGS: -DOS_DRAGONFLYBSD

@knz
Copy link
Contributor

knz commented Dec 29, 2015

See #12
And also 4d67cb2

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

No branches or pull requests

3 participants