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

error: cannot construct msghdr with struct literal syntax due to private fields #3971

Open
evgenyigumnov opened this issue Dec 6, 2024 · 1 comment

Comments

@evgenyigumnov
Copy link

Step 3/13 : RUN cargo --version
 ---> Running in 7543266d511d
cargo 1.82.0 (8f40fc59f 2024-08-2

Docker image: rust:alpine

   Compiling solana-streamer v2.1.4
error: cannot construct `msghdr` with struct literal syntax due to private fields
   --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/solana-streamer-2.1.4/src/recvmmsg.rs:112:22
    |
112 |             msg_hdr: msghdr {
    |                      ^^^^^^
    |
    = note: ...and other private fields `__pad1` and `__pad2` that were not provided

error: cannot construct `msghdr` with struct literal syntax due to private fields
   --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/solana-streamer-2.1.4/src/sendmmsg.rs:100:18
    |
100 |         msg_hdr: msghdr {
    |                  ^^^^^^
    |
    = note: ...and other private fields `__pad1` and `__pad2` that were not provided

error: could not compile `solana-streamer` (lib) due to 2 previous errors
warning: build failed, waiting for other jobs to finish...

@steviez
Copy link

steviez commented Dec 6, 2024

Is this docker image using musl? We just had a PR go in that that touches this code conditionally: #3836

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants