I'm trying to run [url=https://community.openvpn.net/openvpn/a ... ystem.7.sh]setup-generic-buildsystem.7.sh
My problem is when I'm trying to build osslsigncode
I can run
Code: Select all
configure
Code: Select all
make
Code: Select all
make all-am
make[1]: Entering directory '/home/realtebo/osslsigncode-1.7.1'
gcc -DHAVE_CONFIG_H -I. -g -O2 -MT osslsigncode.o -MD -MP -MF .deps/osslsigncode.Tpo -c -o osslsigncode.o osslsigncode.c
osslsigncode.c: In function ‘createOpus’:
osslsigncode.c:432:36: warning: implicit declaration of function ‘M_ASN1_IA5STRING_new’; did you mean ‘ASN1_IA5STRING_new’? [-Wimplicit-function-declaration]
info->programName->value.ascii = M_ASN1_IA5STRING_new();
^~~~~~~~~~~~~~~~~~~~
ASN1_IA5STRING_new
osslsigncode.c:432:34: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
info->programName->value.ascii = M_ASN1_IA5STRING_new();
^
osslsigncode.c:440:29: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
info->moreInfo->value.url = M_ASN1_IA5STRING_new();
^
osslsigncode.c: In function ‘add_timestamp’:
osslsigncode.c:544:14: error: storage size of ‘mdctx’ isn’t known
EVP_MD_CTX mdctx;
^~~~~
osslsigncode.c:556:3: warning: implicit declaration of function ‘M_ASN1_OCTET_STRING_set’; did you mean ‘ASN1_OCTET_STRING_set’? [-Wimplicit-function-declaration]
M_ASN1_OCTET_STRING_set(req->messageImprint->digest, mdbuf, EVP_MD_size(md));
^~~~~~~~~~~~~~~~~~~~~~~
ASN1_OCTET_STRING_set
osslsigncode.c: In function ‘cleanup_lib_state’:
osslsigncode.c:744:2: warning: ‘ERR_remove_thread_state’ is deprecated [-Wdeprecated-declarations]
ERR_remove_thread_state(NULL);
^~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/openssl/crypto.h:32:0,
from /usr/include/openssl/bio.h:20,
from /usr/include/openssl/err.h:21,
from osslsigncode.c:98:
/usr/include/openssl/err.h:247:1: note: declared here
DEPRECATEDIN_1_1_0(void ERR_remove_thread_state(void *))
^
osslsigncode.c: At top level:
osslsigncode.c:841:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
DECLARE_STACK_OF(ASN1_OCTET_STRING)
^~~~~~~~~~~~~~~~
osslsigncode.c: In function ‘DECLARE_STACK_OF’:
osslsigncode.c:850:1: error: expected declaration specifiers before ‘DECLARE_STACK_OF’
DECLARE_STACK_OF(SpcAttributeTypeAndOptionalValue)
^~~~~~~~~~~~~~~~
osslsigncode.c:916:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
{
^
osslsigncode.c:996:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
{
^
osslsigncode.c:1018:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
{
^
osslsigncode.c:1028:47: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
static unsigned char nib2val(unsigned char c) {
^
osslsigncode.c:1041:63: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
static int verify_leaf_hash(X509 *leaf, const char *leafhash) {
^
osslsigncode.c:1133:67: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
static PKCS7 *pkcs7_get_nested_signature(PKCS7 *p7, int *has_sig) {
^
osslsigncode.c:1149:65: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
static int pkcs7_set_nested_signature(PKCS7 *p7, PKCS7 *p7nest) {
^
osslsigncode.c:1828:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
{
^
osslsigncode.c:1863:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
{
^
osslsigncode.c:1917:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
{
^
osslsigncode.c:1970:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
{
^
osslsigncode.c:2102:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
{
^
osslsigncode.c:2149:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
{
^
osslsigncode.c:2170:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
{
^
osslsigncode.c:2184:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
{
^
osslsigncode.c:2193:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
{
^
osslsigncode.c:2214:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
{
^
osslsigncode.c:2238:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
{
^
osslsigncode.c:2276:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
{
^
osslsigncode.c:841:1: error: parameter name omitted
DECLARE_STACK_OF(ASN1_OCTET_STRING)
^~~~~~~~~~~~~~~~
osslsigncode.c:3157:1: error: expected ‘{’ at end of input
}
^
Makefile:399: recipe for target 'osslsigncode.o' failed
make[1]: *** [osslsigncode.o] Error 1
make[1]: Leaving directory '/home/realtebo/osslsigncode-1.7.1'
Makefile:290: recipe for target 'all' failed
make: *** [all] Error 2
I would like to simply suppress warnings, like suggested, for examples adding
Code: Select all
-Wimplicit-function-declaration
... but I do not know how to do this