thehydroimpulse / nanomsg.rs

Nanomsg library for Rust
Other
391 stars 56 forks source link

Beta/Nightly compilation fails: unresolved name `nanomsg_sys::ENOTSUP` #168

Closed klardotsh closed 7 years ago

klardotsh commented 7 years ago
$ uname -a
Linux silverboots 4.9.0-mainline #1 SMP PREEMPT Mon Dec 12 02:59:40 CET 2016 x86_64 GNU/Linux

$ rustc --version
rustc 1.15.0-beta.1 (d9a0f0df7 2016-12-19)
   Compiling nanomsg v0.6.0
error[E0425]: unresolved name `nanomsg_sys::ENOTSUP`
  --> /home/j/.cargo/registry/src/github.com-1ecc6299db9ec823/nanomsg-0.6.0/src/result.rs:19:34
   |
19 |     OperationNotSupported      = nanomsg_sys::ENOTSUP          as isize,
   |                                  ^^^^^^^^^^^^^^^^^^^^ unresolved name

error[E0531]: unresolved unit struct/variant or constant `nanomsg_sys::ENOTSUP`
  --> /home/j/.cargo/registry/src/github.com-1ecc6299db9ec823/nanomsg-0.6.0/src/result.rs:61:13
   |
61 |             nanomsg_sys::ENOTSUP         => Error::OperationNotSupported    ,
   |             ^^^^^^^^^^^^^^^^^^^^

error[E0080]: constant evaluation error
  --> /home/j/.cargo/registry/src/github.com-1ecc6299db9ec823/nanomsg-0.6.0/src/result.rs:19:34
   |
19 |     OperationNotSupported      = nanomsg_sys::ENOTSUP          as isize,
   |                                  ^^^^^^^^^^^^^^^^^^^^ unresolved path in constant expression

error: aborting due to previous error

May be related to #163

blabaere commented 7 years ago

It is the same problem as #163, which was fixed after version 0.6 was released. I can reproduce the problem by trying to build the version commit and the master with nightly rust. Only the head is building so I'll make a release for that and it will include a fix for pub/sub option too.

blabaere commented 7 years ago

Version 0.6.1 is now on crates.io and contains the fix for this problem.

klardotsh commented 7 years ago

Works great, thanks!