Created
January 29, 2019 13:44
-
-
Save feuGeneA/5e41a7a5e3c9e48fc967f0d0f05785dc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Determining if the pthread_create exist failed with the following output: | |
Change Dir: /home/gene/Downloads/conky-1.11.2/build/CMakeFiles/CMakeTmp | |
Run Build Command:"/usr/bin/make" "cmTC_74225/fast" | |
/usr/bin/make -f CMakeFiles/cmTC_74225.dir/build.make CMakeFiles/cmTC_74225.dir/build | |
make[1]: Entering directory '/home/gene/Downloads/conky-1.11.2/build/CMakeFiles/CMakeTmp' | |
Building C object CMakeFiles/cmTC_74225.dir/CheckSymbolExists.c.o | |
/usr/bin/cc -o CMakeFiles/cmTC_74225.dir/CheckSymbolExists.c.o -c /home/gene/Downloads/conky-1.11.2/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c | |
Linking C executable cmTC_74225 | |
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_74225.dir/link.txt --verbose=1 | |
/usr/bin/cc CMakeFiles/cmTC_74225.dir/CheckSymbolExists.c.o -o cmTC_74225 | |
CMakeFiles/cmTC_74225.dir/CheckSymbolExists.c.o: In function `main': | |
CheckSymbolExists.c:(.text+0x1b): undefined reference to `pthread_create' | |
collect2: error: ld returned 1 exit status | |
CMakeFiles/cmTC_74225.dir/build.make:97: recipe for target 'cmTC_74225' failed | |
make[1]: *** [cmTC_74225] Error 1 | |
make[1]: Leaving directory '/home/gene/Downloads/conky-1.11.2/build/CMakeFiles/CMakeTmp' | |
Makefile:126: recipe for target 'cmTC_74225/fast' failed | |
make: *** [cmTC_74225/fast] Error 2 | |
File /home/gene/Downloads/conky-1.11.2/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c: | |
/* */ | |
#include <pthread.h> | |
int main(int argc, char** argv) | |
{ | |
(void)argv; | |
#ifndef pthread_create | |
return ((int*)(&pthread_create))[argc]; | |
#else | |
(void)argc; | |
return 0; | |
#endif | |
} | |
Determining if the function pthread_create exists in the pthreads failed with the following output: | |
Change Dir: /home/gene/Downloads/conky-1.11.2/build/CMakeFiles/CMakeTmp | |
Run Build Command:"/usr/bin/make" "cmTC_c1d8c/fast" | |
/usr/bin/make -f CMakeFiles/cmTC_c1d8c.dir/build.make CMakeFiles/cmTC_c1d8c.dir/build | |
make[1]: Entering directory '/home/gene/Downloads/conky-1.11.2/build/CMakeFiles/CMakeTmp' | |
Building C object CMakeFiles/cmTC_c1d8c.dir/CheckFunctionExists.c.o | |
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_c1d8c.dir/CheckFunctionExists.c.o -c /usr/share/cmake-3.7/Modules/CheckFunctionExists.c | |
Linking C executable cmTC_c1d8c | |
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_c1d8c.dir/link.txt --verbose=1 | |
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTC_c1d8c.dir/CheckFunctionExists.c.o -o cmTC_c1d8c -lpthreads | |
/usr/bin/ld: cannot find -lpthreads | |
collect2: error: ld returned 1 exit status | |
CMakeFiles/cmTC_c1d8c.dir/build.make:97: recipe for target 'cmTC_c1d8c' failed | |
make[1]: *** [cmTC_c1d8c] Error 1 | |
make[1]: Leaving directory '/home/gene/Downloads/conky-1.11.2/build/CMakeFiles/CMakeTmp' | |
Makefile:126: recipe for target 'cmTC_c1d8c/fast' failed | |
make: *** [cmTC_c1d8c/fast] Error 2 | |
Determining if the pipe2 exist failed with the following output: | |
Change Dir: /home/gene/Downloads/conky-1.11.2/build/CMakeFiles/CMakeTmp | |
Run Build Command:"/usr/bin/make" "cmTC_e098d/fast" | |
/usr/bin/make -f CMakeFiles/cmTC_e098d.dir/build.make CMakeFiles/cmTC_e098d.dir/build | |
make[1]: Entering directory '/home/gene/Downloads/conky-1.11.2/build/CMakeFiles/CMakeTmp' | |
Building C object CMakeFiles/cmTC_e098d.dir/CheckSymbolExists.c.o | |
/usr/bin/cc -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -std=c99 -o CMakeFiles/cmTC_e098d.dir/CheckSymbolExists.c.o -c /home/gene/Downloads/conky-1.11.2/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c | |
/home/gene/Downloads/conky-1.11.2/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c: In function ‘main’: | |
/home/gene/Downloads/conky-1.11.2/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: error: ‘pipe2’ undeclared (first use in this function) | |
return ((int*)(&pipe2))[argc]; | |
^~~~~ | |
/home/gene/Downloads/conky-1.11.2/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: note: each undeclared identifier is reported only once for each function it appears in | |
CMakeFiles/cmTC_e098d.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_e098d.dir/CheckSymbolExists.c.o' failed | |
make[1]: *** [CMakeFiles/cmTC_e098d.dir/CheckSymbolExists.c.o] Error 1 | |
make[1]: Leaving directory '/home/gene/Downloads/conky-1.11.2/build/CMakeFiles/CMakeTmp' | |
Makefile:126: recipe for target 'cmTC_e098d/fast' failed | |
make: *** [cmTC_e098d/fast] Error 2 | |
File /home/gene/Downloads/conky-1.11.2/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c: | |
/* */ | |
#include <unistd.h> | |
int main(int argc, char** argv) | |
{ | |
(void)argv; | |
#ifndef pipe2 | |
return ((int*)(&pipe2))[argc]; | |
#else | |
(void)argc; | |
return 0; | |
#endif | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment