Closed GoogleCodeExporter closed 9 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
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
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
Original issue reported on code.google.com by
dhreamch...@gmail.com
on 1 Nov 2013 at 5:11