[CMake] Linker error when building 3.8.0-rc4 on Linux

ウルヰ tkook11 at gmail.com
Fri Mar 31 01:46:07 EDT 2017


Trying to build CMake 3.8.0-rc4 from source on Ubuntu 16.10 gives the
following output:

$ make
[  2%] Built target cmsys
[  3%] Built target cmsysTestDynload
[  4%] Built target cmsys_c
[  4%] Built target cmsysTestProcess
[  4%] Built target cmsysTestSharedForward
[  5%] Built target cmsysTestsC
[  6%] Built target cmsysTestsCxx
[  6%] Built target testConsoleBufChild
[  7%] Built target kwiml_test
[  8%] Built target cmlibrhash
[  9%] Built target cmzlib
[ 24%] Built target cmcurl
[ 24%] Built target LIBCURL
[ 24%] Built target cmcompress
[ 24%] Built target cmexpat
[ 25%] Built target cmbzip2
[ 33%] Built target cmliblzma
[ 46%] Built target cmlibarchive
[ 47%] Built target cmjsoncpp
[ 50%] Built target cmlibuv
[ 55%] Built target cmForm
[ 83%] Built target CMakeLib
[ 84%] Built target CMakeServerLib
[ 86%] Built target CPackLib
[ 92%] Built target CTestLib
[ 92%] Linking CXX executable ../bin/ccmake
../Utilities/cmlibarchive/libarchive/libcmlibarchive.a(archive_hmac.c.o):
In function `__hmac_sha1_init':
archive_hmac.c:(.text+0x25): undefined reference to `HMAC_CTX_new'
../Utilities/cmlibarchive/libarchive/libcmlibarchive.a(archive_hmac.c.o):
In function `__hmac_sha1_cleanup':
archive_hmac.c:(.text+0x12d): undefined reference to `HMAC_CTX_free'
collect2: error: ld returned 1 exit status
Source/CMakeFiles/ccmake.dir/build.make:422: recipe for target
'bin/ccmake' failed
make[2]: *** [bin/ccmake] Error 1
CMakeFiles/Makefile2:2314: recipe for target
'Source/CMakeFiles/ccmake.dir/all' failed
make[1]: *** [Source/CMakeFiles/ccmake.dir/all] Error 2
Makefile:162: recipe for target 'all' failed
make: *** [all] Error 2

Is this a bug with the build configuration or have I forgotten to do
something I need to do?

Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html


More information about the CMake mailing list