pcompress icon indicating copy to clipboard operation
pcompress copied to clipboard

recipe for target 'crypto/crypto_utils.o' failed

Open Albretch opened this issue 6 years ago • 1 comments

./config --disable-wavpack

...

make

... gcc -c -fPIC -fvisibility=hidden -O3 -fopenmp -fopenmp -msse4.2 -I/usr/include -D__OSSL_OLD__ -I. -I./lzma -I./lzfx -I./lz4 -I./rabin -I./bsdiff -DNODEFAULT_PROPS -DFILE_OFFSET_BITS=64 -D_REENTRANT -D__USE_SSE_INTRIN__ -D_LZMA_PROB32 -I./filters/lzp -I./bsc/libbsc -DENABLE_PC_LIBBSC -I./crypto/skein -I./utils -I./crypto/sha2 -I./crypto/scrypt -I./crypto/aes -I./crypto -I./rabin/global -I./crypto/keccak -I./filters/transpose -I./crypto/blake2 -I./crypto/xsalsa20 -I./archive -pedantic -Wall -I./filters -fno-strict-aliasing -Wno-unused-but-set-variable -Wno-enum-compare -I./filters/analyzer -I./filters/dispack -D__HASH_COMPATIBILITY_ -Iarchive/libarchive/libarchive -I./filters/packjpg -I./filters/packpnm -std=gnu99 -DNDEBUG crypto/crypto_utils.c -o crypto/crypto_utils.o crypto/crypto_utils.c: In function ‘HMAC_CTX_copy’: crypto/crypto_utils.c:109:28: error: dereferencing pointer to incomplete type ‘HMAC_CTX {aka struct hmac_ctx_st}’ if (!EVP_MD_CTX_copy(&dctx->i_ctx, &sctx->i_ctx)) ^~ crypto/crypto_utils.c: In function ‘PKCS5_PBKDF2_HMAC’: crypto/crypto_utils.c:131:11: error: storage size of ‘hctx’ isn’t known HMAC_CTX hctx; ^~~~ crypto/crypto_utils.c:137:2: warning: implicit declaration of function ‘HMAC_CTX_init’ [-Wimplicit-function-declaration] HMAC_CTX_init(&hctx); ^~~~~~~~~~~~~ crypto/crypto_utils.c:173:2: warning: implicit declaration of function ‘HMAC_CTX_cleanup’ [-Wimplicit-function-declaration] HMAC_CTX_cleanup(&hctx); ^~~~~~~~~~~~~~~~ crypto/crypto_utils.c:131:11: warning: unused variable ‘hctx’ [-Wunused-variable] HMAC_CTX hctx; ^~~~ crypto/crypto_utils.c: In function ‘hmac_init’: crypto/crypto_utils.c:485:47: error: invalid application of ‘sizeof’ to incomplete type ‘HMAC_CTX {aka struct hmac_ctx_st}’ HMAC_CTX *ctx = (HMAC_CTX *)malloc(sizeof (HMAC_CTX)); ^~~~~~~~ crypto/crypto_utils.c:491:37: error: invalid application of ‘sizeof’ to incomplete type ‘HMAC_CTX {aka struct hmac_ctx_st}’ ctx = (HMAC_CTX *)malloc(sizeof (HMAC_CTX)); ^~~~~~~~ crypto/crypto_utils.c:518:47: error: invalid application of ‘sizeof’ to incomplete type ‘HMAC_CTX {aka struct hmac_ctx_st}’ HMAC_CTX *ctx = (HMAC_CTX *)malloc(sizeof (HMAC_CTX)); ^~~~~~~~ crypto/crypto_utils.c:524:37: error: invalid application of ‘sizeof’ to incomplete type ‘HMAC_CTX {aka struct hmac_ctx_st}’ ctx = (HMAC_CTX *)malloc(sizeof (HMAC_CTX)); ^~~~~~~~ Makefile:381: recipe for target 'crypto/crypto_utils.o' failed make: *** [crypto/crypto_utils.o] Error 1

Albretch avatar Dec 24 '18 19:12 Albretch

~Looks like openssl related issue #51~ The issue is cussed by API changes in openssl 1.1 in comparisoin to 1.0 Looks like dino have found solution to this problem, will take a look and try to create PR https://github.com/dino/dino/commit/1a4cd2508bfc71801d9a1f7029580cc9e4fdf659

bartoszek avatar Mar 13 '19 15:03 bartoszek