Core broken for Raspi Raspbian - Latest tip [FIXED]


#1

:( - Latest tip

See http://stackoverflow.com/questions/24194961/how-do-i-use-setsockoptso-reuseaddr

 

Compiling juce_core.cpp

In file included from ../../../../modules/juce_core/juce_core.cpp:150:0:
../../../../modules/juce_core/network/juce_Socket.cpp: In member function ‘bool juce::DatagramSocket::setEnablePortReuse(bool)’:
../../../../modules/juce_core/network/juce_Socket.cpp:707:25: error: ‘SO_REUSEPORT’ was not declared in this scope
     const int optname = SO_REUSEPORT;

#2

I guess I need to change my section reading order! I just replied about this in, first, Android, then General.

It seems the whole thing stemmed from someone trying to run two instances of an app on OS X, then thinking SO_REUSEADDR wasn't working, but adding SO_REUSEPORT seemed to fix it (I would have actually expected the datagrams to just go to one instance). 


#3

+1.

Also stumbled over this today..


#4

Thought we already fixed it?


#5

Might have been only fixed on line 707...

On the latest Rasbian with the latest Juce (most recent commit is from Fri Sep 18, "Introjucer: minor internal refactoring")  I get:

modules/juce_core/network/juce_Socket.cpp:710:25: error: 'SO_REUSEPORT' was not declared in this scope

    const int optname = SO_REUSEPORT;
                        ^

 

Enjoy CppCon 2015!


#6

Thanks - should be fixed now as far as I can tell without a Pi to test on.


#7

It is fixed, just tried it on a Pi. Thanks!


#8

Yay! Thanks