求助,安装第三方包报错:gcc errors for preamble

happyjinyalei · 2017-07-11 03:55:43 · 1462 次点击 · 大约8小时之前 开始浏览    置顶
这是一个创建于 2017-07-11 03:55:43 的主题,其中的信息可能已经有所发展或是发生改变。

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)) ^

。。。。。。


有疑问加站长微信联系(非本文作者)

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

1462 次点击  
加入收藏 微博
1 回复  |  直到 2017-07-11 04:07:05
channel
channel · #1 · 8年之前

这个库用了 cgo,感觉缺少 c 的一些库依赖……

添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传