Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Master fails to build on MacOS #85

Closed
zhangxp1998 opened this issue Jan 7, 2020 · 1 comment
Closed

Master fails to build on MacOS #85

zhangxp1998 opened this issue Jan 7, 2020 · 1 comment

Comments

@zhangxp1998
Copy link
Collaborator

Building master branch on Mac failed with

   Compiling pnet_datalink_bandwhich_fork v0.23.0
error[E0432]: unresolved import `pnet_sys`
  --> /Users/user/.cargo/registry/src/github.heygears.com-1ecc6299db9ec823/pnet_datalink_bandwhich_fork-0.23.0/src/bpf.rs:17:5
   |
17 | use pnet_sys;
   |     ^^^^^^^^ no `pnet_sys` in the root

error[E0433]: failed to resolve: use of undeclared type or module `pnet_sys`
  --> /Users/user/.cargo/registry/src/github.heygears.com-1ecc6299db9ec823/pnet_datalink_bandwhich_fork-0.23.0/src/bindings/bpf.rs:69:20
   |
69 |     pub ifru_addr: pnet_sys::SockAddr, // NOTE Should be a union
   |                    ^^^^^^^^ use of undeclared type or module `pnet_sys`

error[E0599]: no method named `clone` found for type `std::sync::Arc<_>` in the current scope
   --> /Users/user/.cargo/registry/src/github.heygears.com-1ecc6299db9ec823/pnet_datalink_bandwhich_fork-0.23.0/src/bpf.rs:211:16
    |
211 |         fd: fd.clone(),
    |                ^^^^^ method not found in `std::sync::Arc<_>`
    |
    = note: fd is a function, perhaps you wish to call it

error[E0609]: no field `fd` on type `std::sync::Arc<_>`
   --> /Users/user/.cargo/registry/src/github.heygears.com-1ecc6299db9ec823/pnet_datalink_bandwhich_fork-0.23.0/src/bpf.rs:219:25
    |
219 |         libc::FD_SET(fd.fd, &mut sender.fd_set as *mut libc::fd_set);
    |                         ^^ unknown field

error: aborting due to 4 previous errors

Some errors have detailed explanations: E0432, E0433, E0599, E0609.
For more information about an error, try `rustc --explain E0432`.
error: could not compile `pnet_datalink_bandwhich_fork`.

To learn more, run the command again with --verbose.

This is possibly a rename problem with the fork?

@ebroto
Copy link
Collaborator

ebroto commented Jan 8, 2020

I've opened #94 to avoid this in the future

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants