marcosArruda / rfc5766-turn-server

Automatically exported from code.google.com/p/rfc5766-turn-server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"Make" and "Make Install" for 3.2.3.95 Turnserver Fails with an Error 1 output

GoogleCodeExporter opened this issue · comments

What steps will reproduce the problem?
1.running the "./configure"
2.running the "make"
3.Running the "make install" command

What is the expected output? What do you see instead?
It is my second time to install the turn server.After I run the"make deinstall" 
and "make clean" command
 to uninstall the older version,I run configure script again and make.
This is what I get after running "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
/u/home/oracle/stun/turnserver-4.4.5.1
mkdir -p bin
cc  -g  -Wall -Wno-deprecated-declarations -Wextra -Wformat-security 
-Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith 
-Wcast-qual -I/usr/local/include -I/usr/local/include/ -I/usr/local/include  
-D_GNU_SOURCE -DTURN_HAS_DAEMON  
-DTURN_SCTP_INCLUDE="\"/usr/include/linux/sctp.h\""     
-DINSTALL_PREFIX=/usr/local -DTURNDB=/usr/local/var/db/turndb -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/ -L/usr/local/lib64/ 
-L/usr/local/lib64/ -lrt -lnsl -lresolv -lcrypto -lssl -levent_core 
-levent_extra -levent_openssl -levent_pthreads -lsqlite3  
-Wl,-rpath,/usr/local/lib/ -Wl,-rpath,/usr/local/lib/ 
-Wl,-rpath,/usr/local/lib64/ -Wl,-rpath,/usr/local/lib64/ 
-Wl,-rpath,/usr/lib64/pgsql -Wl,-rpath,/usr/lib/mysql 
-Wl,-rpath,/usr/lib64/mysql -Wl,-rpath,/usr/local/lib
In file included from /usr/include/linux/sctp.h:54,
                 from src/apps/common/apputils.c:60:
/usr/include/linux/in.h:26: error: redeclaration of enumerator ‘IPPROTO_IP’
/usr/include/netinet/in.h:33: error: previous definition of ‘IPPROTO_IP’ 
was here
/usr/include/linux/in.h:27: error: redeclaration of enumerator 
‘IPPROTO_ICMP’
/usr/include/netinet/in.h:37: error: previous definition of ‘IPPROTO_ICMP’ 
was here
/usr/include/linux/in.h:28: error: redeclaration of enumerator 
‘IPPROTO_IGMP’
/usr/include/netinet/in.h:39: error: previous definition of ‘IPPROTO_IGMP’ 
was here
/usr/include/linux/in.h:29: error: redeclaration of enumerator 
‘IPPROTO_IPIP’
/usr/include/netinet/in.h:41: error: previous definition of ‘IPPROTO_IPIP’ 
was here
/usr/include/linux/in.h:30: error: redeclaration of enumerator ‘IPPROTO_TCP’
/usr/include/netinet/in.h:43: error: previous definition of ‘IPPROTO_TCP’ 
was here
/usr/include/linux/in.h:31: error: redeclaration of enumerator ‘IPPROTO_EGP’
/usr/include/netinet/in.h:45: error: previous definition of ‘IPPROTO_EGP’ 
was here
/usr/include/linux/in.h:32: error: redeclaration of enumerator ‘IPPROTO_PUP’
/usr/include/netinet/in.h:47: error: previous definition of ‘IPPROTO_PUP’ 
was here
/usr/include/linux/in.h:33: error: redeclaration of enumerator ‘IPPROTO_UDP’
/usr/include/netinet/in.h:49: error: previous definition of ‘IPPROTO_UDP’ 
was here
/usr/include/linux/in.h:34: error: redeclaration of enumerator ‘IPPROTO_IDP’
/usr/include/netinet/in.h:51: error: previous definition of ‘IPPROTO_IDP’ 
was here
/usr/include/linux/in.h:36: error: redeclaration of enumerator 
‘IPPROTO_RSVP’
/usr/include/netinet/in.h:61: error: previous definition of ‘IPPROTO_RSVP’ 
was here
/usr/include/linux/in.h:37: error: redeclaration of enumerator ‘IPPROTO_GRE’
/usr/include/netinet/in.h:63: error: previous definition of ‘IPPROTO_GRE’ 
was here
/usr/include/linux/in.h:39: error: redeclaration of enumerator 
‘IPPROTO_IPV6’
/usr/include/netinet/in.h:55: error: previous definition of ‘IPPROTO_IPV6’ 
was here
/usr/include/linux/in.h:41: error: redeclaration of enumerator ‘IPPROTO_ESP’
/usr/include/netinet/in.h:65: error: previous definition of ‘IPPROTO_ESP’ 
was here
/usr/include/linux/in.h:42: error: redeclaration of enumerator ‘IPPROTO_AH’
/usr/include/netinet/in.h:67: error: previous definition of ‘IPPROTO_AH’ 
was here
/usr/include/linux/in.h:43: error: redeclaration of enumerator ‘IPPROTO_PIM’
/usr/include/netinet/in.h:79: error: previous definition of ‘IPPROTO_PIM’ 
was here
/usr/include/linux/in.h:45: error: redeclaration of enumerator 
‘IPPROTO_COMP’
/usr/include/netinet/in.h:81: error: previous definition of ‘IPPROTO_COMP’ 
was here
/usr/include/linux/in.h:46: error: redeclaration of enumerator 
‘IPPROTO_SCTP’
/usr/include/netinet/in.h:83: error: previous definition of ‘IPPROTO_SCTP’ 
was here
/usr/include/linux/in.h:48: error: redeclaration of enumerator ‘IPPROTO_RAW’
/usr/include/netinet/in.h:85: error: previous definition of ‘IPPROTO_RAW’ 
was here
/usr/include/linux/in.h:50: error: redeclaration of enumerator ‘IPPROTO_MAX’
/usr/include/netinet/in.h:88: error: previous definition of ‘IPPROTO_MAX’ 
was here
/usr/include/linux/in.h:54: error: redefinition of ‘struct in_addr’
/usr/include/linux/in.h:114: error: redefinition of ‘struct ip_mreq’
/usr/include/linux/in.h:120: error: redefinition of ‘struct ip_mreqn’
/usr/include/linux/in.h:126: error: redefinition of ‘struct ip_mreq_source’
/usr/include/linux/in.h:132: error: redefinition of ‘struct ip_msfilter’
/usr/include/linux/in.h:145: error: redefinition of ‘struct group_req’
/usr/include/linux/in.h:151: error: redefinition of ‘struct 
group_source_req’
/usr/include/linux/in.h:158: error: redefinition of ‘struct group_filter’
/usr/include/linux/in.h:171: error: redefinition of ‘struct in_pktinfo’
/usr/include/linux/in.h:179: error: redefinition of ‘struct sockaddr_in’
In file included from /usr/include/linux/sctp.h:55,
                 from src/apps/common/apputils.c:60:
/usr/include/linux/in6.h:31: error: redefinition of ‘struct in6_addr’
/usr/include/linux/in6.h:52: error: redefinition of ‘struct sockaddr_in6’
/usr/include/linux/in6.h:60: error: redefinition of ‘struct ipv6_mreq’
make: *** [bin/turnutils_stunclient] Error 1

What version of the product are you using? On what operating system?
turnserver-4.4.5.1.RedHat Enterprise Linux(RHEL)5.9

Please provide any additional information below

Original issue reported on code.google.com by ghwil...@gmail.com on 27 May 2015 at 3:31

This is a problem in the network headers in RedHat 5. We cannot fix it. You 
have two options: 
1) Upgrade to RedHat 6, or
2) Build with the following configure command:

     $ TURN_NO_SCTP=1 ./configure

that would turn off sctp, and your turnserver will compile successfully.


Original comment by mom040...@gmail.com on 27 May 2015 at 5:49

  • Changed state: WontFix
@mom040...@gmail.com.Thank you for your help,but I still have some issues when 
I build it.
This is what I get when I run the "make" after building with the  
"TURN_NO_SCTP=1 ./configure" command.
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
/u/home/oracle/stun/turnserver-4.4.5.1
mkdir -p bin
cc  -g  -Wall -Wno-deprecated-declarations -Wextra -Wformat-security 
-Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith 
-Wcast-qual -I/usr/local/include -I/usr/local/include/ -I/usr/local/include  
-D_GNU_SOURCE -DTURN_HAS_DAEMON -DTURN_NO_SCTP      -DINSTALL_PREFIX=/usr/local 
-DTURNDB=/usr/local/var/db/turndb -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/ -L/usr/local/lib64/ -L/usr/local/lib64/ -lrt -lnsl -lresolv 
-lcrypto -lssl -levent_core -levent_extra -levent_openssl -levent_pthreads 
-lsqlite3  -Wl,-rpath,/usr/local/lib/ -Wl,-rpath,/usr/local/lib/ 
-Wl,-rpath,/usr/local/lib64/ -Wl,-rpath,/usr/local/lib64/ 
-Wl,-rpath,/usr/lib64/pgsql -Wl,-rpath,/usr/lib/mysql 
-Wl,-rpath,/usr/lib64/mysql -Wl,-rpath,/usr/local/lib
/usr/local/lib64//libssl.a(s3_clnt.o): In function `ssl_do_client_cert_cb':
s3_clnt.c:(.text+0x71): undefined reference to `ENGINE_load_ssl_client_cert'
/usr/local/lib64//libssl.a(s3_clnt.o): In function 
`ssl3_send_client_certificate':
s3_clnt.c:(.text+0x4877): undefined reference to `ENGINE_load_ssl_client_cert'
/usr/local/lib64//libssl.a(d1_srvr.o): In function 
`dtls1_send_server_key_exchange':
d1_srvr.c:(.text+0xb65): undefined reference to `EVP_ecdsa'
/usr/local/lib64//libssl.a(ssl_sess.o): In function 
`SSL_CTX_set_client_cert_engine':
ssl_sess.c:(.text+0x2e4): undefined reference to 
`ENGINE_get_ssl_client_cert_function'
/usr/local/lib64//libssl.a(tls_srp.o): In function `SRP_Calc_A_param':
tls_srp.c:(.text+0x27a): undefined reference to `SRP_Calc_A'
/usr/local/lib64//libssl.a(tls_srp.o): In function `srp_verify_server_param':
tls_srp.c:(.text+0x34f): undefined reference to `SRP_check_known_gN_param'
/usr/local/lib64//libssl.a(tls_srp.o): In function 
`SRP_generate_client_master_secret':
tls_srp.c:(.text+0x3a9): undefined reference to `SRP_Verify_B_mod_N'
tls_srp.c:(.text+0x3cb): undefined reference to `SRP_Calc_u'
tls_srp.c:(.text+0x415): undefined reference to `SRP_Calc_x'
tls_srp.c:(.text+0x44a): undefined reference to `SRP_Calc_client_key'
/usr/local/lib64//libssl.a(tls_srp.o): In function 
`SRP_generate_server_master_secret':
tls_srp.c:(.text+0x597): undefined reference to `SRP_Verify_A_mod_N'
tls_srp.c:(.text+0x5bc): undefined reference to `SRP_Calc_u'
tls_srp.c:(.text+0x5ec): undefined reference to `SRP_Calc_server_key'
/usr/local/lib64//libssl.a(tls_srp.o): In function 
`SSL_set_srp_server_param_pw':
tls_srp.c:(.text+0xb45): undefined reference to `SRP_get_default_gN'
tls_srp.c:(.text+0xbca): undefined reference to `SRP_create_verifier_BN'
/usr/local/lib64//libssl.a(tls_srp.o): In function 
`SSL_srp_server_param_with_username':
tls_srp.c:(.text+0xcaa): undefined reference to `SRP_Calc_B'
collect2: ld returned 1 exit status
make: *** [bin/turnutils_stunclient] Error 1

Original comment by ghwil...@gmail.com on 27 May 2015 at 8:21