Project

General

Profile

[Solved] mod_websocket installation issues

Added by zohaib09 about 5 years ago

Hello

I am strugling to install websocket in lighttpd (Linux Debian 9), I am following this link

https://github.com/nori0428/mod_websocket/wiki/for-Ubuntu-Users

Facing following errors

ERROR 1
*Command# ./configure --with-websocket=[ALL, IETF-00, RFC-6455]
*configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type: IETF-00,
configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type: RFC-6455]
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking build system type... Invalid configuration `IETF-00,': machine `IETF' not recognized
configure: error: /bin/bash m4/config.sub IETF-00, failed

ERROR 2

Command# make install
Making install in .
make1: se entra en el directorio '/usr/lib/lighttpd/mod_websocket'
(cd ./contrib/gtest-1.7.0; make)
make2: se entra en el directorio '/usr/lib/lighttpd/mod_websocket/contrib/gtest-1.7.0'
/bin/bash ./libtool --tag=CXX --mode=link g++ -pthread -DGTEST_HAS_PTHREAD=1 -g -O2 -o lib/libgtest.la -rpath /usr/local/lib src/gtest-all.lo
libtool: link: g++ -fPIC -DPIC -shared -nostdlib /usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/6/crtbeginS.o src/.libs/gtest-all.o -L/usr/lib/gcc/x86_64-linux-gnu/6 -L/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/6/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/6/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-linux-gnu/6/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/crtn.o -pthread -g -O2 -pthread -Wl,-soname -Wl,libgtest.so.0 -o lib/.libs/libgtest.so.0.0.0
/usr/bin/ld: src/.libs/gtest-all.o: relocation R_X86_64_PC32 against symbol `_ZN7testing8internal6IsTrueEb' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
Makefile:923: fallo en las instrucciones para el objetivo 'lib/libgtest.la'
make2: * [lib/libgtest.la] Error 1
make2: se sale del directorio '/usr/lib/lighttpd/mod_websocket/contrib/gtest-1.7.0'
Makefile:806: fallo en las instrucciones para el objetivo 'all-local'
make1: [all-local] Error 2
make1: se sale del directorio '/usr/lib/lighttpd/mod_websocket'
Makefile:390: fallo en las instrucciones para el objetivo 'install-recursive'
make: ** [install-recursive] Error 1

Need some urgent help


Replies (4)

RE: mod_websocket installation issues - Added by gstrauss about 5 years ago

Back in Nov 2017, I posted https://github.com/nori0428/mod_websocket/issues/54

nori0428/mod_websocket is obsolete.

lighttpd 1.4.46 and later support websockets and can be cross-compiled.

https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_ModWStunnel provides a websocket tunnel through which client and a backend server can tunnel another protocol.
https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_ModProxy proxies to a backend websocket server
https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_ModCGI can run a backend CGI to act as websocket server for a request

RE: [Solved] mod_websocket installation issues - Added by gstrauss about 5 years ago

*Command# ./configure --with-websocket=[ALL, IETF-00, RFC-6455]

To be blunt, you need some remedial help in the basics of command line syntax if that is the command that you cut-n-paste and expected to work.

RE: [Solved] mod_websocket installation issues - Added by zohaib09 about 5 years ago

Thank you for your reply..

Can you please advice step by step procedure to configure websocket through above mentioned modules?\

RE: [Solved] mod_websocket installation issues - Added by zohaib09 about 5 years ago

Is it necessary to have vnc server to use websocket via ModWStunnel?

    (1-4/4)