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

Unable to build quinn-udp (0.5.7) for NetBSD: error[E0428]: the name "recv" is defined multiple times #2033

Closed
delta4chat opened this issue Nov 10, 2024 · 1 comment · Fixed by #2036

Comments

@delta4chat
Copy link
Contributor

delta4chat commented Nov 10, 2024

cross build --release --target x86_64-unknown-netbsd --verbose

 Running rustc --crate-name quinn_udp --edition=2021 /cargo/registry/src/index.crates.io-6f17d22bba15001f/quinn-udp-0.5.7/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C linker-plugin-lto -C codegen-units=1 -C debuginfo=1 -C overflow-checks=on --cfg 'feature="tracing"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("default", "direct-log", "fast-apple-datapath", "log", "tracing"))' -C metadata=86fb592375808880 -C extra-filename=-86fb592375808880 --out-dir /target/x86_64-unknown-netbsd/release/deps --target x86_64-unknown-netbsd -C linker=x86_64-unknown-netbsd-gcc -C strip=symbols -L dependency=/target/x86_64-unknown-netbsd/release/deps -L dependency=/target/release/deps --extern libc=/target/x86_64-unknown-netbsd/release/deps/liblibc-d6cb0163d3c02179.rmeta --extern socket2=/target/x86_64-unknown-netbsd/release/deps/libsocket2-aeb096d475e61c25.rmeta --extern tracing=/target/x86_64-unknown-netbsd/release/deps/libtracing-17769d178db515d4.rmeta --cap-lints allow --cfg bsd --check-cfg 'cfg(apple)' --check-cfg 'cfg(bsd)' --check-cfg 'cfg(apple_fast)' --check-cfg 'cfg(apple_slow)'

error[E0428]: the name "recv" is defined multiple times
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/quinn-udp-0.5.7/src/unix.rs:521:1
    |
449 | fn recv(io: SockRef<'_>, bufs: &mut [IoSliceMut<'_>], meta: &mut [RecvMeta]) -> io::Result<usize> {
    | ------------------------------------------------------------------------------------------------- previous definition of the value `recv` here
...
521 | fn recv(io: SockRef<'_>, bufs: &mut [IoSliceMut<'_>], meta: &mut [RecvMeta]) -> io::Result<usize> {
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ "recv" redefined here
    |
    = note: "recv" must be defined only once in the value namespace of this module
@djc
Copy link
Member

djc commented Nov 11, 2024

Thanks, and sorry for the regression (probably from #1993). Would you be able to submit a PR? Ideally we'd add a CI job to make sure we don't regress this.

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