Closed nullARC77 closed 3 years ago
Looks like releasing rpki-rs 0.11.1 was a mistake and it should have been 0.12.0. I shall fix this today.
Meanwhile, you can make this work by using the --locked
options when installing Routinator, i.e.:
cargo install --locked routinator
This will force cargo to use rpki-rs 0.11.0 and should work.
Thank you issue is resolved.
Trying to compile routinator following: https://github.com/racompton/routinator_centos7_install
Step 13: cargo install routinator
System: CentOS Linux release 7.9.2009 (Core)
Following packages are installed: sudo yum install -y vim wget curl net-tools lsof bash-completion yum-utils htop nginx httpd-tools tcpdump rust cargo rsync policycoreutils-python [sudo] password for user: Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile
ring
at 5.1 MB) Compiling autocfg v1.0.1 Compiling libc v0.2.98 Compiling cfg-if v1.0.0 Compiling proc-macro2 v1.0.27 Compiling unicode-xid v0.2.2 Compiling syn v1.0.73 Compiling log v0.4.14 Compiling once_cell v1.8.0 Compiling memchr v2.4.0 Compiling pin-project-lite v0.2.7 Compiling futures-core v0.3.15 Compiling bytes v1.0.1 Compiling proc-macro-hack v0.5.19 Compiling cc v1.0.69 Compiling futures-task v0.3.15 Compiling futures-sink v0.3.15 Compiling futures-channel v0.3.15 Compiling proc-macro-nested v0.1.7 Compiling lazy_static v1.4.0 Compiling spin v0.5.2 Compiling serde_derive v1.0.126 Compiling futures-io v0.3.15 Compiling pin-utils v0.1.0 Compiling slab v0.4.3 Compiling untrusted v0.7.1 Compiling itoa v0.4.7 Compiling serde v1.0.126 Compiling crc32fast v1.2.1 Compiling matches v0.1.8 Compiling ucd-trie v0.1.3 Compiling fnv v1.0.7 Compiling ryu v1.0.5 Compiling hashbrown v0.11.2 Compiling base64 v0.13.0 Compiling tinyvec_macros v0.1.0 Compiling smallvec v1.6.1 Compiling httparse v1.4.1 Compiling crossbeam-utils v0.8.5 Compiling percent-encoding v2.1.0 Compiling scopeguard v1.1.0 Compiling try-lock v0.2.3 Compiling adler v1.0.2 Compiling bitflags v1.2.1 Compiling version_check v0.9.3 Compiling crossbeam-epoch v0.9.5 Compiling encoding_rs v0.8.28 Compiling httpdate v1.0.1 Compiling ppv-lite86 v0.2.10 Compiling tower-service v0.3.1 Compiling byteorder v1.4.3 Compiling unicode-width v0.1.8 Compiling crossbeam-queue v0.3.2 Compiling serde_json v1.0.64 Compiling either v1.6.1 Compiling remove_dir_all v0.5.3 Compiling arc-swap v1.3.0 Compiling ipnet v2.3.1 Compiling mime v0.3.16 Compiling uuid v0.8.2 Compiling strsim v0.8.0 Compiling vec_map v0.8.2 Compiling ansi_term v0.11.0 Compiling instant v0.1.10 Compiling tokio v1.8.1 Compiling futures-macro v0.3.15 Compiling futures-util v0.3.15 Compiling indexmap v1.7.0 Compiling num-traits v0.2.14 Compiling miniz_oxide v0.4.4 Compiling memoffset v0.6.4 Compiling num-integer v0.1.44 Compiling ring v0.16.20 Compiling tracing-core v0.1.18 Compiling unicode-bidi v0.3.5 Compiling http v0.2.4 Compiling pest v2.1.3 Compiling tinyvec v1.2.0 Compiling bcder v0.6.0 Compiling form_urlencoded v1.0.1 Compiling lock_api v0.4.4 Compiling error-chain v0.12.4 Compiling fxhash v0.2.1 Compiling textwrap v0.11.0 Compiling tracing v0.1.26 Compiling http-body v0.4.2 Compiling semver-parser v0.10.2 Compiling unicode-normalization v0.1.19 Compiling want v0.3.0 Compiling fern v0.6.0 Compiling log-reroute v0.1.7 Compiling mio v0.7.13 Compiling num_cpus v1.13.0 Compiling signal-hook-registry v1.4.0 Compiling getrandom v0.2.3 Compiling socket2 v0.4.0 Compiling time v0.1.43 Compiling parking_lot_core v0.8.3 Compiling dirs-sys v0.3.6 Compiling fs2 v0.4.3 Compiling atty v0.2.14 Compiling quote v1.0.9 Compiling quick-xml v0.22.0 Compiling semver v0.11.0 Compiling idna v0.2.3 Compiling nix v0.20.0 Compiling flate2 v1.0.20 Compiling rand_core v0.6.3 Compiling parking_lot v0.11.1 Compiling dirs v3.0.2 Compiling clap v2.33.3 Compiling rustc_version v0.3.3 Compiling url v2.2.2 Compiling webpki v0.21.4 Compiling sct v0.6.1 Compiling syslog v5.0.0 Compiling rand_chacha v0.3.1 Compiling sled v0.34.6 Compiling tokio-macros v1.3.0 Compiling thiserror-impl v1.0.26 Compiling routinator v0.9.0 Compiling webpki-roots v0.21.1 Compiling rustls v0.19.1 Compiling rand v0.8.4 Compiling thiserror v1.0.26 Compiling tempfile v3.2.0 Compiling tokio-util v0.6.7 Compiling tokio-rustls v0.22.0 Compiling async-compression v0.3.8 Compiling tokio-stream v0.1.7 Compiling futures-executor v0.3.15 Compiling chrono v0.4.19 Compiling serde_urlencoded v0.7.0 Compiling toml v0.5.8 Compiling tokio-socks v0.5.1 Compiling h2 v0.3.3 Compiling futures v0.3.15 Compiling rpki v0.11.1 Compiling hyper v0.14.10 Compiling hyper-rustls v0.22.1 Compiling reqwest v0.11.4 error[E0616]: fieldserial
of structNotificationFile
is private --> /home/routinator/.cargo/registry/src/github.com-1ecc6299db9ec823/routinator-0.9.0/src/collector/rrdp.rs:711:51help: a method
serial
also exists, call it with parentheses | 711 | self.metrics.serial = Some(notify.content.serial()); | ^^session_id
of structNotificationFile
is private --> /home/routinator/.cargo/registry/src/github.com-1ecc6299db9ec823/routinator-0.9.0/src/collector/rrdp.rs:712:52help: a method
session_id
also exists, call it with parentheses | 712 | self.metrics.session = Some(notify.content.session_id()); | ^^snapshot
of structNotificationFile
is private --> /home/routinator/.cargo/registry/src/github.com-1ecc6299db9ec823/routinator-0.9.0/src/collector/rrdp.rs:755:54help: a method
snapshot
also exists, call it with parentheses | 755 | self.rpki_notify, notify.content.snapshot().uri(), err | ^^snapshot
of structNotificationFile
is private --> /home/routinator/.cargo/registry/src/github.com-1ecc6299db9ec823/routinator-0.9.0/src/collector/rrdp.rs:773:28help: a method
snapshot
also exists, call it with parentheses | 773 | notify.content.snapshot().uri(), false | ^^snapshot
of structNotificationFile
is private --> /home/routinator/.cargo/registry/src/github.com-1ecc6299db9ec823/routinator-0.9.0/src/collector/rrdp.rs:792:28help: a method
snapshot
also exists, call it with parentheses | 792 | notify.content.snapshot().hash().as_ref() | ^^session_id
of structNotificationFile
is private --> /home/routinator/.cargo/registry/src/github.com-1ecc6299db9ec823/routinator-0.9.0/src/collector/rrdp.rs:890:19help: a method
session_id
also exists, call it with parentheses | 890 | if notify.session_id() != state.session { | ^^serial
of structNotificationFile
is private --> /home/routinator/.cargo/registry/src/github.com-1ecc6299db9ec823/routinator-0.9.0/src/collector/rrdp.rs:894:64help: a method
serial
also exists, call it with parentheses | 894 | debug!("Serials: us {}, them {}", state.serial, notify.serial()); | ^^serial
of structNotificationFile
is private --> /home/routinator/.cargo/registry/src/github.com-1ecc6299db9ec823/routinator-0.9.0/src/collector/rrdp.rs:895:19help: a method
serial
also exists, call it with parentheses | 895 | if notify.serial() == state.serial { | ^^deltas
of structNotificationFile
is private --> /home/routinator/.cargo/registry/src/github.com-1ecc6299db9ec823/routinator-0.9.0/src/collector/rrdp.rs:903:19help: a method
deltas
also exists, call it with parentheses | 903 | if notify.deltas().last().map(|delta| delta.0) != Some(notify.serial) { | ^^0
on type&DeltaInfo
--> /home/routinator/.cargo/registry/src/github.com-1ecc6299db9ec823/routinator-0.9.0/src/collector/rrdp.rs:903:51help: one of the expressions' fields has a field of the same name | 903 | if notify.deltas.last().map(|delta| delta.uri_and_hash.hash.0) != Some(notify.serial) { | ^^^^^^^^^^^^^^^^^^
serial
of structNotificationFile
is private --> /home/routinator/.cargo/registry/src/github.com-1ecc6299db9ec823/routinator-0.9.0/src/collector/rrdp.rs:903:69help: a method
serial
also exists, call it with parentheses | 903 | if notify.deltas.last().map(|delta| delta.0) != Some(notify.serial()) { | ^^deltas
of structNotificationFile
is private --> /home/routinator/.cargo/registry/src/github.com-1ecc6299db9ec823/routinator-0.9.0/src/collector/rrdp.rs:908:33help: a method
deltas
also exists, call it with parentheses | 908 | let mut deltas = notify.deltas().as_slice(); | ^^0
on type&DeltaInfo
--> /home/routinator/.cargo/registry/src/github.com-1ecc6299db9ec823/routinator-0.9.0/src/collector/rrdp.rs:921:25help: one of the expressions' fields has a field of the same name | 921 | match first.uri_and_hash.hash.0.cmp(&serial) { | ^^^^^^^^^^^^^^^^^^
0
on type&DeltaInfo
--> /home/routinator/.cargo/registry/src/github.com-1ecc6299db9ec823/routinator-0.9.0/src/collector/rrdp.rs:923:65help: one of the expressions' fields has a field of the same name | 923 | debug!("First delta is too new ({})", first.uri_and_hash.hash.0); | ^^^^^^^^^^^^^^^^^^
DeltaInfo
session_id
of structNotificationFile
is private --> /home/routinator/.cargo/registry/src/github.com-1ecc6299db9ec823/routinator-0.9.0/src/collector/rrdp.rs:986:28help: a method
session_id
also exists, call it with parentheses | 986 | notify.content.session_id(), serial, tree, self.max_object_size, | ^^deltas
of structNotificationFile
is private --> /home/routinator/.cargo/registry/src/github.com-1ecc6299db9ec823/routinator-0.9.0/src/collector/rrdp.rs:1437:17help: a method
deltas
also exists, call it with parentheses | 1437 | content.deltas().sort_by_key(|delta| delta.0); | ^^0
on type&DeltaInfo
--> /home/routinator/.cargo/registry/src/github.com-1ecc6299db9ec823/routinator-0.9.0/src/collector/rrdp.rs:1437:50help: one of the expressions' fields has a field of the same name | 1437 | content.deltas.sort_by_key(|delta| delta.uri_and_hash.hash.0); | ^^^^^^^^^^^^^^^^^^
session_id
of structNotificationFile
is private --> /home/routinator/.cargo/registry/src/github.com-1ecc6299db9ec823/routinator-0.9.0/src/collector/rrdp.rs:1479:38help: a method
session_id
also exists, call it with parentheses | 1479 | if session_id != self.notify.session_id() { | ^^session_id
of structNotificationFile
is private --> /home/routinator/.cargo/registry/src/github.com-1ecc6299db9ec823/routinator-0.9.0/src/collector/rrdp.rs:1481:39help: a method
session_id
also exists, call it with parentheses | 1481 | expected: self.notify.session_id(), | ^^serial
of structNotificationFile
is private --> /home/routinator/.cargo/registry/src/github.com-1ecc6299db9ec823/routinator-0.9.0/src/collector/rrdp.rs:1485:34help: a method
serial
also exists, call it with parentheses | 1485 | if serial != self.notify.serial() { | ^^serial
of structNotificationFile
is private --> /home/routinator/.cargo/registry/src/github.com-1ecc6299db9ec823/routinator-0.9.0/src/collector/rrdp.rs:1487:39help: a method
serial
also exists, call it with parentheses | 1487 | expected: self.notify.serial(), | ^^session_id
of structNotificationFile
is private --> /home/routinator/.cargo/registry/src/github.com-1ecc6299db9ec823/routinator-0.9.0/src/collector/rrdp.rs:1675:37help: a method
session_id
also exists, call it with parentheses | 1675 | session: notify.content.session_id(), | ^^serial
of structNotificationFile
is private --> /home/routinator/.cargo/registry/src/github.com-1ecc6299db9ec823/routinator-0.9.0/src/collector/rrdp.rs:1676:36help: a method
serial
also exists, call it with parentheses | 1676 | serial: notify.content.serial(), | ^^error: aborting due to 24 previous errors
Some errors have detailed explanations: E0308, E0609, E0616. For more information about an error, try
rustc --explain E0308
. error: could not compileroutinator
To learn more, run the command again with --verbose. warning: build failed, waiting for other jobs to finish... error: failed to compile
routinator v0.9.0
, intermediate artifacts can be found at/tmp/cargo-installdi3omQ
Caused by: build failed