Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 02 Apr 2023 18:39:49 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 270606] lang/rust: Build of one port fails with error[E0432]: unresolved imports `libc::ENODATA`, `libc::ENOSR`, `libc::ENOSTR`, `libc::ETIME`
Message-ID:  <bug-270606-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D270606

            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=3D241272&action=
=3Dedit
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, EOWNERDEA=
D,
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

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-270606-7788>