Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatible with Rocket atm #56

Closed
terry90 opened this issue Jul 6, 2018 · 6 comments
Closed

Incompatible with Rocket atm #56

terry90 opened this issue Jul 6, 2018 · 6 comments

Comments

@terry90
Copy link

terry90 commented Jul 6, 2018

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

package `ring v0.11.0`
    ... which is depended on by `cookie v0.9.2`
    ... which is depended on by `rocket v0.3.14`
    ... which is depended on by `rocket_contrib v0.3.14`
    ... which is depended on by `xxx v0.1.0 (file:///home/xx/xx)`
links to native library `ring-asm`

package `ring v0.12.1`
    ... which is depended on by `jsonwebtoken v4.0.1`
    ... which is depended on by `xxx v0.1.0 (file:///home/xx/xx)`
also links to native library `ring-asm`

see briansmith/ring#575

I know this is not the responsibility of jsonwebtoken, but this should be left open until resolved since rocket is a well known framework.

v2.0.3 is compatible

Keats pushed a commit that referenced this issue Jul 25, 2018
@Keats
Copy link
Owner

Keats commented Aug 13, 2018

Published v5 which uses ring 0.13, should be fine now

@Keats Keats closed this as completed Aug 13, 2018
@terry90
Copy link
Author

terry90 commented Aug 13, 2018

I still get a compilation error:

package `ring v0.11.0`
    ... which is depended on by `cookie v0.9.2`
    ... which is depended on by `rocket v0.3.15`
    ... which is depended on by `xxx v0.1.0 (file:///home//xxx)`
links to native library `ring-asm`

package `ring v0.13.2`
    ... which is depended on by `jsonwebtoken v5.0.0`
    ... which is depended on by `xxx v0.1.0 (file:///home//xxx)`
also links to native library `ring-asm`

As seen there: briansmith/ring#535 you can't use 2 versions of ring simultaneously.
I think it would be wise to leave it open until resolved. It would certainly help people not lose their time looking for an answer about this.

I see that Sergio opened a PR: briansmith/ring#619

@Keats
Copy link
Owner

Keats commented Aug 13, 2018

You will need to update your cookie crate version to 0.11

@terry90
Copy link
Author

terry90 commented Aug 13, 2018

The cookie crate is from rocket, not from my Cargo.toml

I can't get a rocket project to compile with jsonwebtoken > 2.0.3 yet

@Keats
Copy link
Owner

Keats commented Aug 13, 2018 via email

@terry90
Copy link
Author

terry90 commented Aug 13, 2018

Great :)

JadedBlueEyes referenced this issue in JadedBlueEyes/jsonwebtoken Apr 13, 2023
Fix #52, #56, #57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants