Performing C SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output: Change Dir: /var/tmp/portage/www-servers/pound-3.0/work/pound-3.0_build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/ninja cmTC_db56a && [1/2] Building C object CMakeFiles/cmTC_db56a.dir/src.c.o [2/2] Linking C executable cmTC_db56a FAILED: cmTC_db56a : && /usr/bin/x86_64-pc-linux-gnu-gcc -pipe -march=native -fno-diagnostics-color -O2 -Wno-unused-result -Wno-cast-qual -Wno-discarded-qualifiers -D_GNU_SOURCE -O2 -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -rdynamic CMakeFiles/cmTC_db56a.dir/src.c.o -o cmTC_db56a && : /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: CMakeFiles/cmTC_db56a.dir/src.c.o: in function `main': src.c:(.text.startup+0x23): undefined reference to `pthread_create' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: src.c:(.text.startup+0x2c): undefined reference to `pthread_detach' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: src.c:(.text.startup+0x35): undefined reference to `pthread_cancel' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: src.c:(.text.startup+0x40): undefined reference to `pthread_join' collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed. Source file was: #include static void* test_func(void* data) { return data; } int main(void) { pthread_t thread; pthread_create(&thread, NULL, test_func, NULL); pthread_detach(thread); pthread_cancel(thread); pthread_join(thread, NULL); pthread_atfork(NULL, NULL, NULL); pthread_exit(NULL); return 0; } Determining if files stdio.h;pthread.h;yaml.h;nanomsg/nn.h;nanomsg/inproc.h;nanomsg/pipeline.h;nanomsg/pair.h;nanomsg/reqrep.h;stdlib.h;unistd.h;fcntl.h;ctype.h;getopt.h;string.h;syslog.h;sys/types.h;sys/socket.h;netdb.h;sys/stat.h;time.h;poll.h;semaphore.h;pwd.h;grp.h;signal.h;setjmp.h;mbedtls/config.h;mbedtls/certs.h;mbedtls/oid.h;mbedtls/asn1.h;mbedtls/x509.h;mbedtls/entropy.h;mbedtls/ctr_drbg.h;mbedtls/ssl.h;mbedtls/error.h exist failed with the following output: Change Dir: /var/tmp/portage/www-servers/pound-3.0/work/pound-3.0_build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/ninja cmTC_6c07f && [1/2] Building C object CMakeFiles/cmTC_6c07f.dir/HAVE_MANDATORY_INCLUDES.c.o FAILED: CMakeFiles/cmTC_6c07f.dir/HAVE_MANDATORY_INCLUDES.c.o /usr/bin/x86_64-pc-linux-gnu-gcc -pipe -march=native -fno-diagnostics-color -O2 -Wno-unused-result -Wno-cast-qual -Wno-discarded-qualifiers -D_GNU_SOURCE -O2 -o CMakeFiles/cmTC_6c07f.dir/HAVE_MANDATORY_INCLUDES.c.o -c /var/tmp/portage/www-servers/pound-3.0/work/pound-3.0_build/CMakeFiles/CheckIncludeFiles/HAVE_MANDATORY_INCLUDES.c /var/tmp/portage/www-servers/pound-3.0/work/pound-3.0_build/CMakeFiles/CheckIncludeFiles/HAVE_MANDATORY_INCLUDES.c:28:10: fatal error: mbedtls/config.h: No such file or directory 28 | #include | ^~~~~~~~~~~~~~~~~~ compilation terminated. ninja: build stopped: subcommand failed. Source: /* */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include int main(void){return 0;}