sunshine-protocol / sunshine

Governance + Bounty Platform
Other
43 stars 16 forks source link

net2 dependency compilation error for runtime #86

Closed 4meta5 closed 4 years ago

4meta5 commented 4 years ago

This is an error related to local compilation. This is my rustup version

➜  runtime git:(update-client) ✗ rustup update
info: syncing channel updates for 'stable-x86_64-apple-darwin'
info: syncing channel updates for 'nightly-x86_64-apple-darwin'
info: checking for self-updates

   stable-x86_64-apple-darwin unchanged - rustc 1.44.0 (49cae5576 2020-06-01)
  nightly-x86_64-apple-darwin unchanged - rustc 1.46.0-nightly (feb3536eb 2020-06-09)

and here is the beginning of the 317 error messages, full error log here https://gist.github.com/4meta5/395cc998c05c60ffb1cbf5066208db3c

   Compiling net2 v0.2.34
error[E0432]: unresolved import `sys`
  --> /Users/4meta5/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.34/src/tcp.rs:18:5
   |
18 | use sys::c;
   |     ^^^ maybe a missing crate `sys`?

error[E0432]: unresolved import `sys`
  --> /Users/4meta5/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.34/src/udp.rs:18:5
   |
18 | use sys::c;
   |     ^^^ maybe a missing crate `sys`?

error[E0432]: unresolved import `sys`
  --> /Users/4meta5/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.34/src/socket.rs:20:5
   |
20 | use sys;
   |     ^^^ no `sys` in the root

error[E0432]: unresolved import `sys`
  --> /Users/4meta5/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.34/src/socket.rs:21:5
   |
21 | use sys::c;
   |     ^^^ maybe a missing crate `sys`?

error[E0432]: unresolved import `sys`
  --> /Users/4meta5/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.34/src/ext.rs:19:5
   |
19 | use sys;
   |     ^^^ no `sys` in the root

error[E0432]: unresolved import `sys`
  --> /Users/4meta5/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.34/src/ext.rs:20:5
   |
20 | use sys::c;
   |     ^^^ maybe a missing crate `sys`?

   Compiling fixed-hash v0.6.1
   Compiling thread_local v1.0.1
   Compiling bitvec v0.17.4
   Compiling futures-task v0.3.5
   Compiling block-padding v0.1.5
error[E0412]: cannot find type `c_int` in this scope
  --> /Users/4meta5/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.34/src/socket.rs:28:24
   |
28 |     pub fn new(family: c_int, ty: c_int) -> io::Result<Socket> {
   |                        ^^^^^ not found in this scope
   |
help: consider importing this type alias
   |
11 | use std::os::raw::c_int;
   |

error[E0412]: cannot find type `c_int` in this scope
  --> /Users/4meta5/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.34/src/socket.rs:28:35
   |
28 |     pub fn new(family: c_int, ty: c_int) -> io::Result<Socket> {
   |                                   ^^^^^ not found in this scope
   |
help: consider importing this type alias
4meta5 commented 4 years ago

It's probably time to update to rc3. That's the approach I'll take to addressing this error in the open PR #82

4meta5 commented 4 years ago

OMG, so this was a bunch of things but you can get this error IF