Package Details: libkcapi 1.1.5-1

Git Clone URL: https://aur.archlinux.org/libkcapi.git (read-only)
Package Base: libkcapi
Description: Linux Kernel Crypto API User Space Interface Library
Upstream URL: http://www.chronox.de/libkcapi.html
Keywords: crypto
Licenses: GPL2, BSD
Submitter: vbmithr
Maintainer: vbmithr
Last Packager: vbmithr
Votes: 1
Popularity: 0.000001
First Submitted: 2018-01-25 14:44
Last Updated: 2019-09-18 09:26

Latest Comments

adsun commented on 2019-09-17 13:49

Can confirm the same error reported by @patrakov. Updating to 1.1.5 fixes this problem.

patrakov commented on 2019-09-17 13:31

Fails to build:

gcc -DPACKAGE_NAME=\"libkcapi\" -DPACKAGE_TARNAME=\"libkcapi\" -DPACKAGE_VERSION=\"1.1.4\" -DPACKAGE_STRING=\"libkcapi\ 1.1.4\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DKCAPI_MAJVERSION=1 -DKCAPI_MINVERSION=1 -DKCAPI_PATCHLEVEL=4 -DPACKAGE=\"libkcapi\" -DVERSION=\"1.1.4\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_GETRANDOM=1 -DHAVE_SECURE_GETENV=1 -DWITH_LIB_ASYM=1 -DWITH_LIB_KPP=1 -DCHECK_PREFIX=\".\" -DCHECK_SUFFIX=\"hmac\" -I.  -Wextra -Wall -pedantic -fwrapv --param ssp-buffer-size=4 -O2 -Werror -std=gnu99 -I./lib/ -D_FORTIFY_SOURCE=2  -fstack-protector-strong -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fpie -fPIE -DPIE -MT apps/bin_kcapi_hasher-kcapi-hasher.o -MD -MP -MF apps/.deps/bin_kcapi_hasher-kcapi-hasher.Tpo -c -o apps/bin_kcapi_hasher-kcapi-hasher.o `test -f 'apps/kcapi-hasher.c' || echo './'`apps/kcapi-hasher.c
In file included from /usr/include/string.h:494,
                 from apps/kcapi-hasher.c:47:
In function 'strncpy',
    inlined from 'get_hmac_file' at apps/kcapi-hasher.c:372:2:
/usr/include/bits/string_fortified.h:106:10: error: '__builtin_strncpy' specified bound depends on the length of the source argument [-Werror=stringop-overflow=]
  106 |   return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
apps/kcapi-hasher.c: In function 'get_hmac_file':
apps/kcapi-hasher.c:409:12: note: length computed here
  409 |   cursor = paste(cursor, checkdir, strlen(checkdir));
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors

adsun commented on 2018-01-27 14:36

Thanks!

vbmithr commented on 2018-01-27 14:35

Fixed.

adsun commented on 2018-01-27 14:31

I did use git, but the error still persisted.

Apparently removing replacing "../../makefile.patch" with "../makefile.patch" allows it to build.

vbmithr commented on 2018-01-27 14:26

You need the full sources, not just the PKGBUILD file. Download the whole archive or use git.

adsun commented on 2018-01-27 14:24

/startdir/PKGBUILD: line 23: ../../makefile.patch: No such file or directory.