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> |
[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