[Bug 270606] lang/rust: Build of one port fails with error[E0432]: unresolved imports `libc::ENODATA`, `libc::ENOSR`, `libc::ENOSTR`, `libc::ETIME`
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 02 Apr 2023 18:39:49 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=270606 Bug ID: 270606 Summary: lang/rust: Build of one port fails with error[E0432]: unresolved imports `libc::ENODATA`, `libc::ENOSR`, `libc::ENOSTR`, `libc::ETIME` Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: rust@FreeBSD.org Reporter: yuri@freebsd.org Flags: maintainer-feedback?(rust@FreeBSD.org) Assignee: rust@FreeBSD.org Created attachment 241272 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=241272&action=edit testcase It looks like these constants are missing in rust: error[E0432]: unresolved imports `libc::ENODATA`, `libc::ENOSR`, `libc::ENOSTR`, `libc::ETIME` --> /usr/ports/audio/bliss-rs/work/bliss-rs-9ddadb4/cargo-crates/ffmpeg-next-6.0.0/src/util/error.rs:20:22 | 20 | ENFILE, ENOBUFS, ENODATA, ENODEV, ENOENT, ENOEXEC, ENOLCK, ENOLINK, ENOMEM, ENOMSG, | ^^^^^^^ no `ENODATA` in the root 21 | ENOPROTOOPT, ENOSPC, ENOSR, ENOSTR, ENOSYS, ENOTCONN, ENOTDIR, ENOTEMPTY, ENOTRECOVERABLE, | ^^^^^ ^^^^^^ no `ENOSTR` in the root | | | no `ENOSR` in the root 22 | ENOTSOCK, ENOTSUP, ENOTTY, ENXIO, EOPNOTSUPP, EOVERFLOW, EOWNERDEAD, EPERM, EPIPE, EPROTO, 23 | EPROTONOSUPPORT, EPROTOTYPE, ERANGE, EROFS, ESPIPE, ESRCH, ETIME, ETIMEDOUT, ETXTBSY, | ^^^^^ no `ETIME` in the root | help: a similar name exists in the module | 21 | ENOPROTOOPT, ENOSPC, ENOSR, NOSTR, ENOSYS, ENOTCONN, ENOTDIR, ENOTEMPTY, ENOTRECOVERABLE, | ~~~~~ help: a similar name exists in the module | 23 | EPROTONOSUPPORT, EPROTOTYPE, ERANGE, EROFS, ESPIPE, ESRCH, VTIME, ETIMEDOUT, ETXTBSY, | ~~~~~ warning: `ffmpeg-sys-next` (lib) generated 9 warnings For more information about this error, try `rustc --explain E0432`. error: could not compile `ffmpeg-next` due to previous error -- You are receiving this mail because: You are the assignee for the bug.