Skip to content

0.1.1 release fails to build mio crate on NetBSD #180

@0323pin

Description

@0323pin

Using Rust-1.91.1 on NetBSD-dev branch I get the following mismatched types when building mio v1.1.0

error[E0308]: mismatched types
   --> /usr/pkgsrc/wip/nostui/work/vendor/mio-1.1.0/src/sys/unix/selector/kqueue.rs:64:20
    |
 64 |             udata: $data as UData,
    |                    ^^^^^^^^^^^^^^ expected `*mut c_void`, found `isize`
...
137 |             let kevent = kevent!(fd, libc::EVFILT_WRITE, flags, token.0);
    |                          ----------------------------------------------- in this macro invocation
    |
    = note: expected raw pointer `*mut c_void`
                      found type `isize`
    = note: this error originates in the macro `kevent` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0308]: mismatched types
   --> /usr/pkgsrc/wip/nostui/work/vendor/mio-1.1.0/src/sys/unix/selector/kqueue.rs:64:20
    |
 64 |             udata: $data as UData,
    |                    ^^^^^^^^^^^^^^ expected `*mut c_void`, found `isize`
...
143 |             let kevent = kevent!(fd, libc::EVFILT_READ, flags, token.0);
    |                          ---------------------------------------------- in this macro invocation
    |
    = note: expected raw pointer `*mut c_void`
                      found type `isize`
    = note: this error originates in the macro `kevent` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0308]: mismatched types
   --> /usr/pkgsrc/wip/nostui/work/vendor/mio-1.1.0/src/sys/unix/selector/kqueue.rs:64:20
    |
 64 |             udata: $data as UData,
    |                    ^^^^^^^^^^^^^^ expected `*mut c_void`, found `isize`
...
183 |             kevent!(fd, libc::EVFILT_WRITE, write_flags, token.0),
    |             ----------------------------------------------------- in this macro invocation
    |
    = note: expected raw pointer `*mut c_void`
                      found type `isize`
    = note: this error originates in the macro `kevent` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0308]: mismatched types
   --> /usr/pkgsrc/wip/nostui/work/vendor/mio-1.1.0/src/sys/unix/selector/kqueue.rs:64:20
    |
 64 |             udata: $data as UData,
    |                    ^^^^^^^^^^^^^^ expected `*mut c_void`, found `isize`
...
184 |             kevent!(fd, libc::EVFILT_READ, read_flags, token.0),
    |             --------------------------------------------------- in this macro invocation
    |
    = note: expected raw pointer `*mut c_void`
                      found type `isize`
    = note: this error originates in the macro `kevent` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0308]: mismatched types
   --> /usr/pkgsrc/wip/nostui/work/vendor/mio-1.1.0/src/sys/unix/selector/kqueue.rs:64:20
    |
 64 |             udata: $data as UData,
    |                    ^^^^^^^^^^^^^^ expected `*mut c_void`, found `isize`
...
205 |             kevent!(fd, libc::EVFILT_WRITE, flags, 0),
    |             ----------------------------------------- in this macro invocation
    |
    = note: expected raw pointer `*mut c_void`
                      found type `isize`
    = note: this error originates in the macro `kevent` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0308]: mismatched types
   --> /usr/pkgsrc/wip/nostui/work/vendor/mio-1.1.0/src/sys/unix/selector/kqueue.rs:64:20
    |
 64 |             udata: $data as UData,
    |                    ^^^^^^^^^^^^^^ expected `*mut c_void`, found `isize`
...
206 |             kevent!(fd, libc::EVFILT_READ, flags, 0),
    |             ---------------------------------------- in this macro invocation
    |
    = note: expected raw pointer `*mut c_void`
                      found type `isize`
    = note: this error originates in the macro `kevent` (in Nightly builds, run with -Z macro-backtrace for more info)

For more information about this error, try `rustc --explain E0308`.
error: could not compile `mio` (lib) due to 6 previous errors
warning: build failed, waiting for other jobs to finish...
*** Error code 101

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions