-
Notifications
You must be signed in to change notification settings - Fork 1
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
Making demo7 fails #10
Comments
After working with marcos, seems like a slightly new error
|
We are experimenting a conflict between the libwebsockets from Ubuntu and the lastest libwebsocket used in chapel.
sudo apt purge libwebsockets-dev
cd examples/demo7/server
make run You should have this output: In file included from /tmp/chpl-marcos-3236.deleteme/_main.c:49:0:
/tmp/chpl-marcos-3236.deleteme/ChrestWebsockets.c: In function ‘Publish_chpl’:
/tmp/chpl-marcos-3236.deleteme/ChrestWebsockets.c:983:17: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
call_tmp_chpl22 = lws_get_protocol((coerce_tmp_chpl9)->wsi_chpl);
^
/tmp/chpl-marcos-3236.deleteme/ChrestWebsockets.c: In function ‘chest_pubsub_websocket_callback’:
/tmp/chpl-marcos-3236.deleteme/ChrestWebsockets.c:1846:16: warning: assignment discards ‘const’ qualifier from pointertarget type [-Wdiscarded-qualifiers]
call_tmp_chpl9 = lws_get_protocol(wsi);
^
./bin/srv
(Server starting at , 127.0.0.1, :, 8080)
GET: Registering uri /test pattern ^/test$
[2018/04/30 16:22:26:2880] NOTICE: Creating Vhost 'default' port 8000, 2 protocols, IPv6 off It is a Warning. But the server runs without core dump. If it is running you can go to If after removing libwebsockets-dev with apt-get, you experiments errors like "libwebsockets not found", you should compile libwebsocket from sources: git clone https://github.com/warmcat/libwebsockets.git
cd libwebsockets
mkdir build
cd build
cmake ..
make
sudo make install |
I removed libwebsockets and rebuilt from source. Now I get
|
Try to compile libwebsockets from the sources. |
In
examples/demo7/server
I translated theMakefile
toso it would run on my system. I installed
libevent-dev
andlibwebsocket-dev' then did
make and gotLatest version of Chapel.
The text was updated successfully, but these errors were encountered: