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

Problem with build for x86_64-unknown-linux-musl #1010

Closed
anatse opened this issue Mar 29, 2023 · 2 comments
Closed

Problem with build for x86_64-unknown-linux-musl #1010

anatse opened this issue Mar 29, 2023 · 2 comments

Comments

@anatse
Copy link

anatse commented Mar 29, 2023

After changing tokio-postgres version to 0.7.8 there are build errors for the target x86_64-unknown-linux-musl.

There are many errors such following in the build output:

#11 307.9    Compiling socket2 v0.5.1
#11 308.9 error[E0425]: cannot find value `DCCP_SOCKOPT_SERVICE` in crate `libc`
#11 308.9     --> /usr/src/gserver/vendor/socket2/src/sys/unix.rs:2452:23
#11 308.9      |
#11 308.9 2452 |                 libc::DCCP_SOCKOPT_SERVICE,
#11 308.9      |                       ^^^^^^^^^^^^^^^^^^^^ not found in `libc`
#11 308.9 
#11 308.9 error[E0425]: cannot find value `DCCP_SOCKOPT_SERVICE` in crate `libc`
#11 308.9     --> /usr/src/gserver/vendor/socket2/src/sys/unix.rs:2466:66
#11 308.9      |
#11 308.9 2466 |         unsafe { getsockopt(self.as_raw(), libc::SOL_DCCP, libc::DCCP_SOCKOPT_SERVICE) }
#11 308.9      |                                                                  ^^^^^^^^^^^^^^^^^^^^ not found in `libc`

It happens after changing socket2 dependency version to 0.5

@sfackler
Copy link
Owner

You'll need to file this against socket2.

@anatse
Copy link
Author

anatse commented Mar 29, 2023

Thanks, that issue already exists in socket2 rust-lang/socket2#405

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