Description
Hi
I am getting issues when trying to build on ubuntu 20.10 and now 23.4 ... configure steps seem to run fine but then when I am running make -j it finishes with the below errors. Any ideas what I need to tweak here to fix it?
ake[2]: Entering directory '/home/dom/codelt/linuxtrack/linuxtrack/src' g++ -DHAVE_CONFIG_H -I. -I.. -D_FORTIFY_SOURCE=2 -O2 -g -O2 -g -O2 -Wall -Wextra -Wformat -Wformat-security --param ssp-buffer-size=4 -fstack-protector -D_FORTIFY_SOURCE=2 -c -o ltr_srv_master.o ltr_srv_master.cpp ltr_srv_master.cpp:35:34: error: ‘PTHREAD_MUTEX_INITIALIZER’ was not declared in this scope; did you mean ‘LTR_AXES_T_INITIALIZER’? 35 | static pthread_mutex_t send_mx = PTHREAD_MUTEX_INITIALIZER; | ^~~~~~~~~~~~~~~~~~~~~~~~~ | LTR_AXES_T_INITIALIZER ltr_srv_master.cpp: In function ‘void ltr_int_change(const char*, int, int, float)’: ltr_srv_master.cpp:77:3: error: ‘pthread_mutex_lock’ was not declared in this scope; did you mean ‘pthread_mutex_t’? 77 | pthread_mutex_lock(&send_mx); | ^~~~~~~~~~~~~~~~~~ | pthread_mutex_t ltr_srv_master.cpp:92:3: error: ‘pthread_mutex_unlock’ was not declared in this scope; did you mean ‘pthread_mutex_t’? 92 | pthread_mutex_unlock(&send_mx); | ^~~~~~~~~~~~~~~~~~~~ | pthread_mutex_t ltr_srv_master.cpp: In function ‘bool ltr_int_broadcast_pose(linuxtrack_full_pose_t&)’: ltr_srv_master.cpp:109:3: error: ‘pthread_mutex_lock’ was not declared in this scope; did you mean ‘pthread_mutex_t’? 109 | pthread_mutex_lock(&send_mx); | ^~~~~~~~~~~~~~~~~~ | pthread_mutex_t ltr_srv_master.cpp:130:3: error: ‘pthread_mutex_unlock’ was not declared in this scope; did you mean ‘pthread_mutex_t’? 130 | pthread_mutex_unlock(&send_mx); | ^~~~~~~~~~~~~~~~~~~~ | pthread_mutex_t ltr_srv_master.cpp: In function ‘bool ltr_int_register_slave(int, message_t&)’: ltr_srv_master.cpp:163:3: error: ‘pthread_mutex_lock’ was not declared in this scope; did you mean ‘pthread_mutex_t’? 163 | pthread_mutex_lock(&send_mx); | ^~~~~~~~~~~~~~~~~~ | pthread_mutex_t ltr_srv_master.cpp:166:3: error: ‘pthread_mutex_unlock’ was not declared in this scope; did you mean ‘pthread_mutex_t’? 166 | pthread_mutex_unlock(&send_mx); | ^~~~~~~~~~~~~~~~~~~~ | pthread_mutex_t make[2]: *** [Makefile:1344: ltr_srv_master.o] Error 1