actix / sockjs

SockJS server for rust language

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

error: multiple packages link to native library `ring-asm`, but a native library can be linked only once

candronikos opened this issue · comments

Can't build with latest version of actix-web. Here is the error:

C:\Users\candronikos\Projects\project>cargo build
error: multiple packages link to native library `ring-asm`, but a native library can be linked only once

package `ring v0.13.2`
    ... which is depended on by `cookie v0.11.0`
    ... which is depended on by `actix-web v0.7.3`
    ... which is depended on by `project v0.1.0 (file:///C:/Users/candronikos/Projects/project)`
links to native library `ring-asm`

package `ring v0.12.1`
    ... which is depended on by `cookie v0.10.1`
    ... which is depended on by `actix-web v0.5.8`
    ... which is depended on by `sockjs v0.3.0`
    ... which is depended on by `project v0.1.0 (file:///C:/Users/candronikos/Projects/project)`
also links to native library `ring-asm`

Oh, sockjs currently should use 0.6, not 0.7...

Thanks for the tip, @DoumanAsh. I tried that already and got this issue, described in issue #5. If this the version I must use for my project, then this needs to be fixed first:

error[E0277]: `()` doesn't implement `std::fmt::Display`
  --> C:\Users\candronikos\.cargo\registry\src\github.com-1ecc6299db9ec823\sockjs-0.3.0\src\transports\xhrsend.rs:89:49
   |
89 |                                             Err(error::ErrorNotFound(())),
   |                                                 ^^^^^^^^^^^^^^^^^^^^ `()` cannot be formatted with the default formatter
   |
   = help: the trait `std::fmt::Display` is not implemented for `()`
   = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
   = note: required by `actix_web::error::ErrorNotFound`

error[E0277]: `()` doesn't implement `std::fmt::Display`
   --> C:\Users\candronikos\.cargo\registry\src\github.com-1ecc6299db9ec823\sockjs-0.3.0\src\transports\jsonp.rs:271:49
    |
271 |                                             Err(error::ErrorNotFound(())),
    |                                                 ^^^^^^^^^^^^^^^^^^^^ `()` cannot be formatted with the default formatter
    |
    = help: the trait `std::fmt::Display` is not implemented for `()`
    = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
    = note: required by `actix_web::error::ErrorNotFound`

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0277`.
error: Could not compile `sockjs`.

Uh, yeah sockjs needs update for new actix/actix-web