You are not logged in.
This is the error message i get when i try to build dclib
In file included from /usr/include/openssl/bn.h:31:0,
from /usr/include/openssl/asn1.h:24,
from /usr/include/openssl/rsa.h:16,
from cssl.h:36,
from cssl.cpp:18:
/usr/include/openssl/rsa.h:193:1: note: declared here
DEPRECATEDIN_0_9_8(RSA *RSA_generate_key(int bits, unsigned long e, void
^
cssl.cpp: In member function ‘void CSSL::InitRandArray(unsigned char*, int)’:
cssl.cpp:274:13: warning: conversion to ‘unsigned int’ from ‘time_t {aka long int}’ may alter its value [-Wconversion]
srand(time(NULL));
~~~~^~~~~~
cssl.cpp: In member function ‘CString CSSL::GetSessionKey(CSSLObject*)’:
cssl.cpp:387:34: warning: conversion to ‘int’ from ‘long unsigned int’ may alter its value [-Wconversion]
i = RSA_public_encrypt(bain.Size(),bain.Data(),baout.Data(),SSLObject->m_pRSA,RSA_PKCS1_OAEP_PADDING);
~~~~~~~~~^~
cssl.cpp: In member function ‘bool CSSL::SetSessionKey(CSSLObject*, CString)’:
cssl.cpp:424:37: warning: conversion to ‘int’ from ‘long unsigned int’ may alter its value [-Wconversion]
i = RSA_private_decrypt(baout.Size(),baout.Data(),bain.Data(),m_pRSA,RSA_PKCS1_OAEP_PADDING);
~~~~~~~~~~^~
cssl.cpp: In member function ‘CString CSSL::EncryptData(CSSLObject*, CString)’:
cssl.cpp:450:17: error: aggregate ‘EVP_CIPHER_CTX ctx’ has incomplete type and cannot be defined
EVP_CIPHER_CTX ctx;
^~~
cssl.cpp:471:16: warning: conversion to ‘int’ from ‘long unsigned int’ may alter its value [-Wconversion]
i = baout.Size();
~~~~~~~~~~^~
cssl.cpp: In member function ‘CString CSSL::DecryptData(CSSLObject*, CString)’:
cssl.cpp:497:17: error: aggregate ‘EVP_CIPHER_CTX ctx’ has incomplete type and cannot be defined
EVP_CIPHER_CTX ctx;
^~~
make[3]: *** [Makefile:388: cssl.lo] Error 1
make[3]: Leaving directory '/tmp/yaourt-tmp-nico/aur-dclib/src/dclib-0.3.23/dclib/core'
make[2]: *** [Makefile:471: all-recursive] Error 1
make[2]: Leaving directory '/tmp/yaourt-tmp-nico/aur-dclib/src/dclib-0.3.23/dclib'
make[1]: *** [Makefile:309: all-recursive] Error 1
make[1]: Leaving directory '/tmp/yaourt-tmp-nico/aur-dclib/src/dclib-0.3.23'
make: *** [Makefile:231: all] Error 2
Offline
That sourcecode is rather old (like from 2012) , try building with an older gcc version like gcc5.4 (gcc5 in community) or gcc49 from AUR .
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
(A works at time B) && (time C > time B ) ≠ (A works at time C)
Offline
Could be from openssl instead? https://www.archlinux.org/todo/openssl-110-rebuild/
Anyway I would suggest at least using gcc6. Hopefully gcc5 will be removed from the repos soon. https://www.archlinux.org/todo/gcc5-removal/
Last edited by eschwartz (2017-07-27 16:08:02)
Managing AUR repos The Right Way -- aurpublish (now a standalone tool)
Offline