Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Jun 2020 07:13:48 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 247229] security/john: Fails to build on FreeBSD 12.1 if OpenCL is installed
Message-ID:  <bug-247229-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D247229

            Bug ID: 247229
           Summary: security/john: Fails to build on FreeBSD 12.1 if
                    OpenCL is installed
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: danfe@FreeBSD.org
          Reporter: lantw44@gmail.com
             Flags: maintainer-feedback?(danfe@FreeBSD.org)
          Assignee: danfe@FreeBSD.org

Here are the error messages. It looks like there are some OpenSSL problems =
in
the code when OpenCL is enabled.

gmake[2]: Entering directory
'/wrkdirs/usr/ports/security/john/work/john-1.8.0-jumbo-1/src'
cc -DAC_BUILT -march=3Dnative  -c -O2 -pipe  -fstack-protector-strong
-fno-strict-aliasing  -I/usr/local/include -I/usr/include
-DARCH_LITTLE_ENDIAN=3D1 -DJOHN_SYSTEMWIDE=3D1  -Wall -Wdeclaration-after-s=
tatement
-fomit-frame-pointer -Wno-deprecated-declarations -Wno-format-extra-args
-Qunused-arguments -D__BSD_VISIBLE   -I/usr/include -fopenmp  -D_THREAD_SAFE
-pthread  -DHAVE_OPENCL -D_THREAD_SAFE -pthread -funroll-loops
opencl_dmg_fmt_plug.c -o opencl_dmg_fmt_plug.o
opencl_dmg_fmt_plug.c:527:17: error: variable has incomplete type
'EVP_CIPHER_CTX' (aka 'struct evp_cipher_ctx_st')
        EVP_CIPHER_CTX ctx;
                       ^
/usr/include/openssl/ossl_typ.h:90:16: note: forward declaration of 'struct
evp_cipher_ctx_st'
typedef struct evp_cipher_ctx_st EVP_CIPHER_CTX;
               ^
opencl_dmg_fmt_plug.c:575:18: error: variable has incomplete type
'EVP_CIPHER_CTX' (aka 'struct evp_cipher_ctx_st')
                EVP_CIPHER_CTX ctx;
                               ^
/usr/include/openssl/ossl_typ.h:90:16: note: forward declaration of 'struct
evp_cipher_ctx_st'
typedef struct evp_cipher_ctx_st EVP_CIPHER_CTX;
               ^
opencl_dmg_fmt_plug.c:582:12: error: variable has incomplete type 'HMAC_CTX'
(aka 'struct hmac_ctx_st')
                HMAC_CTX hmacsha1_ctx;
                         ^
/usr/include/openssl/ossl_typ.h:102:16: note: forward declaration of 'struct
hmac_ctx_st'
typedef struct hmac_ctx_st HMAC_CTX;
               ^
opencl_dmg_fmt_plug.c:600:3: warning: implicit declaration of function
'HMAC_CTX_init' is invalid in C99 [-Wimplicit-function-declaration]
                HMAC_CTX_init(&hmacsha1_ctx);
                ^
opencl_dmg_fmt_plug.c:604:3: warning: implicit declaration of function
'HMAC_CTX_cleanup' is invalid in C99 [-Wimplicit-function-declaration]
                HMAC_CTX_cleanup(&hmacsha1_ctx);
                ^
2 warnings and 3 errors generated.
gmake[2]: *** [Makefile:502: opencl_dmg_fmt_plug.o] Error 1
gmake[2]: Leaving directory
'/wrkdirs/usr/ports/security/john/work/john-1.8.0-jumbo-1/src'

This problem was found when building john on a desktop machine. To reproduc=
e it
in poudriere, adds opencl and ocl-icd to the build environment:

diff --git a/security/john/Makefile b/security/john/Makefile
index 287d45e8982..153a61feb89 100644
--- a/security/john/Makefile
+++ b/security/john/Makefile
@@ -19,6 +19,7 @@ LICENSE=3D      GPLv2
 BROKEN_mips64=3D cannot detect CPU architecture

 LIB_DEPENDS=3D   libgmp.so:math/gmp
+BUILD_DEPENDS=3D opencl>=3D0:devel/opencl ocl-icd>=3D0:devel/ocl-icd

 USES=3D          gmake shebangfix ssl tar:xz
 GNU_CONFIGURE=3D yes

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-247229-7788>