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

not work on ubuntu 16.04.1 LTS #79

Closed
bajizhh opened this issue Oct 10, 2018 · 3 comments
Closed

not work on ubuntu 16.04.1 LTS #79

bajizhh opened this issue Oct 10, 2018 · 3 comments

Comments

@bajizhh
Copy link

bajizhh commented Oct 10, 2018

::syscall(SYS_getrandom, buf, size, flags) failed on ubuntu 16.04.1 LTS

location:
uuid/detail/random_provider_getrandom.ipp:70

throws an exception blow:
boost::exception_detail::clone_impl<boost::exception_detail::error_info_injectorboost::uuids::entropy_error >

system kernel info:
Linux app2 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

@Lastique
Copy link
Member

The getrandom syscall only appeared in Linux kernel 3.17, so in your kernel it is not present, which causes the error. The fact that SYS_getrandom is defined likely means that your installed Linux headers are from a different, newer kernel. Please, check that your linux-libc-dev package version on the build system matches the kernel you're running. If it doesn't then I'd say it's a configuration problem.

Also, you can define BOOST_UUID_RANDOM_PROVIDER_FORCE_POSIX to disable getrandom backend and use /dev/urandom.

@bajizhh
Copy link
Author

bajizhh commented Oct 10, 2018

@Lastique thank you, I fixed it according to your suggestion.

@bajizhh bajizhh closed this as completed Oct 10, 2018
@jeking3
Copy link
Collaborator

jeking3 commented Oct 10, 2018

So before we close this, I'd like to know if you used the BOOST_UUID_RANDOM_PROVIDER_FORCE_POSIX workaround. If we need to add a fix here I'd like to know.

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

No branches or pull requests

3 participants