Master Server Compling Error

Hello everyone
I downloaded the master server from this link. http://unity3d.com/master-server
I am trying to compile it in Ubuntu 12.04 LTS. After typing make in terminal i am getting errors.

MasterServer.cpp: In function ‘int main(int, char**)’:
MasterServer.cpp:259:13: warning: the address of ‘pidFile’ will always evaluate as ‘true’ [-Waddress]
RakNet/Sources/SignaledEvent.o: In function SignaledEvent::InitEvent()': SignaledEvent.cpp:(.text+0x81): undefined reference to pthread_mutexattr_init’
RakNet/Sources/SignaledEvent.o: In function SignaledEvent::CloseEvent()': SignaledEvent.cpp:(.text+0xf0): undefined reference to pthread_mutexattr_destroy’
RakNet/Sources/RakThread.o: In function RakNet::RakThread::Create(void* (*)(void*), void*, int)': RakThread.cpp:(.text+0x54): undefined reference to pthread_attr_setstacksize’
RakThread.cpp:(.text+0x7d): undefined reference to `pthread_create’
collect2: ld returned 1 exit status
make: *** [MasterServer] Error 1

Any idea how can i solve this error.
Thanks.

Hi MrGamer,

Here is what you have to do:

Edit Makefile on root of the masterserver folder, line 91, moving $(CFLAGS) to the very end of the line, like:

(CC) (DEBUG) -I$(INCLUDE) -I$(RAKNET_INCLUDE) -I$(COMMON_INCLUDE) (COMMON_OBJECTS) (RAKNET_OBJECTS) (PROGRAMSOURCES) -o (PROGRAMNAME) $(CFLAGS)

Save the file and try make command again.

The same for Facilitator.