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

Support Building on OpenBSD #148

Merged
merged 4 commits into from
Aug 17, 2019

Conversation

crypto-ape
Copy link

@crypto-ape crypto-ape commented Aug 14, 2019

Hey Monkeys!

I had some interest in being able to run a BitShares node on OpenBSD.

This PR with this bitshares-core PR contains changes allowing to successfully build the code base under OpenBSD.

The work is not done yet, because, at least for me, the compiled executables crash (with a segmentation fault) on calling some boost functions (hastily done some call tracing).

I plan to investigate further. So far, I wanted to share and close the work already done.

Ape out!

src/crypto/elliptic_common.cpp Outdated Show resolved Hide resolved
@pmconrad
Copy link

Please rebase on latest master.

@crypto-ape crypto-ape force-pushed the support_building_on_open_bsd branch from ddb1f3e to 727e09e Compare August 16, 2019 19:41
@pmconrad
Copy link

Haven't tested on OpenBSD, but looking good. Thanks!

#ifdef __APPLE__
#if defined(__APPLE__)
#elif defined(__OpenBSD__)
void to_variant( size_t s, variant& v, uint32_t max_depth ) { v = variant( int64_t(s) ); }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure whether this is really needed. I suspect it's unused since macOS build doesn't rely on it.

Copy link
Member

@abitmore abitmore Mar 28, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, found the code for macOS in variant.hpp implemented with inline.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using int64_t but not uint64_t here is probably wrong.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix: #194.

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

Successfully merging this pull request may close these issues.

3 participants