The compliation fails at the make step on FreeBSD 10.0-RELEASE:
marduk# cd ympd
marduk# mkdir build && cd build
marduk# mkdir -p build; cd build
marduk# pwd
/root/ympd/build
marduk# cmake .. -DCMAKE_INSTALL_PREFIX_PATH=/usr
-- The C compiler identification is Clang 3.3.0
-- The CXX compiler identification is Clang 3.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/CC
-- Check for working CXX compiler: /usr/bin/CC -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found PkgConfig: /usr/local/bin/pkg-config (found version "0.28")
-- Found LibMPDClient: /usr/local/lib/libmpdclient.so
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
CMake Warning (dev) at CMakeLists.txt:32 (get_target_property):
Policy CMP0026 is not set: Disallow use of the LOCATION target property.
Run "cmake --help-policy CMP0026" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
The LOCATION property should not be read from target "mkdata". Use the
target name directly with add_custom_command, or use the generator
expression $<TARGET_FILE>, as appropriate.
This warning is for project developers. Use -Wno-dev to suppress it.
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
CMAKE_INSTALL_PREFIX_PATH
-- Build files have been written to: /root/ympd/build
marduk# make
Scanning dependencies of target mkdata
[ 12%] Building C object CMakeFiles/mkdata.dir/htdocs/mkdata.c.o
/root/ympd/htdocs/mkdata.c:10:10: fatal error: 'error.h' file not found
#include <error.h>
^
1 error generated.
*** Error code 1
Stop.
make[2]: stopped in /root/ympd/build
*** Error code 1
Stop.
make[1]: stopped in /root/ympd/build
*** Error code 1
Stop.
make: stopped in /root/ympd/build
Hi,
The compliation fails at the
make
step on FreeBSD 10.0-RELEASE: