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

Install error! #46

Open
ghost opened this issue Jul 11, 2017 · 4 comments
Open

Install error! #46

ghost opened this issue Jul 11, 2017 · 4 comments

Comments

@ghost
Copy link

ghost commented Jul 11, 2017

Hi,
I got errors when installing this packge as fallow:

github.com/zubairhamed/canopus

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))
^
app/gopath/src/github.com/zubairhamed/canopus/openssl/include/openssl/bio.h:687:2: error: expected declaration specifiers before ';' token
};

My OS is
Linux version 4.4.0-83-generic (buildd@lgw01-29) (gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.4) ) #106-Ubuntu SMP Mon Jun 26 17:54:43 UTC 2017
and the golang is
go version go1.7 linux/amd64

Need your help,Thanks a lot.

@ghost
Copy link
Author

ghost commented Jul 11, 2017

I resolved the problem as this:
1.cd canopus/openssl
2../config && make

but got new errors when I installing betwixt:

github.com/zubairhamed/betwixt

app/gopath/src/github.com/zubairhamed/betwixt/client.go:12: too many arguments in call to canopus.NewServer
app/gopath/src/github.com/zubairhamed/betwixt/client.go:50: too many arguments in call to canopus.NewRequest
app/gopath/src/github.com/zubairhamed/betwixt/client.go:54: c.coapServer.Send undefined (type canopus.CoapServer has no field or method Send)
app/gopath/src/github.com/zubairhamed/betwixt/client.go:86: too many arguments in call to canopus.NewRequest
app/gopath/src/github.com/zubairhamed/betwixt/client.go:89: c.coapServer.Send undefined (type canopus.CoapServer has no field or method Send)
app/gopath/src/github.com/zubairhamed/betwixt/client.go:184: undefined: CoapResponse
app/gopath/src/github.com/zubairhamed/betwixt/client.go:215: undefined: CoapResponse
app/gopath/src/github.com/zubairhamed/betwixt/client.go:262: undefined: CoapResponse
app/gopath/src/github.com/zubairhamed/betwixt/client.go:294: undefined: CoapResponse
app/gopath/src/github.com/zubairhamed/betwixt/client.go:336: undefined: CoapResponse
app/gopath/src/github.com/zubairhamed/betwixt/client.go:89: too many errors

@wukaishanda08
Copy link

I met the same same problem as yours. "app/gopath/src/github.com/zubairhamed/betwixt/client.go:12: too many arguments in call to canopus.NewServer"
Have you solved the problem?

@vgraveto
Copy link

vgraveto commented Sep 3, 2017

Hello,

I also have the same problem when installing:
go get github.com/zubairhamed/betwixt

github.com/zubairhamed/betwixt

betwixt/client.go:12: too many arguments in call to canopus.NewServer
have (string, string, string)
want ()
betwixt/client.go:50: too many arguments in call to canopus.NewRequest
have (number, canopus.CoapCode, uint16)
want (uint8, canopus.CoapCode)
betwixt/client.go:54: c.coapServer.Send undefined (type canopus.CoapServer has no field or method Send)
betwixt/client.go:86: too many arguments in call to canopus.NewRequest
have (number, canopus.CoapCode, uint16)
want (uint8, canopus.CoapCode)
betwixt/client.go:89: c.coapServer.Send undefined (type canopus.CoapServer has no field or method Send)
betwixt/client.go:184: undefined: CoapResponse
betwixt/client.go:215: undefined: CoapResponse
betwixt/client.go:262: undefined: CoapResponse
betwixt/client.go:294: undefined: CoapResponse
betwixt/client.go:336: undefined: CoapResponse
betwixt/client.go:89: too many errors

Help needed!!

Thanks,
Vitor Graveto

@Rafa2212
Copy link

Hello sir @zubairhamed and sorry for contacting you here, but i haven't found any other way. I've seen a video on youtube with you running a Parsec version on iPad and I was really looking for that for a long time now. I'll be so much grateful if you would post it here on github, or send me an email at [email protected] on how to do it. Thank you so much for your time.

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

3 participants