Hello,

I'm working on 5.5.33a MariaDB port now and got trouble making cmake
to find libexecinfo (stub for linuxish backtrace() function).

I'm desperate now in trying to fight this thing:

Determining if the function backtrace exists failed with the following output:
Change Dir: 
/usr/ports/databases/mariadb55-server/work/mariadb-5.5.33a/CMakeFiles/CMakeTmp

Run Build Command:/usr/local/bin/gmake "cmTryCompileExec343489733/fast"
/usr/local/bin/gmake -f
CMakeFiles/cmTryCompileExec343489733.dir/build.make
CMakeFiles/cmTryCompileExec343489733.dir/build
gmake[1]: Entering directory
`/usr/ports/databases/mariadb55-server/work/mariadb-5.5.33a/CMakeFiles/CMakeTmp'
/usr/local/bin/cmake -E cmake_progress_report
/usr/ports/databases/mariadb55-server/work/mariadb-5.5.33a/CMakeFiles/CMakeTmp/CMakeFiles
1
Building C object
CMakeFiles/cmTryCompileExec343489733.dir/CheckFunctionExists.c.o
/usr/bin/clang  -D_LARGEFILE_SOURCE -D_LARGE_FILES
-D_FILE_OFFSET_BITS=64 -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS
-D__STDC_FORMAT_MACROS -O2 -pipe -fno-strict-aliasing
-DCHECK_FUNCTION_EXISTS=backtrace   -o
CMakeFiles/cmTryCompileExec343489733.dir/CheckFunctionExists.c.o   -c
/usr/local/share/cmake/Modules/CheckFunctionExists.c
Linking C executable cmTryCompileExec343489733
/usr/local/bin/cmake -E cmake_link_script
CMakeFiles/cmTryCompileExec343489733.dir/link.txt --verbose=1
/usr/bin/clang   -O2 -pipe -fno-strict-aliasing
-DCHECK_FUNCTION_EXISTS=backtrace
CMakeFiles/cmTryCompileExec343489733.dir/CheckFunctionExists.c.o  -o
cmTryCompileExec343489733  -lexecinfo
/usr/bin/ld: cannot find -lexecinfo
clang: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[1]: Leaving directory
`/usr/ports/databases/mariadb55-server/work/mariadb-5.5.33a/CMakeFiles/CMakeTmp'
gmake[1]: *** [cmTryCompileExec343489733] Error 1
gmake: *** [cmTryCompileExec343489733/fast] Error 2


root@vbox:~ # ldconfig -r | grep execinfo
        141:-lexecinfo.1 => /usr/local/lib/libexecinfo.so.1

Could anyone, please, explain me, why clang can't see libexecinfo
during link phase and how to fix it?

Thanks in advance!

-- 
Alexandr
_______________________________________________
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

Reply via email to