From owner-freebsd-ports-bugs@freebsd.org Sat Jun 13 07:13:49 2020 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 74BD832DEC5 for ; Sat, 13 Jun 2020 07:13:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 49kTNF2WX6z4gDB for ; Sat, 13 Jun 2020 07:13:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 54B0C32DEC3; Sat, 13 Jun 2020 07:13:49 +0000 (UTC) Delivered-To: ports-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 547C532E148 for ; Sat, 13 Jun 2020 07:13:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49kTNF1bw2z3RW7 for ; Sat, 13 Jun 2020 07:13:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 326FB172C3 for ; Sat, 13 Jun 2020 07:13:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 05D7DnwP021746 for ; Sat, 13 Jun 2020 07:13:49 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 05D7Dnec021745 for ports-bugs@FreeBSD.org; Sat, 13 Jun 2020 07:13:49 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f 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 Date: Sat, 13 Jun 2020 07:13:48 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: lantw44@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: danfe@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Jun 2020 07:13:49 -0000 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.=