shijingyao1990 / rfc5766-turn-server

Automatically exported from code.google.com/p/rfc5766-turn-server
0 stars 0 forks source link

"Make" and "Make Install" for 2.6.6.1 Turnserver Fails with an Error 1 output... #67

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Running the "make" command then, 
2.Running the "make install" command
3.

What is the expected output? What do you see instead?
As this is my first time trying to install the Turnserver, 
not sure what I should see.  When I check the /bin directory,
only turnutils for rfc5769check, stunclient and uclient appear.
This is what I get after running "make":

[root@localhost turnserver-2.6.6.1]# make
mkdir -p bin
rm -rf bin/turnadmin
cc  -Wall -Wno-deprecated-declarations -Wextra -Wformat-security 
-Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith 
-Wcast-qual -Wno-write-strings -I/usr/local/include -I/usr/local/include/ 
-I/usr/local/include  -DTURN_HAS_DAEMON     -DTURN_NO_TLS 
-DINSTALL_PREFIX=/usr/local -Isrc -Isrc/apps/common -Isrc/server -Isrc/client 
-Isrc/client++ -I/usr/local/include/ -I/usr/local/include/  
-I/usr/local/mysql/include -I/usr/local/include/mysql/ 
-I/usr/local/mysql/include -I/usr/local/include/mysql/ -I/usr/mysql/include 
-I/usr/include/mysql/ -DTURN_NO_PQ  -DTURN_NO_HIREDIS 
src/apps/relay/ns_ioalib_engine_impl.c src/apps/relay/turn_ports.c -Ilib 
src/apps/relay/mainrelay.c src/apps/relay/userdb.c 
src/apps/relay/tls_listener.c src/apps/relay/dtls_listener.c 
src/apps/common/hiredis_libevent2.c src/apps/common/apputils.c 
src/apps/common/ns_turn_utils.c src/apps/common/stun_buffer.c 
src/client/ns_turn_ioaddr.c src/client/ns_turn_msg_addr.c 
src/client/ns_turn_msg.c  src/server/ns_turn_allocation.c 
src/server/ns_turn_maps_rtcp.c src/server/ns_turn_maps.c 
src/server/ns_turn_server.c -o bin/turnserver -L/usr/local/lib/ 
-L/usr/local/lib/ -lnsl -ldl -lrt -lcrypto -lssl -levent_core -levent_extra 
-levent_pthreads  -L/usr/lib/mysql -lmysqlclient -L/usr/local/lib/ 
-L/usr/local/lib/ -lnsl -ldl -lrt -lcrypto -lssl -levent_core -levent_extra 
-levent_pthreads  -Wl,-rpath,/usr/local/lib/ -Wl,-rpath,/usr/local/lib/ 
-Wl,-rpath,/usr/lib/pgsql -Wl,-rpath,/usr/lib/mysql -Wl,-rpath,/usr/local/lib 
src/apps/relay/ns_ioalib_engine_impl.c: In function ‘socket_input_worker’:
src/apps/relay/ns_ioalib_engine_impl.c:1946: warning: implicit declaration of 
function ‘bufferevent_openssl_socket_new’
src/apps/relay/ns_ioalib_engine_impl.c:1946: warning: nested extern declaration 
of ‘bufferevent_openssl_socket_new’
src/apps/relay/ns_ioalib_engine_impl.c:1949: error: 
‘BUFFEREVENT_SSL_ACCEPTING’ undeclared (first use in this function)
src/apps/relay/ns_ioalib_engine_impl.c:1949: error: (Each undeclared identifier 
is reported only once
src/apps/relay/ns_ioalib_engine_impl.c:1949: error: for each function it 
appears in.)
make: *** [bin/turnserver] Error 1

What version of the product are you using? On what operating system?
2.6.6.1 on CentOS 6.4 - 2.6.32-358.6.2.el6.i686 #1 SMP on a 64-bit processor.

Please provide any additional information below.
Trying to test some VoIP SIP softclients against a TURN Server to get
familiar with ICE/TURN functionality.

Original issue reported on code.google.com by dhreamch...@gmail.com on 1 Nov 2013 at 5:11

GoogleCodeExporter commented 8 years ago
You did not install libevent2 correctly. You are either using libevent1, or you 
did not install openssl properly before libevent2 compilation. After the 
installation, you must have libevent_openssl.* libraries compiled. The error 
that you see is because that libevent2/openssl "connection" library has not 
been compiled.

Clean the system, and then:

1) Install openssl
2) Compile and install libevent2
3) Run configure script
4) Run make

n the next build, we will have a dedicated CentOS 6 rpm for the turnserver.

Original comment by mom040...@gmail.com on 1 Nov 2013 at 5:56

GoogleCodeExporter commented 8 years ago
Greetings Turnserver devs...a million thanks for the prompt reply.  I
followed your instructions but now
I get the following results: (also, I can run the ./scripts/rfc5769.sh but
not the others and great news
to here about the CentOS build...any ETA on that release?) ..

[root@localhost adminuser]# cd turnserver-2.6.6.1
[root@localhost turnserver-2.6.6.1]# ./configure
more is /bin/more
install is /usr/bin/install
pkill is /usr/bin/pkill
Use TMP dir /var/tmp
Compiler: cc
Do not use -lsocket
Do not use -lwldap32
Do not use -lwldap64
Do not use -lintl
Sockets code is fine: no sin_len field present
relay threads can be used... may be...
Crypto SSL lib found.
SSL lib found.
Libevent2 development found.
Libevent2 runtime found.
Libevent2 openssl found.
Libevent2 pthreads found.

POSTGRESQL DEVELOPMENT LIBRARY (libpq.a) AND/OR HEADER (libpq-fe.h)
    ARE NOT INSTALLED PROPERLY ON THIS SYSTEM.
    THAT'S OK BUT THE TURN SERVER IS BUILDING WITHOUT POSTGRESQL DATABASE
SUPPORT.

MySQL found.

HIREDIS DEVELOPMENT LIBRARY (libhiredis.*) AND/OR HEADERS (hiredis/*.h)
    ARE NOT INSTALLED PROPERLY ON THIS SYSTEM.
    THAT'S OK BUT THE TURN SERVER IS BUILDING WITHOUT REDIS SUPPORT.

PREFIX=/usr/local OSLIBS= -L/usr/local/lib/ -L/usr/local/lib/ -lnsl -ldl
-lrt -lcrypto -lssl -levent_core -levent_extra -levent_openssl
-levent_pthreads  -Wl,-rpath,/usr/local/lib/ -Wl,-rpath,/usr/local/lib/
-Wl,-rpath,/usr/lib/pgsql -Wl,-rpath,/usr/lib/mysql
-Wl,-rpath,/usr/local/lib DBLIBS=  -L/usr/local/lib/ -L/usr/local/lib/
-lnsl -ldl -lrt -lcrypto -lssl -levent_core -levent_extra -levent_openssl
-levent_pthreads  -L/usr/lib/mysql -lmysqlclient OSCFLAGS= -Wall
-Wno-deprecated-declarations -Wextra -Wformat-security -Wnested-externs
-Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Wcast-qual
-Wno-write-strings -I/usr/local/include -I/usr/local/include/
-I/usr/local/include  -DTURN_HAS_DAEMON      -DINSTALL_PREFIX=/usr/local
DBCFLAGS= -I/usr/local/mysql/include -I/usr/local/include/mysql/
-I/usr/local/mysql/include -I/usr/local/include/mysql/ -I/usr/mysql/include
-I/usr/include/mysql/
[root@localhost turnserver-2.6.6.1]# make
mkdir -p lib
ar -r lib/libturnclient.a build/obj/ns_turn_ioaddr.o
build/obj/ns_turn_msg_addr.o build/obj/ns_turn_msg.o
pwd
/home/adminuser/turnserver-2.6.6.1
mkdir -p bin
cc  -Wall -Wno-deprecated-declarations -Wextra -Wformat-security
-Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith
-Wcast-qual -Wno-write-strings -I/usr/local/include -I/usr/local/include/
-I/usr/local/include  -DTURN_HAS_DAEMON      -DINSTALL_PREFIX=/usr/local
-Isrc -Isrc/apps/common -Isrc/server -Isrc/client -Isrc/client++
-I/usr/local/include/ -I/usr/local/include/  src/apps/stunclient/stunclient.c
src/apps/common/apputils.c src/apps/common/ns_turn_utils.c
src/apps/common/stun_buffer.c -o bin/turnutils_stunclient -Llib
-lturnclient -Llib -L/usr/local/lib/ -L/usr/local/lib/ -lnsl -ldl -lrt
-lcrypto -lssl -levent_core -levent_extra -levent_openssl -levent_pthreads
-Wl,-rpath,/usr/local/lib/ -Wl,-rpath,/usr/local/lib/
-Wl,-rpath,/usr/lib/pgsql -Wl,-rpath,/usr/lib/mysql
-Wl,-rpath,/usr/local/lib
pwd
/home/adminuser/turnserver-2.6.6.1
mkdir -p bin
cc  -Wall -Wno-deprecated-declarations -Wextra -Wformat-security
-Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith
-Wcast-qual -Wno-write-strings -I/usr/local/include -I/usr/local/include/
-I/usr/local/include  -DTURN_HAS_DAEMON      -DINSTALL_PREFIX=/usr/local
-Isrc -Isrc/apps/common -Isrc/server -Isrc/client -Isrc/client++
-I/usr/local/include/ -I/usr/local/include/  src/apps/rfc5769/rfc5769check.c
src/apps/common/apputils.c src/apps/common/ns_turn_utils.c
src/apps/common/stun_buffer.c -o bin/turnutils_rfc5769check -Llib
-lturnclient -Llib -L/usr/local/lib/ -L/usr/local/lib/ -lnsl -ldl -lrt
-lcrypto -lssl -levent_core -levent_extra -levent_openssl -levent_pthreads
-Wl,-rpath,/usr/local/lib/ -Wl,-rpath,/usr/local/lib/
-Wl,-rpath,/usr/lib/pgsql -Wl,-rpath,/usr/lib/mysql
-Wl,-rpath,/usr/local/lib
mkdir -p bin
cc  -Wall -Wno-deprecated-declarations -Wextra -Wformat-security
-Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith
-Wcast-qual -Wno-write-strings -I/usr/local/include -I/usr/local/include/
-I/usr/local/include  -DTURN_HAS_DAEMON      -DINSTALL_PREFIX=/usr/local
-Isrc -Isrc/apps/common -Isrc/server -Isrc/client -Isrc/client++
-I/usr/local/include/ -I/usr/local/include/  src/apps/uclient/uclient.c
src/apps/uclient/startuclient.c src/apps/uclient/mainuclient.c
src/apps/common/apputils.c src/apps/common/ns_turn_utils.c
src/apps/common/stun_buffer.c -o bin/turnutils_uclient -Llib -lturnclient
-Llib -L/usr/local/lib/ -L/usr/local/lib/ -lnsl -ldl -lrt -lcrypto -lssl
-levent_core -levent_extra -levent_openssl -levent_pthreads
-Wl,-rpath,/usr/local/lib/ -Wl,-rpath,/usr/local/lib/
-Wl,-rpath,/usr/lib/pgsql -Wl,-rpath,/usr/lib/mysql
-Wl,-rpath,/usr/local/lib
/tmp/ccEtqie2.o: In function `main':
mainuclient.c:(.text+0xab5): undefined reference to `TLSv1_1_client_method'
mainuclient.c:(.text+0xafb): undefined reference to `TLSv1_2_client_method'
collect2: ld returned 1 exit status
make: *** [bin/turnutils_uclient] Error 1

Original comment by dhreamch...@gmail.com on 1 Nov 2013 at 7:01

GoogleCodeExporter commented 8 years ago
Something is wrong in the system setup (particularly, openssl). We are using 
CentOS all the time and we do not see such problems.

The CentOS package will be ready in a week or two.

Original comment by mom040...@gmail.com on 1 Nov 2013 at 7:08