Open
Description
Hello,
First of all, I'm very new to go, so maybe that is my actual problem... But I can't get the examples to run.
The closer I got was by following the steps below:
$ export GOPATH=/home/bruno/Dropbox/coap-apps/go
$ cd /home/bruno/Dropbox/coap-apps/go/src/
$ git clone https://github.com/zubairhamed/canopus zubairhamed/canopus
$ ls
dustin ibm-security-innovation zubairhamed
$ cd zubairhamed/canopus
$ git submodule update --init --recursive
$ cd openssl
$ ./config && make
$ /usr/lib/go-1.10/bin/go run examples/simple/server.go
# github.com/zubairhamed/canopus
In file included from _cgo_export.c:3:0:
./dtls.go: In function ‘init_session_bio_method’:
./dtls.go:63:43: warning: passing argument 2 of ‘BIO_meth_set_write’ from incompatible pointer type
BIO_meth_set_write(go_session_bio_method,write_wrapper);
(...)
cgo-gcc-prolog: In function ‘_cgo_81a35f110302_Cfunc_DTLSv1_2_server_method’:
cgo-gcc-prolog:195:2: warning: ‘DTLSv1_2_server_method’ is deprecated (declared at ./openssl/include/openssl/ssl.h:1642) [-Wdeprecated-declarations]
cgo-gcc-prolog: At top level:
cc1: warning: unrecognized command line option "-Wno-incompatible-pointer-types"
/tmp/go-build995684464/b001/exe/server: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory
exit status 127
So I've tried the following, but still with no success:
$ export LD_LIBRARY_PATH=./openssl/
$ /usr/lib/go-1.10/bin/go get github.com/zubairhamed/canopus
# github.com/zubairhamed/canopus
In file included from _cgo_export.c:3:0:
./dtls.go: In function ‘init_session_bio_method’:
./dtls.go:63:43: warning: passing argument 2 of ‘BIO_meth_set_write’ from incompatible pointer type
BIO_meth_set_write(go_session_bio_method,write_wrapper);
(...)
cgo-gcc-prolog: In function ‘_cgo_81a35f110302_Cfunc_DTLSv1_2_server_method’:
cgo-gcc-prolog:195:2: warning: ‘DTLSv1_2_server_method’ is deprecated (declared at ./openssl/include/openssl/ssl.h:1642) [-Wdeprecated-declarations]
cgo-gcc-prolog: At top level:
cc1: warning: unrecognized command line option "-Wno-incompatible-pointer-types"
What should I do? By the way, I don't even want to run the DTLS-enabled examples, just the plain CoAP ones will do...
Thanks!
Bruno Melo.
Metadata
Assignees
Labels
No labels
Activity