-
Notifications
You must be signed in to change notification settings - Fork 529
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mac make error #26
Comments
pid_t gettid(void) 修改完后还是编译出错 |
./make.sh |
c++ -Wall -std=c++11 -D_GNU_SOURCE -g -O3 -DDARWIN -c -fPIC -o lk_queue.lo lk_queue.cc |
对makefile的语法不怎么熟悉,能说说具体更改那个地方吗?谢谢啦 |
您后报这个错误:[root@iZ942yygvxkZ libfastcommon-master]# ./make.sh |
./make.sh
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -DDARWIN -c -o shared_func.o shared_func.c
shared_func.c:2567:9: warning: 'syscall' is deprecated: first deprecated in macOS 10.12 - syscall(2) is unsupported; please switch to a supported interface.
For SYS_kdebug_trace use kdebug_signpost(). [-Wdeprecated-declarations]
return syscall(__NR_gettid);
^
/usr/include/unistd.h:745:6: note: 'syscall' has been explicitly marked deprecated here
int syscall(int, ...);
^
shared_func.c:2567:17: error: use of undeclared identifier '__NR_gettid'
return syscall(__NR_gettid);
^
1 warning and 1 error generated.
make: *** [shared_func.o] Error 1
mac version:10.13.6
The text was updated successfully, but these errors were encountered: