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

libc::sock_txtime is not defined for target mipsel-unknown-linux-musl #1719

Closed
zonyitoo opened this issue May 8, 2022 · 3 comments
Closed

Comments

@zonyitoo
Copy link
Contributor

zonyitoo commented May 8, 2022

error[E0412]: cannot find type `sock_txtime` in crate `libc`
   --> /cargo/registry/src/gh.neting.cc-1ecc6299db9ec823/nix-0.24.1/src/sys/socket/sockopt.rs:589:60
    |
589 |     TxTime, Both, libc::SOL_SOCKET, libc::SO_TXTIME, libc::sock_txtime);
    |                                                            ^^^^^^^^^^^ not found in `libc`

Is this API really exists for this target? If so, please add it to the libc crate.

zonyitoo added a commit to shadowsocks/shadowsocks-rust that referenced this issue May 8, 2022
@asomers
Copy link
Member

asomers commented May 8, 2022

Well, you tell me, since you apparently use mipsel-unknown-linux-musl. Does sock_txtime exist there? If it does, file a PR with libc.

@zonyitoo
Copy link
Contributor Author

zonyitoo commented May 8, 2022

Actually I don't really know. This was found on Github Action for building release binaries for each targets.

@zonyitoo
Copy link
Contributor Author

zonyitoo commented May 8, 2022

rust-lang/libc#2776

It appears that someone have already submitted a PR 3 days ago. Closing.

@zonyitoo zonyitoo closed this as completed May 8, 2022
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

2 participants