cmake build failure depending on liblzma

Jim Pazarena fports at
Sat Apr 18 18:17:04 UTC 2015

I'm attempting a re-install of 10.1 amd, and cmake is a show stopper, 
appearing to have a problem with liblzma. I re-installed liblzma, yet
cmake continues to fail. Without cmake many other things such as mysql
fail because of the dependency on cmake.

I am not sure what to do.
Any help would be much appreciated.



root at servera:~ # cd /usr/local/lib
root at servera:/usr/local/lib # ls -l | grep lzma
-rw-r--r--   1 root  wheel    401452 Apr 18 10:44 liblzma.a
lrwxr-xr-x   1 root  wheel        16 Apr 18 10:44 ->
lrwxr-xr-x   1 root  wheel        16 Apr 18 10:44 ->
-rwxr-xr-x   1 root  wheel    290461 Apr 18 10:44
root at servera:/usr/local/lib #


-- Checking whether cxxabi works with this C++ compiler - yes
-- Using system-installed BZIP2
-- Using system-installed CURL
-- Using system-installed EXPAT
-- Using system-installed LIBARCHIVE
-- Using system-installed LIBLZMA
-- Using system-installed ZLIB
-- Found ZLIB: /usr/lib/ (found version "1.2.8")
-- Found CURL: /usr/local/lib/ (found version "7.41.0")
-- Found BZip2: /usr/lib/ (found version "1.0.6")
-- Looking for BZ2_bzCompressInit in /usr/lib/
-- Looking for BZ2_bzCompressInit in /usr/lib/ - found
-- Looking for lzma_auto_decoder in /usr/local/lib/
-- Looking for lzma_auto_decoder in /usr/local/lib/ - not found
-- Looking for lzma_easy_encoder in /usr/local/lib/
-- Looking for lzma_easy_encoder in /usr/local/lib/ - not found
-- Looking for lzma_lzma_preset in /usr/local/lib/
-- Looking for lzma_lzma_preset in /usr/local/lib/ - not found
-- Could NOT find LibLZMA (missing:  LIBLZMA_HAS_AUTO_DECODER 
CMake Error at CMakeLists.txt:310 (message):
   CMAKE_USE_SYSTEM_LIBLZMA is ON but LibLZMA is not found!
Call Stack (most recent call first):
   CMakeLists.txt:488 (CMAKE_BUILD_UTILITIES)

-- Configuring incomplete, errors occurred!
See also 
See also 
Error when bootstrapping CMake:
Problem while running initial CMake
===>  Script "configure" failed unexpectedly.
Please report the problem to kde at [maintainer] and attach the
"/usr/ports/devel/cmake/work/cmake-3.1.3/config.log" including the output of
the failure of your make command. Also, it might be a good idea to provide
an overview of all packages installed on your system (e.g. a
/usr/local/sbin/pkg-static info -g -Ea).
*** Error code 1

make: stopped in /usr/ports/devel/cmake
root at servera:/usr/ports/devel/cmake # ^Dlogout

More information about the freebsd-ports mailing list