bandwhich: cargo install fails on Mac OS Catalina
Compiling futures v0.3.1
error[E0599]: no method named to_primitive_values
found for type pnet_base::MacAddr
in the current scope
–> /var/folders/32/rk26q2615r31j59ptvscfqpm0000gp/T/cargo-installvKafRX/release/build/pnet_packet-e89ea43c86e9974b/out/ethernet.rs:442:24
|
442 | let vals = val.to_primitive_values();
| ^^^^^^^^^^^^^^^^^^^ method not found in pnet_base::MacAddr
error[E0599]: no method named to_primitive_values
found for type pnet_base::MacAddr
in the current scope
–> /var/folders/32/rk26q2615r31j59ptvscfqpm0000gp/T/cargo-installvKafRX/release/build/pnet_packet-e89ea43c86e9974b/out/ethernet.rs:499:24
|
499 | let vals = val.to_primitive_values();
| ^^^^^^^^^^^^^^^^^^^ method not found in pnet_base::MacAddr
Compiling trust-dns-proto v0.18.0-alpha.2
error[E0599]: no method named to_primitive_values
found for type pnet_base::MacAddr
in the current scope
–> /var/folders/32/rk26q2615r31j59ptvscfqpm0000gp/T/cargo-installvKafRX/release/build/pnet_packet-e89ea43c86e9974b/out/arp.rs:776:24
|
776 | let vals = val.to_primitive_values();
| ^^^^^^^^^^^^^^^^^^^ method not found in pnet_base::MacAddr
error[E0599]: no method named to_primitive_values
found for type pnet_base::MacAddr
in the current scope
–> /var/folders/32/rk26q2615r31j59ptvscfqpm0000gp/T/cargo-installvKafRX/release/build/pnet_packet-e89ea43c86e9974b/out/arp.rs:874:24
|
874 | let vals = val.to_primitive_values();
| ^^^^^^^^^^^^^^^^^^^ method not found in pnet_base::MacAddr
error: aborting due to 4 previous errors
For more information about this error, try rustc --explain E0599
.
error: could not compile pnet_packet
.
warning: build failed, waiting for other jobs to finish…
error: failed to compile bandwhich v0.7.0
, intermediate artifacts can be found at /var/folders/32/rk26q2615r31j59ptvscfqpm0000gp/T/cargo-installvKafRX
Caused by: build failed
Cargo build works fine, but cargo install fails. Not sure why the difference
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 21 (10 by maintainers)
Ah, that is a different perspective. Yes, that is odd and should not happen. Unfortunately I do not have an answer for it just yet, but tomorrow I’ll take a closer look because it’s odd/interesting. Feel free to update the thread here so we keep it in one place.
I’ll let you know what my findings are and we can discuss it in more detail to see if it should be raised with the maintainers
Also @ashpatel and @adwhit - it should work now. 😃 Thanks for reporting this.
Trying now
@imsnif - Now I got what you meant by transitive dependency, my apologies. I’ll see if I can adjust the dependencies on existing crates to have
0.23.0
point to non-breakingpnet_base
.Edit: Looking into this now
I’m having the same issue with Ubuntu 19.10.
Could it be related to https://github.com/libpnet/libpnet/pull/396 somehow?