jselbie / stunserver

Version 1.2. This is the source code to STUNTMAN - an open source STUN server and client code by john selbie. Compliant with the latest RFCs including 5389, 5769, and 5780. Also includes backwards compatibility for RFC 3489. Compiles on Linux, MacOS, BSD, Solaris, and Win32 with Cygwin. Windows binaries avaialble from www.stunprotocol.org.
http://www.stunprotocol.org
Apache License 2.0
1.41k stars 347 forks source link

Doesn't continue building the server #55

Closed Nirmeen23 closed 2 months ago

Nirmeen23 commented 10 months ago

Hello, I executed make command but it lags after this function Screenshot (176) I'm using amazon linux Do you have any solution?

jselbie commented 10 months ago

Hi @Nirmeen23 - I'm not able to reproduce this. I probably need to know two things:

I suspect this is a conflict with your version of boost and your compiler. Sometimes older versions of boost conflict with newer compilers and the easy fix is to just manually point the Stunserver build to a more recent version.

What compiler version are you using? Can you type g++ -version and let me know what you are running?

Do you know what version of boost you have installed? You can type the following:

cd /usr/include/boost
grep BOOST_LIB_VERSION version.hpp

That will reveal the version you have installed. I have both 1.53 installed locally as well as a manual install of 1.83. Both work fine and all versions in between are known to work.

This should fix your issue:

curl https://boostorg.jfrog.io/artifactory/main/release/1.83.0/source/boost_1_83_0.tar.gz -o boost.tgz -L
tar xzvf boost.tgz

This should create a boost_1_83_0 folder in the same directory

#BOOST_INCLUDE := -I/home/jselbie/boost_1_72_0

To be uncommented (drop the #) and set the path to your local copy to something like this

BOOST_INCLUDE := -I/path/to/your/boost/boost_1_83_0

Then make clean followed by make again and see if that fixes anything.

Can you try that?

jselbie commented 10 months ago

Also, I see you are typing make from the server directory. For purposes of the above instructions, type make clean and make from the root of the repo.

jselbie commented 2 months ago

Closing due to lack of response.