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

steven_blocks: error[E0425]: cannot find function pthread_atfork in crate libc #256

Closed
iceiix opened this issue Jan 4, 2020 · 0 comments

Comments

@iceiix
Copy link
Owner

iceiix commented Jan 4, 2020

cd blocks
cargo build

fails:

   Compiling rand v0.6.5
error[E0425]: cannot find function `pthread_atfork` in crate `libc`
   --> .cargo/registry/src/github.com-1ecc6299db9ec823/rand-0.6.5/src/rngs/adapter/reseeding.rs:320:28
    |
320 |             unsafe { libc::pthread_atfork(None, None, Some(fork_handler)) };
    |                            ^^^^^^^^^^^^^^ not found in `libc`

cargo tree shows rand v0.6.5 is used by cgmath and collision:

├── cgmath v0.17.0
│   ├── approx v0.3.2
│   │   └── num-traits v0.2.6
│   ├── num-traits v0.2.6 (*)
│   ├── rand v0.6.5
├── collision v0.20.1
│   ├── approx v0.3.2 (*)
│   ├── bit-set v0.5.0
│   │   └── bit-vec v0.5.0
│   ├── cgmath v0.17.0 (*)
│   ├── rand v0.6.5 (*)
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

1 participant