[Bug 233035] lang/erlang: Fails to build with LibreSSL 2.8.2

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Nov 6 18:25:22 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=233035

            Bug ID: 233035
           Summary: lang/erlang: Fails to build with LibreSSL 2.8.2
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs at FreeBSD.org
          Reporter: blackmore at pichove.org

lang/erlang siezed to build with LibreSSL 2.8.2 since #225898 was fixed.


crypto.c:2045:14: error: implicit declaration of function
'EVP_chacha20_poly1305' is invalid in C99
[-Werror,-Wimplicit-function-declaration]
    cipher = EVP_chacha20_poly1305();
             ^
crypto.c:2045:14: note: did you mean 'EVP_aead_chacha20_poly1305'?
/usr/local/include/openssl/evp.h:1240:17: note: 'EVP_aead_chacha20_poly1305'
declared here
const EVP_AEAD *EVP_aead_chacha20_poly1305(void);
                ^
crypto.c:2045:14: warning: this function declaration is not a prototype
[-Wstrict-prototypes]
    cipher = EVP_chacha20_poly1305();
             ^
crypto.c:2045:12: warning: incompatible integer to pointer conversion assigning
to 'const EVP_CIPHER *' (aka 'const struct evp_cipher_st *') from 'int'
[-Wint-conversion]
    cipher = EVP_chacha20_poly1305();
           ^ ~~~~~~~~~~~~~~~~~~~~~~~
crypto.c:2054:34: error: use of undeclared identifier 'EVP_CTRL_AEAD_SET_IVLEN'
    if (EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_SET_IVLEN, iv.size, NULL) != 1)
                                 ^
crypto.c:2070:34: error: use of undeclared identifier 'EVP_CTRL_AEAD_GET_TAG'
    if (EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_GET_TAG, 16, tagp) != 1)
                                 ^
crypto.c:2105:14: error: implicit declaration of function
'EVP_chacha20_poly1305' is invalid in C99
[-Werror,-Wimplicit-function-declaration]
    cipher = EVP_chacha20_poly1305();
             ^
crypto.c:2105:12: warning: incompatible integer to pointer conversion assigning
to 'const EVP_CIPHER *' (aka 'const struct evp_cipher_st *') from 'int'
[-Wint-conversion]
    cipher = EVP_chacha20_poly1305();
           ^ ~~~~~~~~~~~~~~~~~~~~~~~
crypto.c:2111:34: error: use of undeclared identifier 'EVP_CTRL_AEAD_SET_IVLEN'
    if (EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_SET_IVLEN, iv.size, NULL) != 1)
                                 ^
crypto.c:2122:34: error: use of undeclared identifier 'EVP_CTRL_AEAD_SET_TAG'
    if (EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_SET_TAG, tag.size, tag.data) !=
1)
                                 ^
12 warnings and 6 errors generated.
gmake[6]: *** [amd64-portbld-freebsd11.2/Makefile:136:
../priv/obj/amd64-portbld-freebsd11.2/crypto.o] Error 1
gmake[6]: Leaving directory
'/usr/ports/lang/erlang/work/otp_src_19.3/lib/crypto/c_src'
gmake[5]: *** [/usr/ports/lang/erlang/work/otp_src_19.3/make/run_make.mk:35:
opt] Error 2
gmake[5]: Leaving directory
'/usr/ports/lang/erlang/work/otp_src_19.3/lib/crypto/c_src'
gmake[4]: *** [/usr/ports/lang/erlang/work/otp_src_19.3/make/otp_subdir.mk:29:
opt] Error 2
gmake[4]: Leaving directory
'/usr/ports/lang/erlang/work/otp_src_19.3/lib/crypto'
gmake[3]: *** [/usr/ports/lang/erlang/work/otp_src_19.3/make/otp_subdir.mk:29:
opt] Error 2
gmake[3]: Leaving directory '/usr/ports/lang/erlang/work/otp_src_19.3/lib'
gmake[2]: *** [Makefile:452: libs] Error 2
gmake[2]: Leaving directory '/usr/ports/lang/erlang/work/otp_src_19.3'
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/lang/erlang
*** Error code 1

Stop.
make: stopped in /usr/ports/lang/erlang



[root at SagaBOX /usr/ports/lang/erlang]# make showconfig
===> The following configuration options are available for
erlang-19.3.6.12_1,4:
     DIRTY=off: Enable Dirty schedulers (experimental)
     DTRACE=off: Build with DTrace probes
     GS=off: Enable GS application (deprecated)
     HIPE=off: Build native HiPE compiler
     JAVA=off: Java platform support
     KQUEUE=on: Enable Kernel Poll (kqueue) support
     MANPAGES=off: Build and/or install manual pages
     NATIVE=off: Enable native libraries
     ODBC=off: ODBC database backend
     OPENSSL=on: SSL/TLS support via OpenSSL
     SCTP=on: Enable SCTP support
     SMP=on: Enable SMP support
     THREADS=on: Threading support
     WX=off: Enable WX application
===> Use 'make config' to modify these settings

--- Comment #1 from Bugzilla Automation <bugzilla at FreeBSD.org> ---
Maintainer informed via mail

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list