Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Cross compile to x86_64-unknown-freebsd failed #1624

lakako started this conversation in General
Discussion options

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?

You must be logged in to vote

Replies: 1 comment

Comment options

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",
]
You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /