| Server IP : 189.126.111.107 / Your IP : 216.73.217.69 Web Server : Apache System : Linux www.gadotticar.com.br 5.4.0-135-generic #152-Ubuntu SMP Wed Nov 23 20:19:22 UTC 2022 x86_64 User : gadotticar ( 1000) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/src/libks/CMakeFiles/ |
Upload File : |
Performing C SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output:
Change Dir: /usr/src/libks/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make cmTC_16a9a/fast && /usr/bin/make -f CMakeFiles/cmTC_16a9a.dir/build.make CMakeFiles/cmTC_16a9a.dir/build
make[1]: Entering directory '/usr/src/libks/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_16a9a.dir/src.c.o
/usr/bin/cc -std=c11 -DCMAKE_HAVE_LIBC_PTHREAD -fPIE -o CMakeFiles/cmTC_16a9a.dir/src.c.o -c /usr/src/libks/CMakeFiles/CMakeTmp/src.c
Linking C executable cmTC_16a9a
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_16a9a.dir/link.txt --verbose=1
/usr/bin/cc -std=c11 -DCMAKE_HAVE_LIBC_PTHREAD CMakeFiles/cmTC_16a9a.dir/src.c.o -o cmTC_16a9a
/usr/bin/ld: CMakeFiles/cmTC_16a9a.dir/src.c.o: in function `main':
src.c:(.text+0x46): undefined reference to `pthread_create'
/usr/bin/ld: src.c:(.text+0x52): undefined reference to `pthread_detach'
/usr/bin/ld: src.c:(.text+0x63): undefined reference to `pthread_join'
collect2: error: ld returned 1 exit status
make[1]: *** [CMakeFiles/cmTC_16a9a.dir/build.make:87: cmTC_16a9a] Error 1
make[1]: Leaving directory '/usr/src/libks/CMakeFiles/CMakeTmp'
make: *** [Makefile:121: cmTC_16a9a/fast] Error 2
Source file was:
#include <pthread.h>
void* test_func(void* data)
{
return data;
}
int main(void)
{
pthread_t thread;
pthread_create(&thread, NULL, test_func, NULL);
pthread_detach(thread);
pthread_join(thread, NULL);
pthread_atfork(NULL, NULL, NULL);
pthread_exit(NULL);
return 0;
}