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

ERROR : dereferencing pointer to incomplete type #1

Open
rawan13 opened this issue May 11, 2020 · 1 comment
Open

ERROR : dereferencing pointer to incomplete type #1

rawan13 opened this issue May 11, 2020 · 1 comment

Comments

@rawan13
Copy link

rawan13 commented May 11, 2020

Hello,

I am trying to install OpenCA, I now want to install open-tools to be able to install openca-base. But I am getting an error when typing "make" this is the error:
Making all in src/sv
make[1]: Entering directory '/home/rawan/Desktop/projet_OpenCA/openca-tools-1.3.1/src/sv'
gcc -DHAVE_CONFIG_H -I. -I../../include/openca -I../../include -g -O2 -fstack-check -maccumulate-outgoing-args -MT apps.o -MD -MP -MF .deps/apps.Tpo -c -o apps.o apps.c
apps.c: In function ‘load_netscape_key’:
apps.c:504:8: warning: implicit declaration of function ‘d2i_RSA_NET’; did you mean ‘d2i_SXNET’? [-Wimplicit-function-declaration]
rsa = d2i_RSA_NET(NULL,&p,(long)size,NULL,
^~~~~~~~~~~
d2i_SXNET
apps.c:504:6: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
rsa = d2i_RSA_NET(NULL,&p,(long)size,NULL,
^
apps.c: In function ‘load_engine’:
apps.c:549:11: warning: implicit declaration of function ‘configure_engine’; did you mean ‘load_engine’? [-Wimplicit-function-declaration]
if (! configure_engine (e, pre_cmds, bio_out))
^~~~~~~~~~~~~~~~
load_engine
mv -f .deps/apps.Tpo .deps/apps.Po
gcc -DHAVE_CONFIG_H -I. -I../../include/openca -I../../include -g -O2 -fstack-check -maccumulate-outgoing-args -MT sv.o -MD -MP -MF .deps/sv.Tpo -c -o sv.o sv.c
sv.c: In function ‘main’:
sv.c:145:3: warning: implicit declaration of function ‘whichVersion’; did you mean ‘printVersion’? [-Wimplicit-function-declaration]
whichVersion( bio_err, INFO );
^~~~~~~~~~~~
printVersion
sv.c:330:25: warning: format not a string literal and no format arguments [-Wformat-security]
BIO_printf(bio_err,*pp);
^~~~~~~~~~
sv.c:378:17: warning: implicit declaration of function ‘load_engine’ [-Wimplicit-function-declaration]
e = load_engine (engine, pre_cmds, post_cmds, bio_err);
^~~~~~~~~~~
sv.c:378:15: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
e = load_engine (engine, pre_cmds, post_cmds, bio_err);
^
sv.c:445:13: warning: implicit declaration of function ‘do_sign’; did you mean ‘DSA_sign’? [-Wimplicit-function-declaration]
do_sign (verbose, bio_out, bio_err,
^~~~~~~
DSA_sign
sv.c:451:17: warning: implicit declaration of function ‘do_verify’; did you mean ‘DSA_verify’? [-Wimplicit-function-declaration]
do_verify (verbose, bio_out, bio_err,
^~~~~~~~~
DSA_verify
sv.c:461:13: warning: implicit declaration of function ‘do_encrypt’; did you mean ‘PKCS7_encrypt’? [-Wimplicit-function-declaration]
do_encrypt (verbose, bio_out, bio_err,
^~~~~~~~~~
PKCS7_encrypt
sv.c:465:13: warning: implicit declaration of function ‘do_decrypt’; did you mean ‘PKCS7_decrypt’? [-Wimplicit-function-declaration]
do_decrypt (verbose, bio_out, bio_err,
^~~~~~~~~~
PKCS7_decrypt
mv -f .deps/sv.Tpo .deps/sv.Po
gcc -DHAVE_CONFIG_H -I. -I../../include/openca -I../../include -g -O2 -fstack-check -maccumulate-outgoing-args -MT tools.o -MD -MP -MF .deps/tools.Tpo -c -o tools.o tools.c
mv -f .deps/tools.Tpo .deps/tools.Po
gcc -DHAVE_CONFIG_H -I. -I../../include/openca -I../../include -g -O2 -fstack-check -maccumulate-outgoing-args -MT callback.o -MD -MP -MF .deps/callback.Tpo -c -o callback.o callback.c
callback.c: In function ‘verify_callback’:
callback.c:108:20: error: dereferencing pointer to incomplete type ‘X509_STORE_CTX {aka struct x509_store_ctx_st}’
switch (ctx->error) {
^~
Makefile:368: recipe for target 'callback.o' failed
make[1]: *** [callback.o] Error 1
make[1]: Leaving directory '/home/rawan/Desktop/projet_OpenCA/openca-tools-1.3.1/src/sv'
Makefile:421: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1

@pdolinic
Copy link

pdolinic commented Sep 7, 2021

#2 Same issue as here, looking for a fix.

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