zhuguoqiang / rfc5766-turn-server

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

Installation fails under cygwin environment in windos #36

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Open Cygwin terminal
2. cd \
3. tar xvfz turnserver-1.8.7.0.tar.gz, works fine
4. ./configure, works fine
5. make, got an error

What is the expected output? What do you see instead?
It should install successfully. Instead, I am getting error -  
src/client/ns_turn_ioaddr.c:169:13:error 'struct_sockaddr_in' has no member 
named 'sin_len'

What version of the product are you using? On what operating system?
Turn server 1.8.7.0
Windows 7, 64 bit
cygwin

Original issue reported on code.google.com by er.rudr...@gmail.com on 4 Jul 2013 at 11:01

Attachments:

GoogleCodeExporter commented 8 years ago
What is the version of Cygwin ? We are using 1.7.17 for development. 
Unfortunately, the field sin_len is treated rather erratically in different 
OS's.

Original comment by mom040...@gmail.com on 4 Jul 2013 at 5:09

GoogleCodeExporter commented 8 years ago
if you are using cygwin 1.3.x then please upgrade to 1.7.x

Original comment by mom040...@gmail.com on 4 Jul 2013 at 5:34

GoogleCodeExporter commented 8 years ago
Thanks for the reply. I am using cygwin 1.7.20(0.266/5/3)

Original comment by er.rudr...@gmail.com on 5 Jul 2013 at 6:10

GoogleCodeExporter commented 8 years ago
OK, thanks. I'll try that version and I'll fix that. For now, you can just 
remove the offending line of code - it must work fine.

Original comment by mom040...@gmail.com on 5 Jul 2013 at 4:06

GoogleCodeExporter commented 8 years ago
Full support for the latest Cygwin versions will be included into the upcoming 
2.x release with the new networking engine. That will happen, hopefully, in a 
few days. 

Original comment by mom040...@gmail.com on 6 Jul 2013 at 6:16

GoogleCodeExporter commented 8 years ago
I have commented the offending line. Now it is installed successfully.
Thanks for the help. I want to use this turn server for my WebRTC app. If you 
have some inputs on using this server with WebRTC app, Please share.
Thanking you in anticipation.

Original comment by er.rudr...@gmail.com on 6 Jul 2013 at 9:24

GoogleCodeExporter commented 8 years ago
For WebRTC, check the "external links" on the front page of the project.
There are several links with explanations. Also, check the Readme wiki page
- it has a special WebRTC section.

Original comment by mom040...@gmail.com on 6 Jul 2013 at 4:25

GoogleCodeExporter commented 8 years ago
I am working on version 2.0 with the new netwrking engine and I am running into 
this problem:

http://support.microsoft.com/kb/263823

I have Windows 7 and Cygwin 1.7.20 on Windows 7 follows the Miscosoft 
implementation (although it could make a workaround). As far as I see in the 
cygwin forums, this is firm position of the cygwin team (Corinna is their lead 
networking person, I already had a discussion with her regarding an other). 

Without workaround, this feature basically make Windows (and Cygwin) networking 
suite unusable for a real UDP networking server. The requirement to 
close/reopen the server socket each time when one of thousands clients dies is 
simply ridiculous.

BSD systems behave totally fine. Linux, in  bizarre way, recently followed the 
MS Windows path and did the same. Luckily, Linux did not do it well and it 
really not easy to reproduce on Linux. In Linux, some workarounds are 
available. But not in Cygwin. Cygwin is a strange mix of pre-BSD 4.4 networking 
with MS Windows networking. 

So, Cygwin has been a wonderful testing platform but I doubt that it can be 
recommended for a real TURN server. Essentially, a UDP server must be restarted 
every time when a UDP client dies. That makes it unusable.

Original comment by mom040...@gmail.com on 8 Jul 2013 at 6:30

GoogleCodeExporter commented 8 years ago
fixed in 2.0

Original comment by mom040...@gmail.com on 14 Jul 2013 at 9:38

GoogleCodeExporter commented 8 years ago
Hello dear all members,

I was looking for clear guide line to installing rfc5766-turn-server correctly 
and i found this page useful. I have windows vista 32-bit and install cygwin 
version 1.7.25(0.270/5/3).Can you please tell How can I Correctly install this 
server on my computer with my public Ip to make my computer as a Turn 
server.Also How can i test it to ensure that the turn server is working 
Active.Please reply.

Original comment by himran.m...@gmail.com on 7 Sep 2013 at 11:53

GoogleCodeExporter commented 8 years ago
You will have to download and install cygwin and download and install the TURN 
server tarball. Inside the tarball, you will find INSTALL file with all 
instructions.

Original comment by mom040...@gmail.com on 7 Sep 2013 at 5:52

GoogleCodeExporter commented 8 years ago
Hi members,
I have installed the cygwin version 1.7.25(0.270/5/3) and also installed 
libevent2 from Install file instructions.But the turn server shows errors.So I 
attached the sreenshot here.So suggest me on this. 

Original comment by himran.m...@gmail.com on 17 Sep 2013 at 7:09

Attachments:

GoogleCodeExporter commented 8 years ago
The errors on your screen mean that you did not install OpenSSL key and 
certificate, so TLS and DTLS protocols will not work - but UDP and TCP will 
work just fine. If you install the key and the certificate, the TLS and DTLS 
will work, too. 

If you are not using TLS or DTLS then the screen output is OK and you can use 
it.

Original comment by mom040...@gmail.com on 17 Sep 2013 at 7:14

GoogleCodeExporter commented 8 years ago
In future, for questions, use this forum:

https://groups.google.com/forum/#!forum/turn-server-project-rfc5766-turn-server

Original comment by mom040...@gmail.com on 17 Sep 2013 at 9:18

GoogleCodeExporter commented 8 years ago
I just double-checked cygwin version 1.7.25 with TURN server 2.6.3.1 - 
everything works just fine.

Original comment by mom040...@gmail.com on 18 Sep 2013 at 5:35