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

Unable to build without SSL since #4721 #4793

Closed
2 tasks done
MarcAurel opened this issue Jul 23, 2024 · 3 comments · Fixed by #4794
Closed
2 tasks done

Unable to build without SSL since #4721 #4793

MarcAurel opened this issue Jul 23, 2024 · 3 comments · Fixed by #4794
Labels

Comments

@MarcAurel
Copy link

MarcAurel commented Jul 23, 2024

Description

On macOS, I'm unable to build since #4721 (previous commit works). Looks like there's something specific to macOS missing from the config in this PR.

How to reproduce

./configure && make
checking for OS or distribution... ok (osx)
checking for C compiler from CC env... failed
checking for gcc (by command)... ok
checking for C++ compiler from CXX env... failed
checking for C++ compiler (g++)... ok
checking executable ld... ok
checking executable nm... ok
checking executable objdump... ok
checking executable strip... ok
checking executable libtool... ok
checking executable ranlib... ok
checking for debug symbols compiler flag (-g...)... ok
checking for pkgconfig (by command)... failed
checking for install (by command)... failed
checking for GNU ar... failed (disable)
checking for PIC (by compile)... ok
checking for GNU-compatible linker options... failed
checking for OSX linker options... ok
checking for GNU linker-script ld flag... failed
checking for Solaris linker-script ld flag... failed (ignore)
checking for __atomic_32 (by compile)... ok
checking for __atomic_64 (by compile)... ok
checking for socket (by compile)... ok
parsing version '0x020500ff'... ok (2.5.0)
checking for librt (by compile)... failed
checking for libpthread (by compile)... ok
checking for c11threads (by compile)... failed (disable)
checking for libdl (by compile)... ok
checking for zlib (by compile)... ok
checking for libcrypto (by compile)... failed (disable)
checking for libsasl2 (by compile)... ok
checking for libzstd (by compile)... failed (disable)
checking for libcurl (by compile)... ok
checking for libm (by compile)... ok
checking for liblz4 (by compile)... failed (disable)
checking for syslog (by compile)... ok
checking for rapidjson (by compile)... failed (disable)
checking for crc32chw (by compile)... failed (disable)
checking for regex (by compile)... ok
checking for rand_r (by compile)... ok
checking for strndup (by compile)... ok
checking for strlcpy (by compile)... ok
checking for strerror_r (by compile)... ok
checking for strcasestr (by compile)... ok
checking for pthread_setname_gnu (by compile)... failed (disable)
checking for pthread_setname_darwin (by compile)... ok
checking for nm (by env NM)... ok (cached)
checking for getrusage (by compile)... ok
Generated Makefile.config
Generated config.h

Configuration summary:
  prefix                   /usr/local
  MKL_DISTRO               osx
  SOLIB_EXT                .dylib
  ARCH                     arm64
  CPU                      generic
  GEN_PKG_CONFIG           y
  MKL_APP_NAME             librdkafka
  MKL_APP_DESC_ONELINE     The Apache Kafka C/C++ library
  CC                       gcc
  CXX                      g++
  LD                       ld
  NM                       nm
  OBJDUMP                  objdump
  STRIP                    strip
  LIBTOOL                  libtool
  RANLIB                   ranlib
  CPPFLAGS                 -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align
  PKG_CONFIG               pkg-config
  INSTALL                  /usr/bin/install
  HAS_GNU_AR               n
  LIB_LDFLAGS              -shared -dynamiclib -Wl,-install_name,$(DESTDIR)$(libdir)/$(LIBFILENAME)
  RDKAFKA_VERSION_STR      2.5.0
  MKL_APP_VERSION          2.5.0
  LIBS                     -lm -lcurl -lsasl2 -lz -ldl -lpthread
  MKL_PKGCONFIG_LIBS_PRIVATE -lm -lcurl -lsasl2 -lz -ldl -lpthread
  CXXFLAGS                 -Wno-non-virtual-dtor
  SYMDUMPER                $(NM) -g
  MKL_DYNAMIC_LIBS         -lm -lcurl -lsasl2 -lz -ldl -lpthread
  exec_prefix              /usr/local
  bindir                   /usr/local/bin
  sbindir                  /usr/local/sbin
  libexecdir               /usr/local/libexec
  datadir                  /usr/local/share
  sysconfdir               /usr/local/etc
  sharedstatedir           /usr/local/com
  localstatedir            /usr/local/var
  runstatedir              /usr/local/var/run
  libdir                   /usr/local/lib
  includedir               /usr/local/include
  infodir                  /usr/local/info
  mandir                   /usr/local/man
  BUILT_WITH               GCC GXX OSXLD LIBDL PLUGINS ZLIB SASL_CYRUS CURL HDRHISTOGRAM SYSLOG SNAPPY SOCKEM
Generated config.cache

Now type 'make' to build
gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -DLIBRDKAFKA_GIT_VERSION="\"v2.5.0\"" -I.  -c rdkafka.c -o rdkafka.o
In file included from rdkafka.c:43:
In file included from ./rdkafka_int.h:110:
./rdkafka_op.h:696:25: error: unknown type name 'rd_kafka_broker_t'
                        rd_kafka_broker_t *rkb;
                        ^
rdkafka.c:5188:47: warning: cast from 'unsigned char *' to 'uint64_t *' (aka 'unsigned long long *') increases required alignment from 1 to 8 [-Wcast-align]
        uint64_t *rand_values_uint64        = (uint64_t *)rand_values_bytes;
                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning and 1 error generated.
make[1]: *** [rdkafka.o] Error 1
make: *** [libs] Error 2

Checklist

  • librdkafka version (release number or git tag): v2.5.0
  • Operating system: macOS Sonoma 14.5 (arm64)
config.log
# configure exec: ./configure 
# On Mar 23 jul 2024 15:28:43 CEST
DBG 78285: Setting distro (distro) status to ok (action ignore)
DBG 78285: ccenv: WITH_CC:  --version failed: mklove/modules/configure.base: line 1824: --version: command not found
DBG 78285: Setting ccenv (ccenv) status to failed (action cont)
DBG 78285: Check ccenv (WITH_CC, action cont (originally cont)) failed: command ' --version' failed:
mklove/modules/configure.base: line 1824: --version: command not found
DBG 78285: Setting gcc (gcc) status to ok (action cont)
DBG 78285: cxxenv: WITH_CXX:  --version failed: mklove/modules/configure.base: line 1824: --version: command not found
DBG 78285: Setting cxxenv (cxxenv) status to failed (action cont)
DBG 78285: Check cxxenv (WITH_CXX, action cont (originally cont)) failed: command ' --version' failed:
mklove/modules/configure.base: line 1824: --version: command not found
DBG 78285: Setting gxx (gxx) status to ok (action cont)
DBG 78285: Setting ld (ld) status to ok (action disable)
DBG 78285: Setting nm (nm) status to ok (action disable)
DBG 78285: Setting objdump (objdump) status to ok (action disable)
DBG 78285: Setting strip (strip) status to ok (action disable)
DBG 78285: Setting libtool (libtool) status to ok (action disable)
DBG 78285: Setting ranlib (ranlib) status to ok (action disable)
DBG 78285: Compile check cc_g_dwarf () (sub=0): gcc   -Wall -Werror _mkltmpOCHtlS.c -o _mkltmpOCHtlS.c.o   -gstrict-dwarf 
DBG 78285: Setting cc_g_dwarf (cc_g_dwarf) status to ok (action cont)
DBG 78285: pkgconfig: WITH_PKGCONFIG: pkg-config --version failed: mklove/modules/configure.base: line 1824: pkg-config: command not found
DBG 78285: Setting pkgconfig (pkgconfig) status to failed (action cont)
DBG 78285: Check pkgconfig (WITH_PKGCONFIG, action cont (originally cont)) failed: command 'pkg-config --version' failed:
mklove/modules/configure.base: line 1824: pkg-config: command not found
DBG 78285: install: WITH_INSTALL: /usr/bin/install --version failed: /usr/bin/install: illegal option -- -
usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
               [-o owner] file1 file2
       install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
               [-o owner] file1 ... fileN directory
       install -d [-v] [-g group] [-m mode] [-o owner] directory ...
DBG 78285: Setting install (install) status to failed (action cont)
DBG 78285: Check install (WITH_INSTALL, action cont (originally cont)) failed: command '/usr/bin/install --version' failed:
/usr/bin/install: illegal option -- -
usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
               [-o owner] file1 file2
       install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
               [-o owner] file1 ... fileN directory
       install -d [-v] [-g group] [-m mode] [-o owner] directory ...
DBG 78285: gnuar: HAS_GNU_AR: ar -V 2>/dev/null | grep -q GNU failed: ar: one of options -dmpqrtsx is required
usage:  ar -d [-TLsv] archive file ...
	ar -m [-TLsv] archive file ...
	ar -m [-abiTLsv] position archive file ...
	ar -p [-TLsv] archive [file ...]
	ar -q [-cTLsv] archive file ...
	ar -r [-cuTLsv] archive file ...
	ar -r [-abciuTLsv] position archive file ...
	ar -t [-TLsv] archive [file ...]
	ar -x [-ouTLsv] archive [file ...]
DBG 78285: Setting gnuar (gnuar) status to failed (action disable)
DBG 78285: Check gnuar (HAS_GNU_AR, action disable (originally disable)) failed: command 'ar -V 2>/dev/null | grep -q GNU' failed:
ar: one of options -dmpqrtsx is required
usage:  ar -d [-TLsv] archive file ...
	ar -m [-TLsv] archive file ...
	ar -m [-abiTLsv] position archive file ...
	ar -p [-TLsv] archive [file ...]
	ar -q [-cTLsv] archive file ...
	ar -r [-cuTLsv] archive file ...
	ar -r [-abciuTLsv] position archive file ...
	ar -t [-TLsv] archive [file ...]
	ar -x [-ouTLsv] archive [file ...]
DBG 78285: Compile check PIC (HAVE_PIC) (sub=0): gcc  -gstrict-dwarf -O2 -Wall -Werror _mkltmpi3KhWr.c -o _mkltmpi3KhWr.c.o   -fPIC 
DBG 78285: Setting PIC (PIC) status to ok (action disable)
DBG 78285: Compile check gnulib (WITH_GNULD) (sub=0): gcc  -gstrict-dwarf -O2 -fPIC -Wall -Werror _mkltmpNzwhXd.c -o _mkltmpNzwhXd.c.o   -shared -Wl,-soname,mkltest.0 
DBG 78285: compile check for gnulib (WITH_GNULD) failed: gcc  -gstrict-dwarf -O2 -fPIC -Wall -Werror _mkltmpNzwhXd.c -o _mkltmpNzwhXd.c.o   -shared -Wl,-soname,mkltest.0 : ld: unknown options: -soname 
clang: error: linker command failed with exit code 1 (use -v to see invocation)
DBG 78285: Setting gnulib (gnulib) status to failed (action cont)
DBG 78285: Check gnulib (WITH_GNULD, action cont (originally cont)) failed: compile check failed:
CC: CC
flags: -shared -Wl,-soname,mkltest.0
gcc  -gstrict-dwarf -O2 -fPIC -Wall -Werror _mkltmpNzwhXd.c -o _mkltmpNzwhXd.c.o   -shared -Wl,-soname,mkltest.0 :
ld: unknown options: -soname 
clang: error: linker command failed with exit code 1 (use -v to see invocation)
source: 
DBG 78285: Compile check osxlib (WITH_OSXLD) (sub=0): gcc  -gstrict-dwarf -O2 -fPIC -Wall -Werror _mkltmpGYwtr0.c -o _mkltmpGYwtr0.c.o   -dynamiclib -Wl,-install_name,/tmp/mkltest.so.0 
DBG 78285: Setting osxlib (osxlib) status to ok (action cont)
DBG 78285: Compile check ldsflagvs () (sub=0): gcc  -gstrict-dwarf -O2 -fPIC -Wall -Werror _mkltmpSLgahN.c -o _mkltmpSLgahN.c.o   -shared -Wl,--version-script=_mkltmpUlZBv8 
DBG 78285: compile check for ldsflagvs () failed: gcc  -gstrict-dwarf -O2 -fPIC -Wall -Werror _mkltmpSLgahN.c -o _mkltmpSLgahN.c.o   -shared -Wl,--version-script=_mkltmpUlZBv8 : ld: unknown options: --version-script=_mkltmpUlZBv8 
clang: error: linker command failed with exit code 1 (use -v to see invocation)
DBG 78285: Setting ldsflagvs (ldsflagvs) status to failed (action cont)
DBG 78285: Check ldsflagvs (, action cont (originally cont)) failed: compile check failed:
CC: CC
flags: -shared -Wl,--version-script=_mkltmpUlZBv8
gcc  -gstrict-dwarf -O2 -fPIC -Wall -Werror _mkltmpSLgahN.c -o _mkltmpSLgahN.c.o   -shared -Wl,--version-script=_mkltmpUlZBv8 :
ld: unknown options: --version-script=_mkltmpUlZBv8 
clang: error: linker command failed with exit code 1 (use -v to see invocation)
source: 
DBG 78285: Compile check ldsflagm () (sub=0): gcc  -gstrict-dwarf -O2 -fPIC -Wall -Werror _mkltmpnYWgbz.c -o _mkltmpnYWgbz.c.o   -shared -Wl,-M_mkltmpUlZBv8 
DBG 78285: compile check for ldsflagm () failed: gcc  -gstrict-dwarf -O2 -fPIC -Wall -Werror _mkltmpnYWgbz.c -o _mkltmpnYWgbz.c.o   -shared -Wl,-M_mkltmpUlZBv8 : ld: unknown options: -M_mkltmpUlZBv8 
clang: error: linker command failed with exit code 1 (use -v to see invocation)
DBG 78285: Setting ldsflagm (ldsflagm) status to failed (action ignore)
DBG 78285: Check ldsflagm (, action ignore (originally ignore)) failed: compile check failed:
CC: CC
flags: -shared -Wl,-M_mkltmpUlZBv8
gcc  -gstrict-dwarf -O2 -fPIC -Wall -Werror _mkltmpnYWgbz.c -o _mkltmpnYWgbz.c.o   -shared -Wl,-M_mkltmpUlZBv8 :
ld: unknown options: -M_mkltmpUlZBv8 
clang: error: linker command failed with exit code 1 (use -v to see invocation)
source: 
DBG 78285: Compile check __atomic_32 (HAVE_ATOMICS_32) (sub=0): gcc  -gstrict-dwarf -O2 -fPIC -Wall -Werror _mkltmp0X6WHq.c -o _mkltmp0X6WHq.c.o    
DBG 78285: Setting __atomic_32 (__atomic_32) status to ok (action cont)
DBG 78285: Compile check __atomic_64 (HAVE_ATOMICS_64) (sub=0): gcc  -gstrict-dwarf -O2 -fPIC -Wall -Werror _mkltmpVQxsFH.c -o _mkltmpVQxsFH.c.o    
DBG 78285: Setting __atomic_64 (__atomic_64) status to ok (action cont)
DBG 78285: Compile check socket () (sub=0): gcc  -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -Wall -Werror _mkltmpYTFTL3.c -o _mkltmpYTFTL3.c.o    
DBG 78285: Setting socket (socket) status to ok (action cont)
DBG 78285: Setting parseversion (parseversion) status to ok (action cont)
DBG 78285: librt: Check for static library (libs -lrt, arfile variable STATIC_LIB_librt=, static filenames )
DBG 78285: Compile check librt () (sub=0): gcc  -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -Wall -Werror _mkltmpPO7S1N.c -o _mkltmpPO7S1N.c.o   -lrt 
DBG 78285: compile check for librt () failed: gcc  -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -Wall -Werror _mkltmpPO7S1N.c -o _mkltmpPO7S1N.c.o   -lrt : ld: library 'rt' not found
clang: error: linker command failed with exit code 1 (use -v to see invocation)
DBG 78285: Setting librt (librt) status to failed (action cont)
DBG 78285: Check librt (, action cont (originally cont)) failed: compile check failed:
CC: CC
flags: -lrt
gcc  -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -Wall -Werror _mkltmpPO7S1N.c -o _mkltmpPO7S1N.c.o   -lrt :
ld: library 'rt' not found
clang: error: linker command failed with exit code 1 (use -v to see invocation)
source: 
DBG 78285: libpthread: Check for static library (libs -lpthread, arfile variable STATIC_LIB_libpthread=, static filenames )
DBG 78285: Compile check libpthread () (sub=0): gcc  -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -Wall -Werror _mkltmpSyxmlj.c -o _mkltmpSyxmlj.c.o   -lpthread 
DBG 78285: Setting libpthread (libpthread) status to ok (action fail)
DBG 78285: libpthread: from lib_check: LIBS: prepend -lpthread
DBG 78285: c11threads: Check for static library (libs -lpthread, arfile variable STATIC_LIB_c11threads=, static filenames )
DBG 78285: Compile check c11threads (WITH_C11THREADS) (sub=0): gcc  -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -Wall -Werror _mkltmpttiG0R.c -o _mkltmpttiG0R.c.o   -lpthread -lpthread
DBG 78285: compile check for c11threads (WITH_C11THREADS) failed: gcc  -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -Wall -Werror _mkltmpttiG0R.c -o _mkltmpttiG0R.c.o   -lpthread -lpthread: _mkltmpttiG0R.c:2:10: fatal error: 'threads.h' file not found
#include <threads.h>
         ^~~~~~~~~~~
1 error generated.
DBG 78285: Setting c11threads (c11threads) status to failed (action disable)
DBG 78285: Check c11threads (WITH_C11THREADS, action disable (originally disable)) failed: compile check failed:
CC: CC
flags: -lpthread
gcc  -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -Wall -Werror _mkltmpttiG0R.c -o _mkltmpttiG0R.c.o   -lpthread -lpthread:
_mkltmpttiG0R.c:2:10: fatal error: 'threads.h' file not found
#include <threads.h>
         ^~~~~~~~~~~
1 error generated.
source: 
#include <threads.h>


static int start_func (void *arg) {
   int iarg = *(int *)arg;
   return iarg;
}

void foo (void) {
    thrd_t thr;
    int arg = 1;
    if (thrd_create(&thr, start_func, (void *)&arg) != thrd_success) {
      ;
    }
}

DBG 78285: libdl: Check for static library (libs -ldl, arfile variable STATIC_LIB_libdl=, static filenames )
DBG 78285: Compile check libdl (WITH_LIBDL) (sub=0): gcc  -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -Wall -Werror _mkltmp1qHP9l.c -o _mkltmp1qHP9l.c.o   -ldl -lpthread
DBG 78285: Setting libdl (libdl) status to ok (action disable)
DBG 78285: libdl: from lib_check: LIBS: prepend -ldl
DBG 78285: zlib: Check for static library (libs -lz, arfile variable STATIC_LIB_zlib=, static filenames libz.a)
DBG 78285: Compile check zlib (WITH_ZLIB) (sub=0): gcc  -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -Wall -Werror _mkltmp7vBO8c.c -o _mkltmp7vBO8c.c.o   -lz -ldl -lpthread
DBG 78285: Setting zlib (zlib) status to ok (action disable)
DBG 78285: zlib: from lib_check: LIBS: prepend -lz
DBG 78285: libcrypto: Check for static library (libs -lcrypto, arfile variable STATIC_LIB_libcrypto=, static filenames libcrypto.a)
DBG 78285: Compile check libcrypto () (sub=0): gcc  -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -Wall -Werror _mkltmpNuUTTT.c -o _mkltmpNuUTTT.c.o   -lcrypto -lz -ldl -lpthread
DBG 78285: compile check for libcrypto () failed: gcc  -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -Wall -Werror _mkltmpNuUTTT.c -o _mkltmpNuUTTT.c.o   -lcrypto -lz -ldl -lpthread: _mkltmpNuUTTT.c:2:10: fatal error: 'openssl/ssl.h' file not found
#include <openssl/ssl.h>
         ^~~~~~~~~~~~~~~
1 error generated.
DBG 78285: Setting libcrypto (libcrypto) status to failed (action disable)
DBG 78285: Check libcrypto (, action disable (originally disable)) failed: compile check failed:
CC: CC
flags: -lcrypto
gcc  -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -Wall -Werror _mkltmpNuUTTT.c -o _mkltmpNuUTTT.c.o   -lcrypto -lz -ldl -lpthread:
_mkltmpNuUTTT.c:2:10: fatal error: 'openssl/ssl.h' file not found
#include <openssl/ssl.h>
         ^~~~~~~~~~~~~~~
1 error generated.
source: 
#include <openssl/ssl.h>
#include <openssl/evp.h>
#if OPENSSL_VERSION_NUMBER < 0x1000100fL
#error "Requires OpenSSL version >= v1.0.1"
#endif
DBG 78285: libsasl2: Check for static library (libs -lsasl2, arfile variable STATIC_LIB_libsasl2=, static filenames )
DBG 78285: Compile check libsasl2 (WITH_SASL_CYRUS) (sub=0): gcc  -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -Wall -Werror _mkltmp7rs1Gr.c -o _mkltmp7rs1Gr.c.o   -lsasl2 -lz -ldl -lpthread
DBG 78285: Setting libsasl2 (libsasl2) status to ok (action disable)
DBG 78285: libsasl2: from lib_check: LIBS: prepend -lsasl2
DBG 78285: libzstd: Check for static library (libs -lzstd, arfile variable STATIC_LIB_libzstd=, static filenames libzstd.a)
DBG 78285: Compile check libzstd (WITH_ZSTD) (sub=0): gcc  -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -Wall -Werror _mkltmpfNmn5h.c -o _mkltmpfNmn5h.c.o   -lzstd -lsasl2 -lz -ldl -lpthread
DBG 78285: compile check for libzstd (WITH_ZSTD) failed: gcc  -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -Wall -Werror _mkltmpfNmn5h.c -o _mkltmpfNmn5h.c.o   -lzstd -lsasl2 -lz -ldl -lpthread: _mkltmpfNmn5h.c:2:10: fatal error: 'zstd.h' file not found
#include <zstd.h>
         ^~~~~~~~
1 error generated.
DBG 78285: Setting libzstd (libzstd) status to failed (action disable)
DBG 78285: Check libzstd (WITH_ZSTD, action disable (originally disable)) failed: compile check failed:
CC: CC
flags: -lzstd
gcc  -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -Wall -Werror _mkltmpfNmn5h.c -o _mkltmpfNmn5h.c.o   -lzstd -lsasl2 -lz -ldl -lpthread:
_mkltmpfNmn5h.c:2:10: fatal error: 'zstd.h' file not found
#include <zstd.h>
         ^~~~~~~~
1 error generated.
source: 
#include <zstd.h>
#include <zstd_errors.h>

void foo (void) {
     ZSTD_getFrameContentSize(NULL, 0);
}

DBG 78285: libcurl: Check for static library (libs -lcurl, arfile variable STATIC_LIB_libcurl=, static filenames libcurl.a)
DBG 78285: Compile check libcurl (WITH_CURL) (sub=0): gcc  -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -Wall -Werror _mkltmpjf6nz1.c -o _mkltmpjf6nz1.c.o   -lcurl -lsasl2 -lz -ldl -lpthread
DBG 78285: Setting libcurl (libcurl) status to ok (action disable)
DBG 78285: libcurl: from lib_check: LIBS: prepend -lcurl
DBG 78285: libm: Check for static library (libs -lm, arfile variable STATIC_LIB_libm=, static filenames )
DBG 78285: Compile check libm () (sub=0): gcc  -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -Wall -Werror _mkltmpuXwrUU.c -o _mkltmpuXwrUU.c.o   -lm -lcurl -lsasl2 -lz -ldl -lpthread
DBG 78285: Setting libm (libm) status to ok (action disable)
DBG 78285: libm: from lib_check: LIBS: prepend -lm
DBG 78285: liblz4: Check for static library (libs -llz4, arfile variable STATIC_LIB_liblz4=, static filenames liblz4.a)
DBG 78285: Compile check liblz4 (WITH_LZ4_EXT) (sub=0): gcc  -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -Wall -Werror _mkltmpwnYcu7.c -o _mkltmpwnYcu7.c.o   -llz4 -lm -lcurl -lsasl2 -lz -ldl -lpthread
DBG 78285: compile check for liblz4 (WITH_LZ4_EXT) failed: gcc  -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -Wall -Werror _mkltmpwnYcu7.c -o _mkltmpwnYcu7.c.o   -llz4 -lm -lcurl -lsasl2 -lz -ldl -lpthread: _mkltmpwnYcu7.c:1:10: fatal error: 'lz4frame.h' file not found
#include <lz4frame.h>
         ^~~~~~~~~~~~
1 error generated.
DBG 78285: Setting liblz4 (liblz4) status to failed (action disable)
DBG 78285: Check liblz4 (WITH_LZ4_EXT, action disable (originally disable)) failed: compile check failed:
CC: CC
flags: -llz4
gcc  -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -Wall -Werror _mkltmpwnYcu7.c -o _mkltmpwnYcu7.c.o   -llz4 -lm -lcurl -lsasl2 -lz -ldl -lpthread:
_mkltmpwnYcu7.c:1:10: fatal error: 'lz4frame.h' file not found
#include <lz4frame.h>
         ^~~~~~~~~~~~
1 error generated.
source: #include <lz4frame.h>
DBG 78285: Compile check syslog (WITH_SYSLOG) (sub=0): gcc  -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -Wall -Werror _mkltmpoWTDWt.c -o _mkltmpoWTDWt.c.o    -lm -lcurl -lsasl2 -lz -ldl -lpthread
DBG 78285: Setting syslog (syslog) status to ok (action disable)
DBG 78285: Compile check rapidjson (WITH_RAPIDJSON) (sub=0): g++  -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -Wall -Werror _mkltmpWvu9cB.cpp -o _mkltmpWvu9cB.cpp.o    -lm -lcurl -lsasl2 -lz -ldl -lpthread
DBG 78285: compile check for rapidjson (WITH_RAPIDJSON) failed: g++  -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -Wall -Werror _mkltmpWvu9cB.cpp -o _mkltmpWvu9cB.cpp.o    -lm -lcurl -lsasl2 -lz -ldl -lpthread: _mkltmpWvu9cB.cpp:1:10: fatal error: 'rapidjson/schema.h' file not found
#include <rapidjson/schema.h>
         ^~~~~~~~~~~~~~~~~~~~
1 error generated.
DBG 78285: Setting rapidjson (rapidjson) status to failed (action disable)
DBG 78285: Check rapidjson (WITH_RAPIDJSON, action disable (originally disable)) failed: compile check failed:
CC: CXX
flags: 
g++  -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -Wall -Werror _mkltmpWvu9cB.cpp -o _mkltmpWvu9cB.cpp.o    -lm -lcurl -lsasl2 -lz -ldl -lpthread:
_mkltmpWvu9cB.cpp:1:10: fatal error: 'rapidjson/schema.h' file not found
#include <rapidjson/schema.h>
         ^~~~~~~~~~~~~~~~~~~~
1 error generated.
source: #include <rapidjson/schema.h>
DBG 78285: Compile check crc32chw (WITH_CRC32C_HW) (sub=0): gcc  -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -Wall -Werror _mkltmpZ3Uz6J.c -o _mkltmpZ3Uz6J.c.o    -lm -lcurl -lsasl2 -lz -ldl -lpthread
DBG 78285: compile check for crc32chw (WITH_CRC32C_HW) failed: gcc  -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -Wall -Werror _mkltmpZ3Uz6J.c -o _mkltmpZ3Uz6J.c.o    -lm -lcurl -lsasl2 -lz -ldl -lpthread: _mkltmpZ3Uz6J.c:12:14: error: invalid output constraint '=c' in asm
           : "=c"(ecx)
             ^
1 error generated.
DBG 78285: Setting crc32chw (crc32chw) status to failed (action disable)
DBG 78285: Check crc32chw (WITH_CRC32C_HW, action disable (originally disable)) failed: compile check failed:
CC: CC
flags: 
gcc  -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -Wall -Werror _mkltmpZ3Uz6J.c -o _mkltmpZ3Uz6J.c.o    -lm -lcurl -lsasl2 -lz -ldl -lpthread:
_mkltmpZ3Uz6J.c:12:14: error: invalid output constraint '=c' in asm
           : "=c"(ecx)
             ^
1 error generated.
source: 
#include <inttypes.h>
#include <stdio.h>
#define LONGx1 "8192"
#define LONGx2 "16384"
void foo (void) {
   const char *n = "abcdefghijklmnopqrstuvwxyz0123456789";
   uint64_t c0 = 0, c1 = 1, c2 = 2;
   uint64_t s;
   uint32_t eax = 1, ecx;
   __asm__("cpuid"
           : "=c"(ecx)
           : "a"(eax)
           : "%ebx", "%edx");
   __asm__("crc32b\t" "(%1), %0"
           : "=r"(c0)
           : "r"(n), "0"(c0));
   __asm__("crc32q\t" "(%3), %0\n\t"
           "crc32q\t" LONGx1 "(%3), %1\n\t"
           "crc32q\t" LONGx2 "(%3), %2"
           : "=r"(c0), "=r"(c1), "=r"(c2)
           : "r"(n), "0"(c0), "1"(c1), "2"(c2));
  s = c0 + c1 + c2;
  printf("avoiding unused code removal by printing %d, %d, %d\n", (int)s, (int)eax, (int)ecx);
}

DBG 78285: Compile check regex (HAVE_REGEX) (sub=0): gcc  -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -Wall -Werror _mkltmpeEWxIP.c -o _mkltmpeEWxIP.c.o    -lm -lcurl -lsasl2 -lz -ldl -lpthread
DBG 78285: Setting regex (regex) status to ok (action disable)
DBG 78285: Compile check rand_r (HAVE_RAND_R) (sub=0): gcc  -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -Wall -Werror _mkltmprZjHeJ.c -o _mkltmprZjHeJ.c.o    -lm -lcurl -lsasl2 -lz -ldl -lpthread
DBG 78285: Setting rand_r (rand_r) status to ok (action disable)
DBG 78285: Compile check strndup (HAVE_STRNDUP) (sub=0): gcc  -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -Wall -Werror _mkltmpWmp3d1.c -o _mkltmpWmp3d1.c.o    -lm -lcurl -lsasl2 -lz -ldl -lpthread
DBG 78285: Setting strndup (strndup) status to ok (action disable)
DBG 78285: Compile check strlcpy (HAVE_STRLCPY) (sub=0): gcc  -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -Wall -Werror _mkltmpbU19CD.c -o _mkltmpbU19CD.c.o    -lm -lcurl -lsasl2 -lz -ldl -lpthread
DBG 78285: Setting strlcpy (strlcpy) status to ok (action disable)
DBG 78285: Compile check strerror_r (HAVE_STRERROR_R) (sub=0): gcc  -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -Wall -Werror _mkltmpdiOmLK.c -o _mkltmpdiOmLK.c.o    -lm -lcurl -lsasl2 -lz -ldl -lpthread
DBG 78285: Setting strerror_r (strerror_r) status to ok (action disable)
DBG 78285: Compile check strcasestr (HAVE_STRCASESTR) (sub=0): gcc  -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -Wall -Werror _mkltmpaKuJLv.c -o _mkltmpaKuJLv.c.o    -lm -lcurl -lsasl2 -lz -ldl -lpthread
DBG 78285: Setting strcasestr (strcasestr) status to ok (action disable)
DBG 78285: Compile check pthread_setname_gnu (HAVE_PTHREAD_SETNAME_GNU) (sub=0): gcc  -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -Wall -Werror _mkltmpp6jtTn.c -o _mkltmpp6jtTn.c.o   -D_GNU_SOURCE -lpthread -lm -lcurl -lsasl2 -lz -ldl -lpthread
DBG 78285: compile check for pthread_setname_gnu (HAVE_PTHREAD_SETNAME_GNU) failed: gcc  -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -Wall -Werror _mkltmpp6jtTn.c -o _mkltmpp6jtTn.c.o   -D_GNU_SOURCE -lpthread -lm -lcurl -lsasl2 -lz -ldl -lpthread: _mkltmpp6jtTn.c:5:38: error: too many arguments to function call, expected 1, have 2
  pthread_setname_np(pthread_self(), "abc");
  ~~~~~~~~~~~~~~~~~~                 ^~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/pthread.h:535:5: note: 'pthread_setname_np' declared here
int     pthread_setname_np(const char*);
        ^
1 error generated.
DBG 78285: Setting pthread_setname_gnu (pthread_setname_gnu) status to failed (action disable)
DBG 78285: Check pthread_setname_gnu (HAVE_PTHREAD_SETNAME_GNU, action disable (originally disable)) failed: compile check failed:
CC: CC
flags: -D_GNU_SOURCE -lpthread
gcc  -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -Wall -Werror _mkltmpp6jtTn.c -o _mkltmpp6jtTn.c.o   -D_GNU_SOURCE -lpthread -lm -lcurl -lsasl2 -lz -ldl -lpthread:
_mkltmpp6jtTn.c:5:38: error: too many arguments to function call, expected 1, have 2
  pthread_setname_np(pthread_self(), "abc");
  ~~~~~~~~~~~~~~~~~~                 ^~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/pthread.h:535:5: note: 'pthread_setname_np' declared here
int     pthread_setname_np(const char*);
        ^
1 error generated.
source: 
#include <pthread.h>

void foo (void) {
  pthread_setname_np(pthread_self(), "abc");
}

DBG 78285: Compile check pthread_setname_darwin (HAVE_PTHREAD_SETNAME_DARWIN) (sub=0): gcc  -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -Wall -Werror _mkltmpWB34S6.c -o _mkltmpWB34S6.c.o   -D_DARWIN_C_SOURCE -lpthread -lm -lcurl -lsasl2 -lz -ldl -lpthread
DBG 78285: Setting pthread_setname_darwin (pthread_setname_darwin) status to ok (action disable)
DBG 78285: Setting nm (nm) status to ok (action cont)
DBG 78285: Compile check getrusage (HAVE_GETRUSAGE) (sub=0): gcc  -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -Wall -Werror _mkltmpuWHhrw.c -o _mkltmpuWHhrw.c.o    -lm -lcurl -lsasl2 -lz -ldl -lpthread
DBG 78285: Setting getrusage (getrusage) status to ok (action disable)
@emasab
Copy link
Contributor

emasab commented Jul 23, 2024

A forward declaration that is missing. This is also causing build issues in Ubuntu 24.04. We have the fix but we can't push to the repos right now because they're under maintenance.

Update: it happens only when it's configured without OpenSSL

@emasab emasab added the bug label Jul 23, 2024
@emasab emasab changed the title Unable to build on macOS since #4721 Unable to build without SSL since #4721 Jul 23, 2024
@felixveysseyre
Copy link

@emasab any news about the push of the fix ?

@connoranderson
Copy link

+1 also seeing this issue when using --disable-ssl flag

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

Successfully merging a pull request may close this issue.

4 participants