-
Notifications
You must be signed in to change notification settings - Fork 7
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
Comments
How did you compiled the program? Can you give me the name of operating system? |
Hi,
OS: MacOSX EI Capitan
Darwin kimatoMacBook-Pro-3.local 15.6.0 Darwin Kernel Version 15.6.0: Thu Jun 23 18:25:34 PDT 2016; root:xnu-3248.60.10~1/RELEASE_X86_64 x86_64
% cat makefile
emitter.exe:emitter.c
gcc -g -o emitter.exe emitter.c \
-I /usr/local/Cellar/libwebsockets/2.2.1/include -I /usr/local/Cellar/json-c/0.12/include \
-I /usr/local/Cellar/openssl/1.0.2k/include \
-L /usr/local/Cellar/libwebsockets/2.2.1/lib -L /usr/local/Cellar/json-c/0.12/lib \
-L /usr/local/Cellar/libev/4.24/lib \
-L /usr/local/Cellar/libuv/1.11.0/lib \
-ljson-c -lwebsockets -lssl -lev -luv \
-lpthread \
clean:
rm *.exe *.o
Best Regards,
Jody
… 在 2017年5月4日,下午4:54,sachin shinde ***@***.***> 写道:
How did you compiled the program? Can you give me the name of operating system?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#2 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AYdn7wU7k830EahNk-hosW9fcGxYQ7Csks5r2ZJegaJpZM4NPFy7>.
|
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. |
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!
The text was updated successfully, but these errors were encountered: