mumble-web-proxy icon indicating copy to clipboard operation
mumble-web-proxy copied to clipboard

Build fails

Open Pachin0 opened this issue 3 years ago • 4 comments

Compiling rtp v0.1.0 (https://github.com/johni0702/rtp?rev=6c0223d#6c0223d8) error[E0282]: type annotations needed --> /home/donpimpin/.cargo/git/checkouts/rtp-23e67d7854ed482f/6c0223d/src/rfc3711.rs:477:19 | 476 | let iv = iv ^ (BigUint::from(1_u8) << (context.session_encr_key.len() * 8)); | -- consider giving iv a type 477 | let iv = &iv.to_bytes_be()[1..context.session_encr_key.len() + 1]; | ^^ cannot infer type | = note: type must be known at this point

error[E0282]: type annotations needed --> /home/donpimpin/.cargo/git/checkouts/rtp-23e67d7854ed482f/6c0223d/src/rfc3711.rs:511:19 | 510 | let iv = iv ^ (BigUint::from(1_u8) << (context.session_encr_key.len() * 8)); | -- consider giving iv a type 511 | let iv = &iv.to_bytes_be()[1..context.session_encr_key.len() + 1]; | ^^ cannot infer type | = note: type must be known at this point

error: aborting due to 2 previous errors

For more information about this error, try rustc --explain E0282. error: could not compile rtp

To learn more, run the command again with --verbose. warning: build failed, waiting for other jobs to finish... error: build failed

Have followed every installation step.

Pachin0 avatar May 03 '21 06:05 Pachin0

I am getting this as well; this is not an issue with this software, it's a rust bug: https://github.com/rust-lang/rust/issues/81317

It appears you need to use cargo no later than 1.48.

The fix is to run this:

rustup default 1.48.0

Then build.

surfrock66 avatar Jun 10 '21 17:06 surfrock66

This appears to be a duplicate of #22

Skgland avatar Jun 15 '21 20:06 Skgland

Skgland's rtp fork has a fix for this. Change this line to cargo.toml: rtp = { git = "https://github.com/Skgland/rtp", rev = "83eb4dd", features = ["rfc5764-openssl"] }

elonen avatar Sep 15 '21 23:09 elonen

Skgland's rtp fork has a fix for this. Change this line to cargo.toml: rtp = { git = "https://github.com/Skgland/rtp", rev = "83eb4dd", features = ["rfc5764-openssl"] } This worked like a charm

TommyTeaVee avatar Mar 13 '22 16:03 TommyTeaVee