Opened 3 years ago

Closed 3 years ago

#55570 closed defect (fixed)

erlang @20.2: implicit declaration of function 'RSA_padding_add_SSLv23'

Reported by: conradwt (Conrad Taylor) Owned by: ci42
Priority: Normal Milestone:
Component: ports Version: 2.4.2
Keywords: Cc:
Port: erlang

Description (last modified by ryandesign (Ryan Schmidt))

Hi, I'm attempting to upgrade to Erlang 20.2 and I'm seeing the error within the logs on build:

:info:build make[4]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_erlang/erlang/work/erlang-20.2/lib/crypto/c_src'
:info:build  CC	../priv/obj/x86_64-apple-darwin17.3.0/crypto.o
:info:build crypto.c:4605:7: error: implicit declaration of function 'RSA_padding_add_SSLv23' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
:info:build                 if (RSA_padding_add_SSLv23(tmp_bin.data, tmplen, in_bin.data, in_bin.size) <= 0)
:info:build                     ^
:info:build crypto.c:4605:7: warning: this function declaration is not a prototype [-Wstrict-prototypes]
:info:build crypto.c:4739:10: error: implicit declaration of function 'RSA_padding_check_SSLv23' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
:info:build             i = RSA_padding_check_SSLv23(tmp_bin.data, tmplen, p, out_bin.size - 1, tmplen);
:info:build                 ^
:info:build crypto.c:4739:10: note: did you mean 'RSA_padding_add_SSLv23'?
:info:build crypto.c:4605:7: note: 'RSA_padding_add_SSLv23' declared here
:info:build                 if (RSA_padding_add_SSLv23(tmp_bin.data, tmplen, in_bin.data, in_bin.size) <= 0)
:info:build                     ^
:info:build crypto.c:4739:10: warning: this function declaration is not a prototype [-Wstrict-prototypes]
:info:build             i = RSA_padding_check_SSLv23(tmp_bin.data, tmplen, p, out_bin.size - 1, tmplen);
:info:build                 ^
:info:build 2 warnings and 2 errors generated.

Attachments (1)

main.log (614.9 KB) - added by conradwt (Conrad Taylor) 3 years ago.
erlang 20.2 port build logs

Download all attachments as: .zip

Change History (6)

Changed 3 years ago by conradwt (Conrad Taylor)

Attachment: main.log added

erlang 20.2 port build logs

comment:1 Changed 3 years ago by ryandesign (Ryan Schmidt)

Cc: ci42 removed
Description: modified (diff)
Owner: set to ci42
Status: newassigned
Summary: implicit declaration of function 'RSA_padding_add_SSLv23'erlang @20.2: implicit declaration of function 'RSA_padding_add_SSLv23'

Remember to use WikiFormatting when writing in Trac.

comment:2 Changed 3 years ago by ci42

I assume you are using libressl-devel. Currently erlang does not build with libressl-devel. Please switch to libressl or openssl for now.

comment:4 Changed 3 years ago by conradwt (Conrad Taylor)

Yes, I currently have erlang 20.1 and libressl-devel 2.6.2 installed. Thus, I'll hold off on installing erlang 20.2 until libressl 2.6.x works with it.

comment:5 Changed 3 years ago by ci42

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.