-
Notifications
You must be signed in to change notification settings - Fork 455
-
This is log
/usr/local/lib/gcc/x86_64-unknown-freebsd13/6.4.0/../../../../x86_64-unknown-freebsd13/bin/ld: /target/x86_64-unknown-freebsd/debug/deps/libnetwork_interface-51399a3e9f6cd376.rlib(network_interface-51399a3e9f6cd376.network_interface.6cef9d1d15350a55-cgu.2.rcgu.o): in function `network_interface::target::unix::make_mac_addrs':
/cargo/registry/src/index.crates.io-1949cf8c6b5b557f/network-interface-2.0.0/src/target/unix/mod.rs:124: undefined reference to `lladdr'
collect2: error: ld returned 1 exit status
= note: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified
= note: use the `-l` flag to specify native libraries to link
= note: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#rustc-link-lib)
How to solve this problem?
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment
-
this is my Cross.toml config
[target.x86_64-unknown-freebsd]
pre-build = [
"apt update",
"apt install -y protobuf-compiler"
]
image = "ghcr.io/cross-rs/x86_64-unknown-freebsd:main"
rustflags = [
"-Clink-lib=pcap",
]
Beta Was this translation helpful? Give feedback.
All reactions
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment