Skip to content

alloca.h not found (freebsd 14.3) #544

@paigeadelethompson

Description

@paigeadelethompson
➜  build git:(master) cmake ..
-- The C compiler identification is Clang 19.1.7
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
CMake Warning at CMakeLists.txt:178 (message):
  valgrind executable not found! Disabling memory leaks tests.


-- Could NOT find CMocka (missing: CMOCKA_LIBRARIES CMOCKA_INCLUDE_DIR) (Required is at least version "1.0.1")
-- Disabling tests because of missing CMocka
-- Could NOT find Uncrustify (missing: UNCRUSTIFY) (Required is at least version "0.77")
-- Looking for _POSIX_TIMERS
-- Looking for _POSIX_TIMERS - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Looking for pthread_mutex_timedlock
-- Looking for pthread_mutex_timedlock - found
-- Looking for pthread_mutex_clocklock
-- Looking for pthread_mutex_clocklock - not found
-- Looking for pthread_rwlock_timedrdlock
-- Looking for pthread_rwlock_timedrdlock - found
-- Looking for pthread_rwlock_clockrdlock
-- Looking for pthread_rwlock_clockrdlock - not found
-- Looking for pthread_rwlock_timedwrlock
-- Looking for pthread_rwlock_timedwrlock - found
-- Looking for pthread_rwlock_clockwrlock
-- Looking for pthread_rwlock_clockwrlock - not found
-- Looking for pthread_cond_clockwait
-- Looking for pthread_cond_clockwait - not found
-- Looking for vdprintf
-- Looking for vdprintf - found
-- Looking for asprintf
-- Looking for asprintf - found
-- Looking for vasprintf
-- Looking for vasprintf - found
-- Looking for getline
-- Looking for getline - found
-- Looking for strndup
-- Looking for strndup - found
-- Looking for strnstr
-- Looking for strnstr - found
-- Looking for strdupa
-- Looking for strdupa - not found
-- Looking for strchrnul
-- Looking for strchrnul - found
-- Looking for get_current_dir_name
-- Looking for get_current_dir_name - not found
-- Looking for timegm
-- Looking for timegm - found
-- Looking for crypt.h
-- Looking for crypt.h - not found
-- Looking for crypt_r
-- Looking for crypt_r - not found
-- Looking for stdatomic.h
-- Looking for stdatomic.h - found
-- Looking for pthread_rwlockattr_setkind_np
-- Looking for pthread_rwlockattr_setkind_np - not found
-- Looking for shadow.h
-- Looking for shadow.h - not found
-- Looking for termios.h
-- Looking for termios.h - found
-- Could NOT find MbedTLS (missing: MBEDTLS_INCLUDE_DIRS MBEDTLS_LIBRARIES) (Required is at least version "3.5.0")
-- Found OpenSSL: /usr/lib/libcrypto.so (found suitable version "3.0.16", minimum required is "3.0.0")
-- Found LibSSH: /usr/local/include (found suitable version "0.11.2", minimum required is "0.9.5")
-- Found CURL: /usr/local/lib/libcurl.so (found suitable version "8.14.1", minimum required is "7.30.0")
-- Looking for crypt in crypt
-- Looking for crypt in crypt - found
-- Found LibPAM: /usr/lib/libpam.so
-- SSH Keyboard Interactive system method: Linux PAM
-- Found LibYANG: /usr/local/lib/libyang.so (found suitable version "3.9.1", minimum required is "3.9.0")
-- Found PkgConfig: /usr/local/bin/pkg-config (found version "2.4.3")
CMake Warning at CMakeLists.txt:361 (message):
  pkg-config will not detect the new package after installation, adjust
  PKG_CONFIG_PATH using "export
  PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:lib/pkgconfig".


-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) 
-- Configuring done (2.0s)
-- Generating done (0.0s)
-- Build files have been written to: /home/sq/libnetconf2/build
➜  build git:(master) make -j8
[  8%] Building C object CMakeFiles/netconf2.dir/src/messages_server.c.o
[  8%] Building C object CMakeFiles/netconf2.dir/src/session_server.c.o
[ 12%] Building C object CMakeFiles/netconf2.dir/src/session.c.o
[ 16%] Building C object CMakeFiles/netconf2.dir/src/messages_client.c.o
[ 20%] Building C object CMakeFiles/netconf2.dir/src/log.c.o
[ 25%] Building C object CMakeFiles/netconf2.dir/src/server_config.c.o
[ 33%] Building C object CMakeFiles/netconf2.dir/src/io.c.o
[ 29%] Building C object CMakeFiles/netconf2.dir/src/session_client.c.o
In file included from /home/sq/libnetconf2/src/log.c:19:
In file included from /home/sq/libnetconf2/src/log_p.h:22:
/home/sq/libnetconf2/build/compat/compat.h:26:10: fatal error: 'alloca.h' file not found
   26 | #include <alloca.h>
      |          ^~~~~~~~~~
In file included from /home/sq/libnetconf2/src/session_server.c:36:
In file included from /home/sq/libnetconf2/src/io.c:34:
/home/sq/libnetconf2/build/compat/compat.h:26:10: fatal error: 'alloca.h' file not found
   26 | #include <alloca.h>
      |          ^~~~~~~~~~
In file included from /home/sq/libnetconf2/src/messages_client.c:25:
/home/sq/libnetconf2/build/compat/compat.h:26:10: fatal error: 'alloca.h' file not found
   26 | #include <alloca.h>
      |          ^~~~~~~~~~
In file included from /home/sq/libnetconf2/src/messages_server.c:26:
/home/sq/libnetconf2/build/compat/compat.h:26:10: fatal error: 'alloca.h' file not found
   26 | #include <alloca.h>
      |          ^~~~~~~~~~
In file included from /home/sq/libnetconf2/src/session.c:32:
/home/sq/libnetconf2/build/compat/compat.h:26:10: fatal error: 'alloca.h' file not found
   26 | #include <alloca.h>
      |          ^~~~~~~~~~
/home/sq/libnetconf2/build/compat/compat.h:26:10: fatal error: 'alloca.h' file not found
   26 | #include <alloca.h>
      |          ^~~~~~~~~~
In file included from /home/sq/libnetconf2/src/server_config.c:29:
/home/sq/libnetconf2/build/compat/compat.h:26:10: fatal error: 'alloca.h' file not found
   26 | #include <alloca.h>
      |          ^~~~~~~~~~
In file included from /home/sq/libnetconf2/src/session_client.c:47:
/home/sq/libnetconf2/build/compat/compat.h:26:10: fatal error: 'alloca.h' file not found
   26 | #include <alloca.h>
      |          ^~~~~~~~~~
1 error generated.
--- CMakeFiles/netconf2.dir/src/messages_server.c.o ---
*** [CMakeFiles/netconf2.dir/src/messages_server.c.o] Error code 1

make[2]: stopped in /home/sq/libnetconf2/build
1 error generated.
--- CMakeFiles/netconf2.dir/src/messages_client.c.o ---
*** [CMakeFiles/netconf2.dir/src/messages_client.c.o] Error code 1

make[2]: stopped in /home/sq/libnetconf2/build
1 error generated.
--- CMakeFiles/netconf2.dir/src/log.c.o ---
*** [CMakeFiles/netconf2.dir/src/log.c.o] Error code 1

make[2]: stopped in /home/sq/libnetconf2/build
1 error generated.
--- CMakeFiles/netconf2.dir/src/io.c.o ---
*** [CMakeFiles/netconf2.dir/src/io.c.o] Error code 1

make[2]: stopped in /home/sq/libnetconf2/build
1 error generated.
--- CMakeFiles/netconf2.dir/src/session.c.o ---
*** [CMakeFiles/netconf2.dir/src/session.c.o] Error code 1

make[2]: stopped in /home/sq/libnetconf2/build
1 error generated.
--- CMakeFiles/netconf2.dir/src/server_config.c.o ---
*** [CMakeFiles/netconf2.dir/src/server_config.c.o] Error code 1

make[2]: stopped in /home/sq/libnetconf2/build
1 error generated.
--- CMakeFiles/netconf2.dir/src/session_server.c.o ---
*** [CMakeFiles/netconf2.dir/src/session_server.c.o] Error code 1

make[2]: stopped in /home/sq/libnetconf2/build
1 error generated.
--- CMakeFiles/netconf2.dir/src/session_client.c.o ---
*** [CMakeFiles/netconf2.dir/src/session_client.c.o] Error code 1

make[2]: stopped in /home/sq/libnetconf2/build
8 errors

make[2]: stopped in /home/sq/libnetconf2/build
--- CMakeFiles/netconf2.dir/all ---
*** [CMakeFiles/netconf2.dir/all] Error code 2

make[1]: stopped in /home/sq/libnetconf2/build
1 error

make[1]: stopped in /home/sq/libnetconf2/build
*** [all] Error code 2

make: stopped in /home/sq/libnetconf2/build
1 error

make: stopped in /home/sq/libnetconf2/build
➜  build git:(master) find . -name 
➜  build git:(master) cd ..
➜  libnetconf2 git:(master) ls
CMakeLists.txt        FAQ.md                SECURITY.md           distro                modules               src
CMakeModules          FindLibNETCONF2.cmake build                 doc                   nc_client.h.in        tests
CODINGSTYLE.md        LICENSE               codecov.yml           examples              nc_server.h.in        uncrustify.cfg
Doxyfile.in           README.md             compat                libnetconf2.pc.in     nc_version.h.in
➜  libnetconf2 git:(master) find . -name "alloca.h"
➜  libnetconf2 git:(master) 
FreeBSD steelseries.netcrave.local 14.3-RELEASE FreeBSD 14.3-RELEASE releng/14.3-n271432-8c9ce319fef7 GENERIC amd64

Metadata

Metadata

Assignees

No one assigned

    Labels

    is:enhancementRequest for adding new feature or enahncing functionality.status:completedFrom the developer perspective, the issue was solved (bug fixed, question answered,...)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions