Задать вопрос
Qwentor
@Qwentor
Веб-программист

Не собирается pquery. В чем проблема?

Собираю pquery для нагрузочного тестирования MySQL.
https://github.com/Percona-QA/pquery

cmake отрабатывает нормально
# cmake . -DMYSQL=ON -DMARIADB=ON
-- The C compiler identification is GNU 4.9.2
-- The CXX compiler identification is GNU 4.9.2
-- 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/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found Git: /usr/bin/git (found version "2.1.4")
-- Performing Test COMPILER_SUPPORTS_CXX11
-- Performing Test COMPILER_SUPPORTS_CXX11 - Success
-- Architecture is x86_64
-- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libssl.so;/usr/lib/x86_64-linux-gnu/libcrypto.so (found version "1.0.1t")
-- 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
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.8")
-- * Found MariaDB library: /usr/lib/x86_64-linux-gnu/libmysqlclient.a
-- * Found MariaDB include directory: /usr/include/mysql
-- * PQuery revision is: 3800fd4
-- Configuring done
-- Generating done
-- Build files have been written to: /opt/pquery


Не собирается, make выдает следующее:

Scanning dependencies of target inih++
[ 16%] Building C object src/third_party/inih++/lib/CMakeFiles/inih++.dir/ini.c.o
<command-line>:0:0: error: "FORK" redefined
<command-line>:0:0: note: this is the location of the previous definition
src/third_party/inih++/lib/CMakeFiles/inih++.dir/build.make:54: recipe for target 'src/third_party/inih++/lib/CMakeFiles/inih++.dir/ini.c.o' failed
make[2]: *** [src/third_party/inih++/lib/CMakeFiles/inih++.dir/ini.c.o] Error 1
CMakeFiles/Makefile2:157: recipe for target 'src/third_party/inih++/lib/CMakeFiles/inih++.dir/all' failed
make[1]: *** [src/third_party/inih++/lib/CMakeFiles/inih++.dir/all] Error 2
Makefile:137: recipe for target 'all' failed
make: *** [all] Error 2


Debian Jessie

gcc (Debian 4.9.2-10) 4.9.2

cmake version 3.0.2
  • Вопрос задан
  • 144 просмотра
Подписаться 1 Средний Комментировать
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы