error: ‘SYS_gettid’ was not declared in this scope
Posted: Fri Aug 01, 2014 5:31 pm
Hi folks,
I receive the following error trying to compile ZoneMinder on CentOS 7:
I could use some help! Thank you.
I receive the following error trying to compile ZoneMinder on CentOS 7:
Code: Select all
In file included from /tmp/ZoneMinder-1.27.0/src/zm_libvlc_camera.h:25:0,
from /tmp/ZoneMinder-1.27.0/src/zm_libvlc_camera.cpp:21:
/tmp/ZoneMinder-1.27.0/src/zm_thread.h: In constructor ‘ThreadException::ThreadException(const string&)’:
/tmp/ZoneMinder-1.27.0/src/zm_thread.h:35:109: error: ‘SYS_gettid’ was not declared in this scope
ThreadException( const std::string &message ) : Exception( stringtf( "(%d) "+message, (long int)syscall(SYS_gettid) ) )
^
/tmp/ZoneMinder-1.27.0/src/zm_thread.h: In member function ‘pid_t Thread::id() const’:
/tmp/ZoneMinder-1.27.0/src/zm_thread.h:208:32: error: ‘SYS_gettid’ was not declared in this scope
return( (pid_t)syscall(SYS_gettid) );
^
make[2]: *** [src/CMakeFiles/zm.dir/zm_libvlc_camera.cpp.o] Error 1
make[1]: *** [src/CMakeFiles/zm.dir/all] Error 2
make: *** [all] Error 2