Skip to content

make: *** [build/util.o] Error 1 #14

Description

@Alavi1412

When I try to make the code with make MARCHFLAGS=-march=native -f makefile I got the following error:

...
               from util.cpp:1:
/usr/include/openssl/ossl_typ.h:80:16: note: forward declaration of ‘BIGNUM {aka struct bignum_st}’
typedef struct bignum_st BIGNUM;
               ^~~~~~~~~
util.cpp:40:19: error: invalid use of incomplete type ‘const BIGNUM {aka const struct bignum_st}’
  g->_mp_size = bn->top;
                  ^~
In file included from /usr/include/openssl/bn.h:32:0,
                from bignum.h:14,
                from util.h:6,
                from util.cpp:1:
/usr/include/openssl/ossl_typ.h:80:16: note: forward declaration of ‘BIGNUM {aka struct bignum_st}’
typedef struct bignum_st BIGNUM;
               ^~~~~~~~~
util.cpp:41:8: error: invalid use of incomplete type ‘const BIGNUM {aka const struct bignum_st}’
  if(bn->neg)
       ^~
In file included from /usr/include/openssl/bn.h:32:0,
                from bignum.h:14,
                from util.h:6,
                from util.cpp:1:
/usr/include/openssl/ossl_typ.h:80:16: note: forward declaration of ‘BIGNUM {aka struct bignum_st}’
typedef struct bignum_st BIGNUM;
               ^~~~~~~~~
makefile:124: recipe for target 'build/util.o' failed
make: *** [build/util.o] Error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions