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

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
baxterw3b
Hi guys, i’m new in the Elixir world, and i have to say, that i love it! i’m having some problem to understand anonymous functions with ...
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
pmjoe
I have a relationship of love and hate with Elixir. Lots of things are just absolutely right, but there are some things that are kind of ...
New
Fl4m3Ph03n1x
About me? ( if you have nothing better to do than reading about some random guy in the internet :stuck_out_tongue: ) Hello all, this is ...
New
Lily
In templates/appointment/index.html.eex: <%= for appointment <- @appointments do %> <tr> <td><%= appoi...
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
hariharasudhan94
I would like to know what is the best IDE for elixir development?
New
openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New
svb
Hi! Currently I want to submit a form by pressing the Enter key. However, since my input field is of type “textarea” this is just adds a...
New

Other popular topics Top

9mm
I am constructing a JSON object (map) and I need to conditionally set a field. I’m trying to write proper elixir-way code… and I’m at a l...
New
senggen
Erlang/OTP 25 [erts-13.2.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] 15:22:35.803 [error] gen_event {lager_file_backend...
New
dokuzbir
I want to highlight html closing tags when i click a html tag. That works in .html files but doesnt work for html.eex templates. How can...
New
AstonJ
Posting this to see if we can make things easier for people to get into Neovim. If you use Neovim and have a favourite distro please let ...
New
skosch
To my knowledge, put_in, Map.update etc. all have the one limitation of not automatically creating intermediate keys when needed (for exa...
New
Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID<0.412.0> terminating ** (Postgrex.Error) FATAL...
New
fireproofsocks
Forgive me if this is obvious, but how does one delete a database record WITHOUT selecting it first? Ecto.Repo — Ecto v3.14.0 has exampl...
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
AstonJ
We’ve put together this wiki for Phoenix LiveView - please feel free to add any info you feel is worth including. What is Phoenix LiveV...
New
JorisKok
I have a server on AWS, and was running a load test using artillery. When looking at the Phoenix dashboard I see the Ports going to 100% ...
New

Latest on Elixir Forum

We're in Beta

About us Mission Statement