!jngDrdMgndWibPCYsR:nixos.org

Nix PHP

77 Members
A room for PHP developers running on Nix22 Servers

Load older messages


SenderMessageTime
1 Jul 2023
@drupol:matrix.orgPolThere's no difference :S19:50:52
@jtojnar:matrix.orgJan Tojnar Pol: also -DCOUCHBASE_CXX_CLIENT_EMBED_MOZILLA_CA_BUNDLE=false 19:54:08
@jtojnar:matrix.orgJan Tojnarhttps://github.com/couchbaselabs/couchbase-cxx-client/blob/7c5abb0523a6a377454fcecaea9003ce8f5b0274/cmake/OpenSSL.cmake#L11119:54:36
@drupol:matrix.orgPolTrying.19:54:44
@jtojnar:matrix.orgJan Tojnarand probably more, you will need to read the CMake file19:55:11
@drupol:matrix.orgPolok... never did that before. Will try.19:55:44
@jtojnar:matrix.orgJan Tojnarit is mostly like any other programming language, you get an error with a trace and you need to look at where it points to19:57:46
@drupol:matrix.orgPolIT's building !19:59:48
@drupol:matrix.orgPol * It's building !19:59:51
@jtojnar:matrix.orgJan Tojnarand like with most programs, the less code there is, the fewer issues you will have. So keep an eye for options that disable code from being run.19:59:54
@jtojnar:matrix.orgJan Tojnar There are other libraries vendored which we should replace with ones from Nixpkgs. Try deleting src/deps/couchbase-cxx-client/third_party/ to prevent accidentally building them. 20:00:44
@drupol:matrix.orgPolI updated the log, it's almost done: https://github.com/NixOS/nixpkgs/pull/24067320:05:39
@drupol:matrix.orgPol There's an error: > /build/couchbase-4.1.4/src/wrapper/api_visibility.hxx:19:10: fatal error: Zend/zend_portability.h: No such file or directory 20:05:56
@jtojnar:matrix.orgJan Tojnar Actually, looking at the code again -DCOUCHBASE_CXX_CLIENT_POST_LINKED_OPENSSL is wrong. 20:06:30
@jtojnar:matrix.orgJan TojnarThe issue is actually that it looks for OpenSSL 1.120:06:41
@drupol:matrix.orgPolAh.20:06:44
@drupol:matrix.orgPolDamn :(20:06:49
@jtojnar:matrix.orgJan Tojnar
In reply to @drupol:matrix.org
There's an error: > /build/couchbase-4.1.4/src/wrapper/api_visibility.hxx:19:10: fatal error: Zend/zend_portability.h: No such file or directory
That sounds like it tries to guess where the PHP headers are located and fails.
20:07:58
@jtojnar:matrix.orgJan TojnarPerhaps for non-CMake extensions, the correct path would be set by buildPecl or something20:08:22
@drupol:matrix.orgPol Should we require php.dev ? 20:08:27
@jtojnar:matrix.orgJan Tojnar buildPecl already does. 20:09:14
@jtojnar:matrix.orgJan Tojnar but we probably should not use buildPecl in the first place, as this does not really use PECL-style build system 20:09:40
@drupol:matrix.orgPolSo, a regular derivation ?20:10:43
@jtojnar:matrix.orgJan Tojnaryeah20:10:48
@jtojnar:matrix.orgJan Tojnar
In reply to @jtojnar:matrix.org
That sounds like it tries to guess where the PHP headers are located and fails.
you will need to find out how the build system tries to add PHP headers to include directories and continue based on that
20:11:35
@jtojnar:matrix.orgJan Tojnaractually, it looks like the extension does have pecl-style build system20:12:23
@jtojnar:matrix.orgJan Tojnarit just invokes CMake internally20:12:34
@jtojnar:matrix.orgJan Tojnar(see the config.m4 in the tarball)20:12:45
@jtojnar:matrix.orgJan Tojnar Pol: so you will probably want to use env.COUCHBASE_CMAKE_EXTRA instead of cmakeFlags 20:13:54
@jtojnar:matrix.orgJan Tojnar and dontUseCmakeConfigure = true; 20:14:11

Show newer messages


Back to Room ListRoom Version: 6