Skip to content

Instantly share code, notes, and snippets.

@elenst
Created July 19, 2016 21:51
Show Gist options
  • Save elenst/d7b1d5dcd336434d1f2c659c145f89c0 to your computer and use it in GitHub Desktop.
Save elenst/d7b1d5dcd336434d1f2c659c145f89c0 to your computer and use it in GitHub Desktop.
Determining if the function floor exists failed with the following output:
Change Dir: /data/src/5.5-bug/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTryCompileExec4054076556/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec4054076556.dir/build.make CMakeFiles/cmTryCompileExec4054076556.dir/build
make[1]: Entering directory '/data/src/5.5-bug/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /data/src/5.5-bug/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec4054076556.dir/CheckFunctionExists.c.o
/usr/bin/cc -D_GNU_SOURCE=1 -fPIC -DCHECK_FUNCTION_EXISTS=floor -o CMakeFiles/cmTryCompileExec4054076556.dir/CheckFunctionExists
.c.o -c /usr/share/cmake-3.0/Modules/CheckFunctionExists.c
<command-line>:0:23: warning: conflicting types for built-in function ‘floor’
/usr/share/cmake-3.0/Modules/CheckFunctionExists.c:3:6: note: in expansion of macro ‘CHECK_FUNCTION_EXISTS’
char CHECK_FUNCTION_EXISTS();
^
Linking C executable cmTryCompileExec4054076556
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec4054076556.dir/link.txt --verbose=1
/usr/bin/cc -fPIC -DCHECK_FUNCTION_EXISTS=floor CMakeFiles/cmTryCompileExec4054076556.dir/CheckFunctionExists.c.o -o cmTryCom
pileExec4054076556 -rdynamic
CMakeFiles/cmTryCompileExec4054076556.dir/CheckFunctionExists.c.o: In function `main':
CheckFunctionExists.c:(.text+0x15): undefined reference to `floor'
collect2: error: ld returned 1 exit status
CMakeFiles/cmTryCompileExec4054076556.dir/build.make:88: recipe for target 'cmTryCompileExec4054076556' failed
make[1]: Leaving directory '/data/src/5.5-bug/CMakeFiles/CMakeTmp'
make[1]: *** [cmTryCompileExec4054076556] Error 1
Makefile:118: recipe for target 'cmTryCompileExec4054076556/fast' failed
make: *** [cmTryCompileExec4054076556/fast] Error 2
Determining if the function crypt exists failed with the following output:
Change Dir: /data/src/5.5-bug/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTryCompileExec926983824/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec926983824.dir/build.make CMakeFiles/cmTryCompileExec926983824.dir/build
make[1]: Entering directory '/data/src/5.5-bug/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /data/src/5.5-bug/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec926983824.dir/CheckFunctionExists.c.o
/usr/bin/cc -D_GNU_SOURCE=1 -fPIC -DCHECK_FUNCTION_EXISTS=crypt -o CMakeFiles/cmTryCompileExec926983824.dir/CheckFunctionExists.
c.o -c /usr/share/cmake-3.0/Modules/CheckFunctionExists.c
Linking C executable cmTryCompileExec926983824
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec926983824.dir/link.txt --verbose=1
/usr/bin/cc -fPIC -DCHECK_FUNCTION_EXISTS=crypt CMakeFiles/cmTryCompileExec926983824.dir/CheckFunctionExists.c.o -o cmTryCompileExec926983824 -rdynamic
CMakeFiles/cmTryCompileExec926983824.dir/CheckFunctionExists.c.o: In function `main':
CheckFunctionExists.c:(.text+0x15): undefined reference to `crypt'
collect2: error: ld returned 1 exit status
CMakeFiles/cmTryCompileExec926983824.dir/build.make:88: recipe for target 'cmTryCompileExec926983824' failed
make[1]: Leaving directory '/data/src/5.5-bug/CMakeFiles/CMakeTmp'
make[1]: *** [cmTryCompileExec926983824] Error 1
Makefile:118: recipe for target 'cmTryCompileExec926983824/fast' failed
make: *** [cmTryCompileExec926983824/fast] Error 2
Determining if the function dlopen exists failed with the following output:
Change Dir: /data/src/5.5-bug/CMakeFiles/CMakeTmp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment