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

Bus error issue about socketcluster-client-C #2

Open
jodyhuang opened this issue May 3, 2017 · 3 comments
Open

Bus error issue about socketcluster-client-C #2

jodyhuang opened this issue May 3, 2017 · 3 comments

Comments

@jodyhuang
Copy link

I use socketcluster-client-C, after compiled the emitter.c and run it, but i got
some errors as follows:

kimatoMacBook-Pro-3% ./emitter
[2017/05/03 15:18:18:3930] NOTICE: Initial logging level 7
[2017/05/03 15:18:18:3931] NOTICE: Libwebsockets version: 2.2.0 [email protected]
[2017/05/03 15:18:18:3931] NOTICE: IPV6 not compiled in
[2017/05/03 15:18:18:3931] NOTICE: libev support not compiled in
[2017/05/03 15:18:18:3931] NOTICE: libuv support not compiled in
[2017/05/03 15:18:18:3931] NOTICE: Threads: 1 each 256 fds
[2017/05/03 15:18:18:3931] NOTICE: mem: platform fd map: 2048 bytes
[2017/05/03 15:18:18:3932] NOTICE: Compiled with OpenSSL support
[2017/05/03 15:18:18:3932] NOTICE: SSL disabled: no LWS_SERVER_OPTION_DO_SSL_GLOBAL_INIT
[2017/05/03 15:18:18:3932] NOTICE: Creating Vhost 'default' port -1, 2 protocols, IPv6 off
[2017/05/03 15:18:18:3932] NOTICE: mem: per-conn: 568 bytes + protocol rx buf
[2017/05/03 15:18:18:3932] NOTICE: canonical_hostname = kimatoMacBook-Pro-3.local
[Main] context created.
zsh: bus error ./emitter

Can you give me some suggestions, thanks!

@sacOO7
Copy link
Owner

sacOO7 commented May 4, 2017

How did you compiled the program? Can you give me the name of operating system?

@jodyhuang
Copy link
Author

jodyhuang commented May 4, 2017 via email

@sacOO7
Copy link
Owner

sacOO7 commented May 4, 2017

Use this command to compile the program

gcc emitter.c -o emitter -lwebsockets -l json -lpthread.

In examples directory, I have added commands to compile program at the end of each source file. Take a look at them. Make sure you have stared server correctly. May I know your server end_point?

Make sure libwebsockets and json-c is installed correctly, based on installation tutorials provided on their official github repo.

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

2 participants