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

[build error] _example/encrypto> go build results in sqlite3-binding.c:18401:12: error: storage size of ‘hctx’ isn’t known #4

Open
ghost opened this issue Feb 8, 2017 · 2 comments

Comments

@ghost
Copy link

ghost commented Feb 8, 2017

_example/encrypto> go build

github.com/xeodou/go-sqlcipher

../../sqlite3-binding.c: In function ‘sqlcipher_openssl_hmac’:
../../sqlite3-binding.c:18401:12: error: storage size of ‘hctx’ isn’t known
HMAC_CTX hctx;
^~~~
../../sqlite3-binding.c:18403:3: warning: implicit declaration of function ‘HMAC_CTX_init’ [-Wimplicit-function-declaration]
HMAC_CTX_init(&hctx);
^~~~~~~~~~~~~
../../sqlite3-binding.c:18408:3: warning: implicit declaration of function ‘HMAC_CTX_cleanup’ [-Wimplicit-function-declaration]
HMAC_CTX_cleanup(&hctx);
^~~~~~~~~~~~~~~~
../../sqlite3-binding.c: In function ‘sqlcipher_openssl_cipher’:
../../sqlite3-binding.c:18418:18: error: storage size of ‘ectx’ isn’t known
EVP_CIPHER_CTX ectx;
^~~~

@ghost
Copy link
Author

ghost commented Feb 9, 2017

got similar errors while building github.com/sqlcipher/sqlcipher, so now I don't know where this error is:
sqlite3.c:18401:12: error: storage size of ‘hctx’ isn’t known
HMAC_CTX hctx;
^~~~
sqlite3.c:18403:3: warning: implicit declaration of function ‘HMAC_CTX_init’ [-Wimplicit-function-declaration]
HMAC_CTX_init(&hctx);
^~~~~~~~~~~~~
sqlite3.c:18408:3: warning: implicit declaration of function ‘HMAC_CTX_cleanup’ [-Wimplicit-function-declaration]
HMAC_CTX_cleanup(&hctx);
^~~~~~~~~~~~~~~~
sqlite3.c: In function ‘sqlcipher_openssl_cipher’:
sqlite3.c:18418:18: error: storage size of ‘ectx’ isn’t known
EVP_CIPHER_CTX ectx;
^~~~

@ghost
Copy link
Author

ghost commented Feb 9, 2017

created issue ticket sqlcipher/sqlcipher#197

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

0 participants