Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails on OS X #2

Open
IngwiePhoenix opened this issue Jan 28, 2019 · 0 comments
Open

Build fails on OS X #2

IngwiePhoenix opened this issue Jan 28, 2019 · 0 comments

Comments

@IngwiePhoenix
Copy link

Hey there!

I did a blind try to build this library and got quite some errors. To reproduce:

  • git clone https://github.com/libpdk/libpdk.git
  • mkdir out
  • cd out
  • cmake ..

CMake fails with this:

-- Performing Test PDK_TEMP_C_SUPPORTS_C99 - Success
 -fPIC -Wall -W -Wno-unused-parameter -Wwrite-strings -Wmissing-field-initializers -pedantic -Wno-long-long -Wcovered-switch-default -Wdelete-non-virtual-dtor -Wstring-conversion -Werror=date-time -Wno-unused-function -Wno-unneeded-internal-declaration -Werror=unguarded-availability-new -std=c99
CMake Warning (dev) at thirdparty/zendapi/CMakeLists.txt:68 (option):
  Policy CMP0077 is not set: option() honors normal variables.  Run "cmake
  --help-policy CMP0077" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

  For compatibility with older versions of CMake, option is clearing the
  normal variable 'ZAPI_OPT_ENABLE_UNIT_TESTS'.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at thirdparty/zendapi/CMakeLists.txt:71 (option):
  Policy CMP0077 is not set: option() honors normal variables.  Run "cmake
  --help-policy CMP0077" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

  For compatibility with older versions of CMake, option is clearing the
  normal variable 'ZAPI_OPT_ENABLE_RUNTIME_TESTS'.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Error at thirdparty/zendapi/cmake/modules/DetectPhpInfo.cmake:34 (message):
  php library is not found automatic, maybe your php is not in system
  standard path you can specify ZAPI_OPT_PHPCFG_PATH and try again, good
  luck!
Call Stack (most recent call first):
  thirdparty/zendapi/CMakeLists.txt:138 (include)


-- Configuring incomplete, errors occurred!
See also "/Users/Ingwie/Work/Git/libpdk/out/CMakeFiles/CMakeOutput.log".
See also "/Users/Ingwie/Work/Git/libpdk/out/CMakeFiles/CMakeError.log".

Now, I installed PHP7 via Homebrew and this is where it is:

Ingwie@Ingwies-MBP.fritz.box ~/W/G/l/out $ which php-config
/usr/local/bin/php-config
Ingwie@Ingwies-MBP.fritz.box ~/W/G/l/out $ which php
/usr/local/bin/php
Ingwie@Ingwies-MBP.fritz.box ~/W/G/l/out $ which php-cli
Ingwie@Ingwies-MBP.fritz.box ~/W/G/l/out $ php --version
PHP 7.2.14 (cli) (built: Jan 12 2019 05:21:04) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.2.14, Copyright (c) 1999-2018, by Zend Technologies
Ingwie@Ingwies-MBP.fritz.box ~/W/G/l/out $ php-config --version
7.2.14

So apparently, something is not working :)

Any hotfix I can apply to make this build?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant