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

Incompatible with openssl 1.1 #144

Open
kevin-matthew opened this issue Sep 14, 2020 · 0 comments
Open

Incompatible with openssl 1.1 #144

kevin-matthew opened this issue Sep 14, 2020 · 0 comments

Comments

@kevin-matthew
Copy link

Debian 10 had removed openssl 1.0 completely from its package repository in favor of openssl 1.1. I tried to compile it against 1.1 hoping there would be backward compatibility but there was not.

/usr/local/go/pkg/tool/linux_amd64/link: running gcc failed: exit status 1
/tmp/go-link-054955249/000021.o: In function `go_init_locks':
/home/kmarschke/go/src/github.com/spacemonkeygo/openssl/init_posix.go:31: undefined reference to `CRYPTO_num_locks'
/tmp/go-link-054955249/000031.o: In function `X_X509_add_ref':
/home/kmarschke/go/src/github.com/spacemonkeygo/openssl/shim.c:295: undefined reference to `CRYPTO_add_lock'
/tmp/go-link-054955249/000031.o: In function `X_HMAC_CTX_new':
/home/kmarschke/go/src/github.com/spacemonkeygo/openssl/shim.c:329: undefined reference to `HMAC_CTX_init'
/tmp/go-link-054955249/000031.o: In function `X_HMAC_CTX_free':
/home/kmarschke/go/src/github.com/spacemonkeygo/openssl/shim.c:336: undefined reference to `HMAC_CTX_cleanup'
/tmp/go-link-054955249/000031.o: In function `X_shim_init':
/home/kmarschke/go/src/github.com/spacemonkeygo/openssl/shim.c:380: undefined reference to `SSL_load_error_strings'
/home/kmarschke/go/src/github.com/spacemonkeygo/openssl/shim.c:381: undefined reference to `SSL_library_init'
/home/kmarschke/go/src/github.com/spacemonkeygo/openssl/shim.c:382: undefined reference to `OPENSSL_add_all_algorithms_noconf'
/home/kmarschke/go/src/github.com/spacemonkeygo/openssl/shim.c:389: undefined reference to `CRYPTO_set_locking_callback'
/home/kmarschke/go/src/github.com/spacemonkeygo/openssl/shim.c:390: undefined reference to `CRYPTO_set_id_callback'
/tmp/go-link-054955249/000031.o: In function `X_EVP_MD_CTX_new':
/home/kmarschke/go/src/github.com/spacemonkeygo/openssl/shim.c:287: undefined reference to `EVP_MD_CTX_create'
/tmp/go-link-054955249/000031.o: In function `X_EVP_MD_CTX_free':
/home/kmarschke/go/src/github.com/spacemonkeygo/openssl/shim.c:291: undefined reference to `EVP_MD_CTX_destroy'
/tmp/go-link-054955249/000031.o: In function `X_EVP_dss':
/home/kmarschke/go/src/github.com/spacemonkeygo/openssl/shim.c:308: undefined reference to `EVP_dss'
/tmp/go-link-054955249/000031.o: In function `X_EVP_dss1':
/home/kmarschke/go/src/github.com/spacemonkeygo/openssl/shim.c:312: undefined reference to `EVP_dss1'
/tmp/go-link-054955249/000031.o: In function `X_EVP_sha':
/home/kmarschke/go/src/github.com/spacemonkeygo/openssl/shim.c:316: undefined reference to `EVP_sha'
/tmp/go-link-054955249/000031.o: In function `X_SSL_new_index':
/home/kmarschke/go/src/github.com/spacemonkeygo/openssl/shim.c:431: undefined reference to `SSL_get_ex_new_index'
/tmp/go-link-054955249/000031.o: In function `X_SSLv23_method':
/home/kmarschke/go/src/github.com/spacemonkeygo/openssl/shim.c:443: undefined reference to `SSLv23_method'
/tmp/go-link-054955249/000031.o: In function `X_SSLv3_method':
/home/kmarschke/go/src/github.com/spacemonkeygo/openssl/shim.c:448: undefined reference to `SSLv3_method'
/tmp/go-link-054955249/000031.o: In function `X_SSL_CTX_new_index':
/home/kmarschke/go/src/github.com/spacemonkeygo/openssl/shim.c:475: undefined reference to `SSL_CTX_get_ex_new_index'
/tmp/go-link-054955249/000031.o: In function `X_sk_X509_num':
/home/kmarschke/go/src/github.com/spacemonkeygo/openssl/shim.c:757: undefined reference to `sk_num'
/tmp/go-link-054955249/000031.o: In function `X_sk_X509_value':
/home/kmarschke/go/src/github.com/spacemonkeygo/openssl/shim.c:761: undefined reference to `sk_value'
collect2: error: ld returned 1 exit statu
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

1 participant