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

Latest version of curl breaks compilation #246

Closed
mpociot opened this issue Oct 30, 2023 · 2 comments
Closed

Latest version of curl breaks compilation #246

mpociot opened this issue Oct 30, 2023 · 2 comments
Labels
bug Something isn't working duplicate This issue or pull request already exists fixed Fixed issue

Comments

@mpociot
Copy link
Contributor

mpociot commented Oct 30, 2023

Building the latest version of curl no longer works and breaks the compilation with the following error:

[07:15:13] [INFO] Entering dir: /Users/marcelpociot/Code/static-php-builder/source/curl/build
[07:15:13] [INFO] [EXEC] PKG_CONFIG="/Users/marcelpociot/Code/static-php-builder/buildroot/bin/pkg-config" PKG_CONFIG_PATH="/Users/marcelpociot/Code/static-php-builder/buildroot/lib/pkgconfig/" CC='clang' CXX='clang++' CFLAGS='--target=arm64-apple-darwin -Wimplicit-function-declaration' cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/ -DCMAKE_INSTALL_LIBDIR=/lib -DCMAKE_INSTALL_INCLUDEDIR=/include -DCMAKE_TOOLCHAIN_FILE=/Users/marcelpociot/Code/static-php-builder/source/toolchain.cmake -DBUILD_SHARED_LIBS=OFF -DBUILD_CURL_EXE=OFF -DCURL_USE_OPENSSL=ON -DCURL_BROTLI=OFF -DCURL_USE_LIBSSH2=OFF -DUSE_NGHTTP2=OFF -DCURL_DISABLE_LDAP=ON -DCURL_ZSTD=OFF -DUSE_LIBIDN2=OFF -DCURL_USE_LIBPSL=OFF  ..
[07:15:13] [DEBU] Running command with direct output: cd '/Users/marcelpociot/Code/static-php-builder/source/curl/build' && PKG_CONFIG="/Users/marcelpociot/Code/static-php-builder/buildroot/bin/pkg-config" PKG_CONFIG_PATH="/Users/marcelpociot/Code/static-php-builder/buildroot/lib/pkgconfig/" CC='clang' CXX='clang++' CFLAGS='--target=arm64-apple-darwin -Wimplicit-function-declaration' cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/ -DCMAKE_INSTALL_LIBDIR=/lib -DCMAKE_INSTALL_INCLUDEDIR=/include -DCMAKE_TOOLCHAIN_FILE=/Users/marcelpociot/Code/static-php-builder/source/toolchain.cmake -DBUILD_SHARED_LIBS=OFF -DBUILD_CURL_EXE=OFF -DCURL_USE_OPENSSL=ON -DCURL_BROTLI=OFF -DCURL_USE_LIBSSH2=OFF -DUSE_NGHTTP2=OFF -DCURL_DISABLE_LDAP=ON -DCURL_ZSTD=OFF -DUSE_LIBIDN2=OFF -DCURL_USE_LIBPSL=OFF  ..
-- The C compiler identification is AppleClang 15.0.0.15000040
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- curl version=[8.4.0]
-- Picky compiler options: -Wextra -Wall -pedantic -Wbad-function-cast -Wconversion -Winline -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wno-long-long -Wno-multichar -Wpointer-arith -Wshadow -Wsign-compare -Wundef -Wunused -Wwrite-strings -Wcast-align -Wdeclaration-after-statement -Wempty-body -Wendif-labels -Wfloat-equal -Wignored-qualifiers -Wno-format-nonliteral -Wno-sign-conversion -Wno-system-headers -Wstrict-prototypes -Wtype-limits -Wvla -Wshift-sign-overflow -Wshorten-64-to-32 -Wdouble-promotion -Wenum-conversion -Wunused-const-variable -Wcomma -Wmissing-variable-declarations -Wassign-enum -Wextra-semi-stmt
-- Performing Test HAVE_SOCKADDR_IN6_SIN6_ADDR
-- Performing Test HAVE_SOCKADDR_IN6_SIN6_ADDR - Success
-- Performing Test HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID
-- Performing Test HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID - Success
-- Found Perl: /usr/bin/perl (found version "5.30.3")
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Looking for connect in socket;-framework SystemConfiguration
-- Looking for connect in socket;-framework SystemConfiguration - not found
-- Looking for gethostname
-- Looking for gethostname - found
CMake Error at CMakeLists.txt:469 (message):
  CoreServices framework not found
@crazywhalecc crazywhalecc added the bug Something isn't working label Oct 30, 2023
@crazywhalecc
Copy link
Owner

crazywhalecc commented Oct 30, 2023

dbb566a

This issue has already been resolved in this commit. Because static compilation of curl currently requires bypassing framework checks before compilation, and version 7.4.0 depends on CoreServices, a patch is needed.

Related Issue & PR:

#235
#236
curl/curl#11893

@crazywhalecc crazywhalecc added fixed Fixed issue duplicate This issue or pull request already exists labels Oct 30, 2023
@mpociot mpociot closed this as completed Oct 30, 2023
@mpociot
Copy link
Contributor Author

mpociot commented Oct 30, 2023

Thanks! Looks like I missed this, sorry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists fixed Fixed issue
Projects
None yet
Development

No branches or pull requests

2 participants