hyperboria / bugs

Peer-to-peer IPv6 networking, secure and near-zero-conf.
154 stars 17 forks source link

cjdns-21.2 fails to build: error: this `#[deprecated]` annotation has no effect #202

Open yurivict opened 2 years ago

yurivict commented 2 years ago
error: this `#[deprecated]` annotation has no effect
  --> /disk-samsung/freebsd-ports/net/cjdns/work/sodiumoxide-3aa7e8e21b9cd61ad64f4a0ed125d5b1af2cf38d/src/newtype_macros.rs:89:5
   |
89 |       #[deprecated(since="0.2.2", note="Use the `AsRef` or `AsMut` implementation instead")]
   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the unnecessary deprecation attribute
   | 
  ::: /disk-samsung/freebsd-ports/net/cjdns/work/sodiumoxide-3aa7e8e21b9cd61ad64f4a0ed125d5b1af2cf38d/src/randombytes.rs:49:1
   |
49 | / new_type! {
50 | |     /// `Seed` bytes for the deterministic random functions
51 | |     secret Seed(SEEDBYTES);
52 | | }
   | |_- in this macro invocation
   |
   = note: `#[deny(useless_deprecated)]` on by default
   = note: this error originates in the macro `newtype_traits` (in Nightly builds, run with -Z macro-backtrace for more info)

error: this `#[deprecated]` annotation has no effect
   --> /disk-samsung/freebsd-ports/net/cjdns/work/sodiumoxide-3aa7e8e21b9cd61ad64f4a0ed125d5b1af2cf38d/src/newtype_macros.rs:102:5
    |
102 |       #[deprecated(since="0.2.2", note="Use the `AsRef` or `AsMut` implementation instead")]
    |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the unnecessary deprecation attribute
    | 
   ::: /disk-samsung/freebsd-ports/net/cjdns/work/sodiumoxide-3aa7e8e21b9cd61ad64f4a0ed125d5b1af2cf38d/src/randombytes.rs:49:1
    |
49  | / new_type! {
50  | |     /// `Seed` bytes for the deterministic random functions
51  | |     secret Seed(SEEDBYTES);
52  | | }
    | |_- in this macro invocation
    |
    = note: this error originates in the macro `newtype_traits` (in Nightly builds, run with -Z macro-backtrace for more info)

error: this `#[deprecated]` annotation has no effect
   --> /disk-samsung/freebsd-ports/net/cjdns/work/sodiumoxide-3aa7e8e21b9cd61ad64f4a0ed125d5b1af2cf38d/src/newtype_macros.rs:115:5
    |
115 |       #[deprecated(since="0.2.2", note="Use the `AsRef` or `AsMut` implementation instead")]
    |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the unnecessary deprecation attribute
    | 
   ::: /disk-samsung/freebsd-ports/net/cjdns/work/sodiumoxide-3aa7e8e21b9cd61ad64f4a0ed125d5b1af2cf38d/src/randombytes.rs:49:1
    |
49  | / new_type! {
50  | |     /// `Seed` bytes for the deterministic random functions
51  | |     secret Seed(SEEDBYTES);
52  | | }
    | |_- in this macro invocation
    |
    = note: this error originates in the macro `newtype_traits` (in Nightly builds, run with -Z macro-backtrace for more info)

rust-1.55.0 clang-11 FreeBSD 13

kpcyrd commented 2 years ago

This is a build failure in sodiumoxide, can you check if the latest commit from that crate builds on freebsd in general?

yurivict commented 2 years ago

The current sodiumoxide revision builds fine on FreeBSD but tests fail with SIGILL.