[GH-ISSUE #107] Build error under CentOS and Ubuntu #351

Closed
opened 2026-03-15 22:06:01 +03:00 by kerem · 5 comments
Owner

Originally created by @mersinvald on GitHub (Mar 22, 2017).
Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/107

I ran into problem building TRust-DNS under CentOS, also TravisCI with Ubuntu build fails with the same error:

error: no method named `set_verify_cert_store` found for type `&mut openssl::ssl::SslContextBuilder` in the current scope
—> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/trust-dns-0.10.0/src/tls/tls_stream.rs:72:38
|
72 | try!(openssl_ctx_builder.set_verify_cert_store(store.build()).map_err(|e| {
| ^^^^^^^^^^^^^^^^^^^^^
Originally created by @mersinvald on GitHub (Mar 22, 2017). Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/107 I ran into problem building TRust-DNS under CentOS, also TravisCI with Ubuntu build fails with the same error: ``` error: no method named `set_verify_cert_store` found for type `&mut openssl::ssl::SslContextBuilder` in the current scope —> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/trust-dns-0.10.0/src/tls/tls_stream.rs:72:38 | 72 | try!(openssl_ctx_builder.set_verify_cert_store(store.build()).map_err(|e| { | ^^^^^^^^^^^^^^^^^^^^^ ```
kerem 2026-03-15 22:06:01 +03:00
  • closed this issue
  • added the
    bug
    tools
    labels
Author
Owner

@bluejekyll commented on GitHub (Mar 22, 2017):

Probably the OpenSSL version. The installation docs should be updated as a min version of 1.0.2 is now required.

<!-- gh-comment-id:288491448 --> @bluejekyll commented on GitHub (Mar 22, 2017): Probably the OpenSSL version. The installation docs should be updated as a min version of 1.0.2 is now required.
Author
Owner

@bluejekyll commented on GitHub (Mar 22, 2017):

Can you validate your openssl version? for travis-ci I run this script to updated openssl: https://github.com/bluejekyll/trust-dns/blob/master/scripts/install_openssl_deb.sh

<!-- gh-comment-id:288491794 --> @bluejekyll commented on GitHub (Mar 22, 2017): Can you validate your openssl version? for travis-ci I run this script to updated openssl: https://github.com/bluejekyll/trust-dns/blob/master/scripts/install_openssl_deb.sh
Author
Owner

@mersinvald commented on GitHub (Mar 22, 2017):

Yes, it is 1.0.1e.

<!-- gh-comment-id:288492241 --> @mersinvald commented on GitHub (Mar 22, 2017): Yes, it is 1.0.1e.
Author
Owner

@bluejekyll commented on GitHub (Mar 22, 2017):

Are you trying out the Server or just the Client? The Client has a lot of options for disabling features, suchas openssl and tls... in this case TLS needs to be disabled, and then I think you could use 1.0.1.

You can do that by for example disabling everything and then enabling the openssl feature:

$ cargo build --no-default-features --features=openssl

For the Server I haven't implemented any optional features...

<!-- gh-comment-id:288495767 --> @bluejekyll commented on GitHub (Mar 22, 2017): Are you trying out the Server or just the Client? The Client has a lot of options for disabling features, suchas openssl and tls... in this case TLS needs to be disabled, and then I think you could use 1.0.1. You can do that by for example disabling everything and then enabling the openssl feature: ``` $ cargo build --no-default-features --features=openssl ``` For the Server I haven't implemented any optional features...
Author
Owner

@mersinvald commented on GitHub (Mar 22, 2017):

Yes, I use only the client.
It worked, now it builds in Travis, so I suppose everything will be OK on my target system :)
Thank you!

<!-- gh-comment-id:288516099 --> @mersinvald commented on GitHub (Mar 22, 2017): Yes, I use only the client. It worked, now it builds in Travis, so I suppose everything will be OK on my target system :) Thank you!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hickory-dns#351
No description provided.