Skip to content

MacOS Build boring/tokio-boring version #17

@pvouzis

Description

@pvouzis

I was building on Mac and I got the following

$>cargo build --release
...
...
...  
   Compiling boring v4.7.0
error[E0425]: cannot find function, tuple struct or tuple variant `PEM_write_bio_DHparams` in crate `ffi`
  --> /Users/panagiotisvouzis/.cargo/registry/src/index.crates.io-6f17d22bba15001f/boring-4.7.0/src/dh.rs:33:14
   |
33 |         ffi::PEM_write_bio_DHparams
   |              ^^^^^^^^^^^^^^^^^^^^^^ not found in `ffi`

error[E0425]: cannot find function, tuple struct or tuple variant `PEM_read_bio_DHparams` in crate `ffi`
  --> /Users/panagiotisvouzis/.cargo/registry/src/index.crates.io-6f17d22bba15001f/boring-4.7.0/src/dh.rs:67:14
   |
67 |         ffi::PEM_read_bio_DHparams
   |              ^^^^^^^^^^^^^^^^^^^^^ not found in `ffi`

error[E0425]: cannot find function, tuple struct or tuple variant `PEM_write_bio_DSA_PUBKEY` in crate `ffi`
  --> /Users/panagiotisvouzis/.cargo/registry/src/index.crates.io-6f17d22bba15001f/boring-4.7.0/src/dsa.rs:92:14
   |
92 |         ffi::PEM_write_bio_DSA_PUBKEY
   |              ^^^^^^^^^^^^^^^^^^^^^^^^ not found in `ffi`

I had to make this change to fix it:

--- a/Cargo.toml
+++ b/Cargo.toml
@@ -26,7 +26,7 @@ nq-tokio-network = { path = "./crates/nq-tokio-network" }
 
 anyhow = "1.0"
 async-trait = { version = "0.1" }
-boring = "4.1"
+boring = "4.10.3"
 clap = "4.3"
 clap-verbosity-flag = "2.1"
 http = "1.0"
@@ -42,5 +42,5 @@ tracing = "0.1"
 tracing-subscriber = "0.3"
 tokio = "1.0"
 tokio-util = "0.7"
-tokio-boring = "4.1"
+tokio-boring = "4.10.3"
 url = "2.4"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions