go get github.com/zubairhamed/betwixt
报错信息:
could not determine kind of name for C.BIO
could not determine kind of name for C.BIO_get_data
could not determine kind of name for C.BIO_get_shutdown
could not determine kind of name for C.BIO_go
could not determine kind of name for C.BIO_go_session
could not determine kind of name for C.BIO_new
could not determine kind of name for C.BIO_set_data
could not determine kind of name for C.BIO_set_flags
could not determine kind of name for C.BIO_set_init
could not determine kind of name for C.CRYPTO_free
could not determine kind of name for C.CString
could not determine kind of name for C.DTLSv1_2_client_method
could not determine kind of name for C.DTLSv1_2_server_method
could not determine kind of name for C.DTLSv1_listen
could not determine kind of name for C.ERR_TXT_MALLOCED
could not determine kind of name for C.ERR_TXT_STRING
could not determine kind of name for C.ERR_clear_error
could not determine kind of name for C.ERR_func_error_string
could not determine kind of name for C.ERR_get_error
could not determine kind of name for C.ERR_get_error_line_data
could not determine kind of name for C.ERR_lib_error_string
could not determine kind of name for C.ERR_peek_error
could not determine kind of name for C.ERR_reason_error_string
could not determine kind of name for C.GoString
could not determine kind of name for C.SSL
could not determine kind of name for C.SSL_CTX
could not determine kind of name for C.SSL_CTX_new
could not determine kind of name for C.SSL_CTX_set_cipher_list
could not determine kind of name for C.SSL_connect
could not determine kind of name for C.SSL_free
could not determine kind of name for C.SSL_get_error
could not determine kind of name for C.SSL_get_rbio
could not determine kind of name for C.SSL_new
could not determine kind of name for C.SSL_read
could not determine kind of name for C.SSL_set_accept_state
could not determine kind of name for C.SSL_set_bio
could not determine kind of name for C.SSL_shutdown
could not determine kind of name for C.SSL_write
could not determine kind of name for C.char
could not determine kind of name for C.get_errno
could not determine kind of name for C.init_ctx
could not determine kind of name for C.init_lib
could not determine kind of name for C.init_server_ctx
could not determine kind of name for C.init_session_bio_method
could not determine kind of name for C.int
could not determine kind of name for C.setGoClientId
could not determine kind of name for C.setGoSessionId
could not determine kind of name for C.set_cookie_option
could not determine kind of name for C.set_errno
could not determine kind of name for C.set_proto_1_2
could not determine kind of name for C.set_psk_callback
could not determine kind of name for C.uchar
could not determine kind of name for C.uint
could not determine kind of name for C.ulong
gcc errors for preamble:
In file included from
app/gopath/src/github.com/zubairhamed/canopus/openssl/include/openssl/err.h:21:0,
from app/gopath/src/github.com/zubairhamed/canopus/dtls.go:9:
app/gopath/src/github.com/zubairhamed/canopus/openssl/include/openssl/bio.h: In function 'DEPRECATEDIN_1_1_0':
app/gopath/src/github.com/zubairhamed/canopus/openssl/include/openssl/bio.h:680:1: error: expected declaration specifiers before 'DEPRECATEDIN_1_1_0'
DEPRECATEDIN_1_1_0(int BIO_get_port(const char *str, unsigned short *port_ptr))
^
。。。。。。
有疑问加站长微信联系(非本文作者)