Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with compilation - unused function 'bitc_openssl_lock_fun' #28

Open
gustawdaniel opened this issue Dec 22, 2017 · 1 comment
Open

Comments

@gustawdaniel
Copy link

After make i obtained the following error:

 CC    apps/bitc-cli/main.c
apps/bitc-cli/main.c:363:1: error: unused function 'bitc_openssl_lock_fun'
      [-Werror,-Wunused-function]
bitc_openssl_lock_fun(int mode,
^
apps/bitc-cli/main.c:387:1: error: unused function
      'bitc_openssl_thread_id_fun' [-Werror,-Wunused-function]
bitc_openssl_thread_id_fun(void)
^
2 errors generated.
Makefile:117: recipe for target 'bld/apps/bitc-cli/main.o' failed
make: *** [bld/apps/bitc-cli/main.o] Error 1

Additional info

arch
x86_64

lsb_release -a | grep Description
Description:	Ubuntu 16.04.3 LTS
@gustawdaniel gustawdaniel changed the title Problem with compilation Problem with compilation - unused function 'bitc_openssl_lock_fun' Dec 22, 2017
@xxxserxxx
Copy link

If you remove the -Werror from CFLAGS in the Makefile, it gets further but still vomits with a bunch of errors in base58.c. There are numerous notes (which I've stripped) about forward declarations and some other warnings, but the errors all seem to be in base58.c

core/base58.c:70:11: error: variable has incomplete type 'BIGNUM' (aka 'struct bignum_st')
   BIGNUM bn58;
          ^
core/base58.c:71:11: error: variable has incomplete type 'BIGNUM' (aka 'struct bignum_st')
   BIGNUM bnc;
          ^
core/base58.c:72:11: error: variable has incomplete type 'BIGNUM' (aka 'struct bignum_st')
   BIGNUM bn;
          ^
core/base58.c:76:4: warning: implicit declaration of function 'BN_init' is invalid in C99 [-Wimplicit-function-declaration]
   BN_init(&bn58);
   ^
core/base58.c:243:11: error: variable has incomplete type 'BIGNUM' (aka 'struct bignum_st')
   BIGNUM bn58;
          ^
/usr/include/openssl/ossl_typ.h:80:16: note: forward declaration of 'struct bignum_st'
typedef struct bignum_st BIGNUM;
               ^
core/base58.c:244:11: error: variable has incomplete type 'BIGNUM' (aka 'struct bignum_st')
   BIGNUM bn0;
          ^
/usr/include/openssl/ossl_typ.h:80:16: note: forward declaration of 'struct bignum_st'
typedef struct bignum_st BIGNUM;
               ^
core/base58.c:245:11: error: variable has incomplete type 'BIGNUM' (aka 'struct bignum_st')
   BIGNUM bn;
          ^
core/base58.c:246:11: error: variable has incomplete type 'BIGNUM' (aka 'struct bignum_st')
   BIGNUM div0;
          ^
core/base58.c:247:11: error: variable has incomplete type 'BIGNUM' (aka 'struct bignum_st')
   BIGNUM rem;
          ^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants