Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Dec 2021 23:34:10 GMT
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 1e6670382fbb - main - security/john: fix build on powerpc64*
Message-ID:  <202112122334.1BCNYAql093079@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=1e6670382fbbd10ff7ec2009b296f8d9ed4e8fa4

commit 1e6670382fbbd10ff7ec2009b296f8d9ed4e8fa4
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2021-12-12 23:28:35 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2021-12-12 23:28:35 +0000

    security/john: fix build on powerpc64*
    
    cc -DAC_BUILT  -maltivec -mvsx -mpower8-vector -DJOHN_ALTIVEC -c -m64 -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing  -I/usr/local/include -I/usr/include -DARCH_LITTLE_ENDIAN=1 -DJOHN_SYSTEMWIDE -DJOHN_SYSTEMWIDE_EXEC='"/usr/local/bin"' -DJOHN_SYSTEMWIDE_HOME='"/usr/local/share/john"'  -DJOHN_SYSTEMWIDE=1 -Wall -Wno-tautological-constant-out-of-range-compare -fno-omit-frame-pointer -Wno-deprecated-declarations -Wformat-extra-args -Qunused-arguments -std=gnu89 -Wdate-time -D__BSD_VISIBLE -I/usr/include -fopenmp  -D_THREAD_SAFE -pthread -I/usr/local/include -DCL_SILENCE_DEPRECATION -finline-functions -fno-strict-aliasing -maltivec DES_bs_b.c
    In file included from DES_bs_b.c:620:
    ./sboxes-s.c:59:2: warning: implicit declaration of function 'vec_sel' [-Wimplicit-function-declaration]
            vsel(x0F0F3333, a3, a2, a5);
            ^
    DES_bs_b.c:117:10: note: expanded from macro 'vsel'
            (dst) = vec_sel((a), (b), (vector bool int)(c))
                    ^
    In file included from DES_bs_b.c:620:
    ./sboxes-s.c:59:2: error: assigning to 'vtype' (vector of 4 'int' values) from incompatible type 'int'
            vsel(x0F0F3333, a3, a2, a5);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
    DES_bs_b.c:117:8: note: expanded from macro 'vsel'
            (dst) = vec_sel((a), (b), (vector bool int)(c))
                  ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
---
 security/john/files/patch-src_sboxes-s.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/security/john/files/patch-src_sboxes-s.c b/security/john/files/patch-src_sboxes-s.c
new file mode 100644
index 000000000000..b6caba0d866d
--- /dev/null
+++ b/security/john/files/patch-src_sboxes-s.c
@@ -0,0 +1,10 @@
+--- src/sboxes-s.c.orig	2021-12-13 00:08:30.419393000 +0100
++++ src/sboxes-s.c	2021-12-13 00:08:41.847880000 +0100
+@@ -32,6 +32,7 @@
+ #define regs 8
+ #else
+ /* PowerPC with AltiVec, etc. */
++#include <altivec.h>
+ #define regs 32
+ #endif
+ 



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