stratacast

stratacast

Ubuntu 20.04 compile ssl_verify_fun fails

I have some code that I have been building on Ubuntu 18.04, but decided to switch to Ubuntu 20.04. I encountered an issue though. First, this is Elixir 1.10.3 that comes in Ubuntu’s repository

$ elixir --version
Erlang/OTP 23 [erts-11.0.2] [source] [64-bit] [smp:32:32] [ds:32:32:10] [async-threads:1]

Elixir 1.10.3 (compiled with Erlang/OTP 22)

I’ve had no issues compiling on Ubuntu 18.04, but this is the error I get on 20.02:

$ mix deps.compile ssl_verify_fun
==> ssl_verify_fun
Compiling 7 files (.erl)
src/ssl_verify_hostname.erl:16: can't find include lib "public_key/include/public_key.hrl"
src/ssl_verify_hostname.erl:28: record 'OTPCertificate' undefined
src/ssl_verify_hostname.erl:30: record 'Extension' undefined
src/ssl_verify_hostname.erl:46: record 'OTPCertificate' undefined
src/ssl_verify_hostname.erl:76: record 'OTPCertificate' undefined
src/ssl_verify_pk.erl:14: can't find include lib "public_key/include/public_key.hrl"
src/ssl_verify_pk.erl:26: record 'OTPCertificate' undefined
src/ssl_verify_pk.erl:28: record 'Extension' undefined
src/ssl_verify_pk.erl:51: record 'OTPCertificate' undefined
src/ssl_verify_fun_cert_helpers.erl:13: can't find include lib "public_key/include/public_key.hrl"
src/ssl_verify_fun_cert_helpers.erl:23: undefined macro 'id-ce-subjectAltName'
src/ssl_verify_fun_cert_helpers.erl:9: function extract_dns_names/1 undefined
src/ssl_verify_fun_cert_helpers.erl:19: spec for undefined function extract_dns_names/1
src/ssl_verify_fun_cert_helpers.erl:19: record 'OTPCertificate' undefined
src/ssl_verify_fun_cert_helpers.erl:32: record 'OTPCertificate' undefined
src/ssl_verify_fun_cert_helpers.erl:34: record 'OTPCertificate' undefined
src/ssl_verify_fun_cert_helpers.erl:35: record 'OTPTBSCertificate' undefined
src/ssl_verify_fun_cert_helpers.erl:38: record 'OTPCertificate' undefined
src/ssl_verify_fun_cert_helpers.erl:38: record 'SubjectPublicKeyInfo' undefined
src/ssl_verify_fun_cert_helpers.erl:40: record 'OTPCertificate' undefined
src/ssl_verify_fun_cert_helpers.erl:41: record 'OTPTBSCertificate' undefined
src/ssl_verify_fun_cert_helpers.erl:42: record 'OTPSubjectPublicKeyInfo' undefined
src/ssl_verify_fun_cert_helpers.erl:48: record 'Extension' undefined
src/ssl_verify_fun_cert_helpers.erl:48: record 'Extension' undefined
src/ssl_verify_fun_cert_helpers.erl:55: record 'Extension' undefined
src/ssl_verify_fun_cert_helpers.erl:55: record 'Extension' undefined
src/ssl_verify_fun_cert_helpers.erl:57: variable 'ExtId' is unbound
src/ssl_verify_fun_cert_helpers.erl:57: record 'Extension' undefined
src/ssl_verify_fun_cert_helpers.erl:75: record 'AttributeTypeAndValue' undefined
src/ssl_verify_fun_cert_helpers.erl:77: variable 'CN' is unbound
src/ssl_verify_fun_cert_helpers.erl:49: Warning: function extensions_list/1 is unused
src/ssl_verify_fun_cert_helpers.erl:56: Warning: function select_extension/2 is unused
src/ssl_verify_fun_cert_helpers.erl:64: Warning: function extract_dns_names_from_alt_names/2 is unused
src/ssl_verify_fingerprint.erl:15: can't find include lib "public_key/include/public_key.hrl"
src/ssl_verify_fingerprint.erl:27: record 'OTPCertificate' undefined
src/ssl_verify_fingerprint.erl:29: record 'Extension' undefined
src/ssl_verify_fingerprint.erl:52: record 'OTPCertificate' undefined
could not compile dependency :ssl_verify_fun, "mix compile" failed. You can recompile this dependency with "mix deps.compile ssl_verify_fun", update it with "mix deps.update ssl_verify_fun" or clean it with "mix deps.clean ssl_verify_fun"

I saw somewhere else somebody mentioned I may not have make, but it is indeed installed. Is there some dependency I’m missing on my OS perhaps?

Marked As Solved

Where Next?

Popular in Questions Top

WestKeys
Currently suffering from paralysis by [HTTP client] analysis. This is rather unusual in Elixirland as there tends to be consensus on the ...
New
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
ovidiubadita
Hey all, I discovered Elixir and I love it. I always wanted to learn a functional programming and I intended to go for Haskell, but afte...
New
nobody
How to bind a phoenix app to a specific ip address? could not find anything about that, nowhere, unfortunately, but for me this is quite...
New
jay1
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
New
Emily
I have VueJS GUIs with the project generated using Webpack. I have Elixir modules that will need to be used by the VueJS GUIs. I forese...
New
lucidguppy
I have a super simple question about elixir - how would I take a file like this foo bar baz and output a new file that enumerates th...
New
itssasanka
Hi all, Trying to get some more clarity over utc_datetime and naive_datetime for Ecto: The documentation above suggests that while ...
New
sergio_101
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
New
hariharasudhan94
I would like to know what is the best IDE for elixir development?
New

Other popular topics Top

New
johnnyicon
Hi all, I’ve just started learning Elixir and Phoenix Framework, so please pardon my n00bness at this stage. I’m trying to use Postgres...
New
chrismccord
Phoenix 1.4.0 released Phoenix 1.4 is out! This release ships with exciting new features, most notably with HTTP2 support, improved deve...
688 30877 112
New
jerry
Good day to you all. I have been struggling to get a query involving like and ilike to work. Can anyone assist me on this, please? pro...
New
jaysoifer
Is there a way to rollback a specific migration and only that one (“skipping” all the other ones)? Would mix ecto.rollback -v 200809061...
New
alice
Hey, Just curious what are the main benefits of Elixir compared to Clojure? When is Elixir more useful than Clojure and vice versa? Th...
New
vonH
When I run the Plug and I recompile I wind up having to use Ctrl C to quit iex and start again. Witht the help of rlwrap I can use the cu...
New
gausby
I asked this very same question on twitter and got some interesting feedback, but I thought it would be a good question to ask here as we...
1207 39297 209
New
nsuchy
Hi. I’ve noticed that Windows Powershell has it’s own IEX command and you cannot access Elixir’s IEX due to the conflict. This isn’t a cr...
New
AstonJ
Seen any cool LiveView demos, sample apps or examples? Please post them here! :003:
New

Latest on Elixir Forum

Elixir Forum

We're in Beta

About us Mission Statement