Hi Per, On Mon, 8 Jan 2018, at 11:57 AM, Per Gunnarsson wrote: > Hello! > > I am trying to compile webrtc on FreeBSD 11.1-RELEASE-p4. > > When I try to make, I get: > > Making all in webrtc > Making all in . > Making all in base > Â CXXÂ Â Â Â Â libbase_la-criticalsection.lo > criticalsection.cc: In constructor > 'rtc::CriticalSection::CriticalSection()': > criticalsection.cc:24:23: error: 'mutex_' was not declared in this scope > Â Â pthread_mutex_init(&mutex_, &mutex_attribute); > Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â ^~~~~~ > criticalsection.cc: In destructor > 'rtc::CriticalSection::~CriticalSection()': > criticalsection.cc:35:26: error: 'mutex_' was not declared in this scope > Â Â pthread_mutex_destroy(&mutex_); > Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â ^~~~~~ > criticalsection.cc: In member function 'void rtc::CriticalSection::Enter()': > criticalsection.cc:43:23: error: 'mutex_' was not declared in this scope > Â Â pthread_mutex_lock(&mutex_); > Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â ^~~~~~ > criticalsection.cc: In member function 'bool > rtc::CriticalSection::TryEnter()': > criticalsection.cc:60:30: error: 'mutex_' was not declared in this scope > Â Â if (pthread_mutex_trylock(&mutex_) != 0) > Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â ^~~~~~ > criticalsection.cc: In member function 'void rtc::CriticalSection::Leave()': > criticalsection.cc:85:25: error: 'mutex_' was not declared in this scope > Â Â pthread_mutex_unlock(&mutex_); > Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â ^~~~~~ > *** Error code 1 > > Stop. > make[2]: stopped in > /home/per/tmp/test/webrtc-audio-processing-0.3/webrtc/base > *** Error code 1 > > Stop. > make[1]: stopped in /home/per/tmp/test/webrtc-audio-processing-0.3/webrtc > *** Error code 1 > > Stop. > make: stopped in /home/per/tmp/test/webrtc-audio-processing-0.3 You might need to modify configure.ac to add support for FreeBSD (look at the sections that define HAVE_POSIX). Cheers, Arun