Skip Menu |
 
rt.cpan.org will be shut down on March 1st, 2021.

This queue is for tickets about the Filter-Crypto CPAN distribution.

Report information
The Basics
Id: 123204
Status: resolved
Priority: 0/
Queue: Filter-Crypto

People
Owner: Nobody in particular
Requestors: imdonp [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 2.08



Subject: Centos 6, 7 , raspbian , etc.. Fails to build with openssl > 1.0.1
Date: Fri, 6 Oct 2017 07:47:25 -0400
To: bug-Filter-Crypto [...] rt.cpan.org
From: Don Peddicord <imdonp [...] gmail.com>
Download (untitled) / with headers
text/plain 7.7k
[root@donpeddev Filter-Crypto-2.07-vscyI6]# make make[1]: Entering directory `/root/.cpan/build/Filter-Crypto-2.07-vscyI6/CryptFile' gcc -c -I/opt/perlutils/Perl64-5.24.1/spawar-libs/include -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protect or-strong -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -O2 -DVERSION=\"2.07\" -DXS_VERSION=\"2. 07\" -fPIC "-I/opt/perlutils/Perl64-5.24.1/lib/5.24.1/x86_64-linux-thread-multi/CORE" -DFILTER_CRYPTO_OPENSSL_VERSION=1010100 CryptFile .c In file included from ../CryptoCommon-c.inc:47:0, from CryptFile.xs:30: ../CryptoCommon-c.inc: In function ‘FilterCrypto_CryptoAlloc’: ../CryptoCommon-c.inc:160:31: error: invalid application of ‘sizeof’ to incomplete type ‘EVP_CIPHER_CTX’ Newxz(ctx->cipher_ctx, 1, EVP_CIPHER_CTX); ^ /opt/perlutils/Perl64-5.24.1/lib/5.24.1/x86_64-linux-thread-multi/CORE/perl.h:3668:62: note: in definition of macro ‘EXPECT’ # define EXPECT(expr,val) __builtin_expect(expr,val) ^ /opt/perlutils/Perl64-5.24.1/lib/5.24.1/x86_64-linux-thread-multi/CORE/perl.h:3673:52: note: in expansion of macro ‘cBOOL’ #define UNLIKELY(cond) EXPECT(cBOOL(cond),FALSE) ^ /opt/perlutils/Perl64-5.24.1/lib/5.24.1/x86_64-linux-thread-multi/CORE/handy.h:1998:9: note: in expansion of macro ‘UNLIKELY’ (void)(UNLIKELY(_MEM_WRAP_WILL_WRAP(n,t)) \ ^ /opt/perlutils/Perl64-5.24.1/lib/5.24.1/x86_64-linux-thread-multi/CORE/handy.h:1994:9: note: in expansion of macro ‘_MEM_WRAP_NEEDS_RUNT IME_CHECK’ ((_MEM_WRAP_NEEDS_RUNTIME_CHECK(n,t) ? (MEM_SIZE)(n) : \ ^ /opt/perlutils/Perl64-5.24.1/lib/5.24.1/x86_64-linux-thread-multi/CORE/handy.h:1998:18: note: in expansion of macro ‘_MEM_WRAP_WILL_WRA ’ (void)(UNLIKELY(_MEM_WRAP_WILL_WRAP(n,t)) \ /opt/perlutils/Perl64-5.24.1/lib/5.24.1/x86_64-linux-thread-multi/CORE/handy.h:2005:30: note: in expansion of macro ‘MEM_WRAP_CHECK’ #define MEM_WRAP_CHECK_(n,t) MEM_WRAP_CHECK(n,t), ^ /opt/perlutils/Perl64-5.24.1/lib/5.24.1/x86_64-linux-thread-multi/CORE/handy.h:2088:28: note: in expansion of macro ‘MEM_WRAP_CHECK_’ #define Newxz(v,n,t) (v = (MEM_WRAP_CHECK_(n,t) (t*)MEM_LOG_ALLOC(n,t,safecalloc((n),sizeof(t))))) ^ ../CryptoCommon-c.inc:160:5: note: in expansion of macro ‘Newxz’ Newxz(ctx->cipher_ctx, 1, EVP_CIPHER_CTX); ^ ../CryptoCommon-c.inc:160:31: error: invalid application of ‘sizeof’ to incomplete type ‘EVP_CIPHER_CTX’ Newxz(ctx->cipher_ctx, 1, EVP_CIPHER_CTX); ^ /opt/perlutils/Perl64-5.24.1/lib/5.24.1/x86_64-linux-thread-multi/CORE/perl.h:3668:62: note: in definition of macro ‘EXPECT’ # define EXPECT(expr,val) __builtin_expect(expr,val) ^ /opt/perlutils/Perl64-5.24.1/lib/5.24.1/x86_64-linux-thread-multi/CORE/perl.h:3673:52: note: in expansion of macro ‘cBOOL’ #define UNLIKELY(cond) EXPECT(cBOOL(cond),FALSE) ^ /opt/perlutils/Perl64-5.24.1/lib/5.24.1/x86_64-linux-thread-multi/CORE/handy.h:1998:9: note: in expansion of macro ‘UNLIKELY’ (void)(UNLIKELY(_MEM_WRAP_WILL_WRAP(n,t)) \ ^ /opt/perlutils/Perl64-5.24.1/lib/5.24.1/x86_64-linux-thread-multi/CORE/handy.h:1998:18: note: in expansion of macro ‘_MEM_WRAP_WILL_WRA ’ (void)(UNLIKELY(_MEM_WRAP_WILL_WRAP(n,t)) \ ^ /opt/perlutils/Perl64-5.24.1/lib/5.24.1/x86_64-linux-thread-multi/CORE/handy.h:2005:30: note: in expansion of macro ‘MEM_WRAP_CHECK’ #define MEM_WRAP_CHECK_(n,t) MEM_WRAP_CHECK(n,t), ^ /opt/perlutils/Perl64-5.24.1/lib/5.24.1/x86_64-linux-thread-multi/CORE/handy.h:2088:28: note: in expansion of macro ‘MEM_WRAP_CHECK_’ #define Newxz(v,n,t) (v = (MEM_WRAP_CHECK_(n,t) (t*)MEM_LOG_ALLOC(n,t,safecalloc((n),sizeof(t))))) ^ ../CryptoCommon-c.inc:160:5: note: in expansion of macro ‘Newxz’ Newxz(ctx->cipher_ctx, 1, EVP_CIPHER_CTX); ^ ../CryptoCommon-c.inc:160:31: error: invalid application of ‘sizeof’ to incomplete type ‘EVP_CIPHER_CTX’ Newxz(ctx->cipher_ctx, 1, EVP_CIPHER_CTX); ^ /opt/perlutils/Perl64-5.24.1/lib/5.24.1/x86_64-linux-thread-multi/CORE/perl.h:3668:62: note: in definition of macro ‘EXPECT’ # define EXPECT(expr,val) __builtin_expect(expr,val) ^ /opt/perlutils/Perl64-5.24.1/lib/5.24.1/x86_64-linux-thread-multi/CORE/perl.h:3673:52: note: in expansion of macro ‘cBOOL’ #define UNLIKELY(cond) EXPECT(cBOOL(cond),FALSE) ^ /opt/perlutils/Perl64-5.24.1/lib/5.24.1/x86_64-linux-thread-multi/CORE/handy.h:1998:9: note: in expansion of macro ‘UNLIKELY’ (void)(UNLIKELY(_MEM_WRAP_WILL_WRAP(n,t)) \ ^ /opt/perlutils/Perl64-5.24.1/lib/5.24.1/x86_64-linux-thread-multi/CORE/handy.h:1998:18: note: in expansion of macro ‘_MEM_WRAP_WILL_WRA ’ (void)(UNLIKELY(_MEM_WRAP_WILL_WRAP(n,t)) \ ^ /opt/perlutils/Perl64-5.24.1/lib/5.24.1/x86_64-linux-thread-multi/CORE/handy.h:2005:30: note: in expansion of macro ‘MEM_WRAP_CHECK’ #define MEM_WRAP_CHECK_(n,t) MEM_WRAP_CHECK(n,t), ^ /opt/perlutils/Perl64-5.24.1/lib/5.24.1/x86_64-linux-thread-multi/CORE/handy.h:2088:28: note: in expansion of macro ‘MEM_WRAP_CHECK_’ #define Newxz(v,n,t) (v = (MEM_WRAP_CHECK_(n,t) (t*)MEM_LOG_ALLOC(n,t,safecalloc((n),sizeof(t))))) ^ ../CryptoCommon-c.inc:160:5: note: in expansion of macro ‘Newxz’ Newxz(ctx->cipher_ctx, 1, EVP_CIPHER_CTX); ^ In file included from /opt/perlutils/Perl64-5.24.1/lib/5.24.1/x86_64-linux-thread-multi/CORE/perl.h:2684:0, from ../CryptoCommon-c.inc:47, from CryptFile.xs:30: ../CryptoCommon-c.inc:160:31: error: invalid application of ‘sizeof’ to incomplete type ‘EVP_CIPHER_CTX’ Newxz(ctx->cipher_ctx, 1, EVP_CIPHER_CTX); ^ /opt/perlutils/Perl64-5.24.1/lib/5.24.1/x86_64-linux-thread-multi/CORE/handy.h:2077:35: note: in definition of macro ‘MEM_LOG_ALLOC’ #define MEM_LOG_ALLOC(n,t,a) (a) ^ ../CryptoCommon-c.inc:160:5: note: in expansion of macro ‘Newxz’ Newxz(ctx->cipher_ctx, 1, EVP_CIPHER_CTX); ^ In file included from CryptFile.xs:30:0: ../CryptoCommon-c.inc: In function ‘FilterCrypto_CryptoInitCipher’: ../CryptoCommon-c.inc:258:17: warning: ‘RAND_pseudo_bytes’ is deprecated (declared at /opt/perlutils/Perl64-5.24.1/spawar-libs/include/openssl/rand.h:44) [-Wdeprecated-declarations] if (!RAND_pseudo_bytes(salt_text, ctx->required_salt_len)) { ^ ../CryptoCommon-c.inc:288:17: warning: ‘RAND_pseudo_bytes’ is deprecated (declared at /opt/perlutils/Perl64-5.24.1/spawar-libs/include/openssl/rand.h:44) [-Wdeprecated-declarations] if (!RAND_pseudo_bytes(iv_text, ctx->required_iv_len)) { ^ ./../CryptoCommon-xs.inc: In function ‘XS_Filter__Crypto__CryptFile_DESTROY’: ./../CryptoCommon-xs.inc:78:9: warning: ‘ERR_remove_state’ is deprecated (declared at /opt/perlutils/Perl64-5.24.1/spawar-libs/include/openssl/err.h:258) [-Wdeprecated-declarations] ERR_remove_state(0); ^ make[1]: *** [CryptFile.o] Error 1 make[1]: Leaving directory `/root/.cpan/build/Filter-Crypto-2.07-vscyI6/CryptFile' make: *** [subdirs] Error 2 [root@donpeddev Filter-Crypto-2.07-vscyI6]# -- Don Peddicord
Download (untitled) / with headers
text/plain 198b
Thanks for the report. This should be fixed already in the Github repo, which I really should have released by now!: https://github.com/steve-m-hay/Filter-Crypto I will make a new release soon :-)
Thanks again. This was fixed in release 2.08.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.