Code Monkey home page Code Monkey logo

Comments (5)

VBart avatar VBart commented on August 24, 2024

Could you show your ./configure output and build/autoconf.err? It looks like you don't have any working shared memory facility in your system.

from unit.

zarianu avatar zarianu commented on August 24, 2024

Thank you for your prompt answer!

[kost@dev]% ./configure
configuring for Linux 4.9.50-x86_64-linode86 x86_64
checking for C compiler: cc

  • using GNU C compiler
  • gcc version 4.4.7 20120313 (Red Hat 4.4.7-18) (GCC)
    building an "echo" program
    checking for int size ... 4
    checking for long size ... 8
    checking for long long size ... 8
    checking for void * size ... 8
    checking for size_t size ... 8
    checking for off_t size ... 8
    checking for time_t size ... 8
    checking for C99 variadic macro ... found
    checking for GCC __builtin_expect() ... found
    checking for GCC __builtin_unreachable() ... found
    checking for GCC __builtin_prefetch() ... not found
    checking for GCC __builtin_clz() ... found
    checking for GCC attribute visibility ... found
    checking for GCC attribute aligned ... found
    checking for GCC attribute malloc ... found
    checking for GCC attribute packed ... found
    checking for GCC builtin atomic operations ... found
    checking for posix_memalign() ... found
    checking for Linux malloc_usable_size() ... found
    checking for alloca() ... found
    checking for Linux mallopt() ... found
    checking for MAP_ANON ... found
    checking for MAP_POPULATE ... found
    checking for MAP_PREFAULT_READ ... not found
    checking for shm_open() ... not found
    checking for shm_open() in librt ... found but is not working
    checking for memfd_create() ... not found
    checking for Linux clock_gettime(CLOCK_REALTIME_COARSE) ... found
    checking for FreeBSD clock_gettime(CLOCK_REALTIME_FAST) ... not found
    checking for clock_gettime(CLOCK_REALTIME) ... not found
    checking for clock_gettime(CLOCK_REALTIME) in librt ... found
    checking for Linux clock_gettime(CLOCK_MONOTONIC_COARSE) ... found
    checking for FreeBSD clock_gettime(CLOCK_MONOTONIC_FAST) ... not found
    checking for clock_gettime(CLOCK_MONOTONIC) ... not found
    checking for clock_gettime(CLOCK_MONOTONIC) in librt ... found
    checking for HP-UX hg_gethrtime() ... not found
    checking for struct tm.tm_gmtoff ... found
    checking for altzone ... not found
    checking for localtime_r() ... found
    checking for pthread_yield() ... found
    checking for pthread spinlock ... found
    checking for pthread spinlock zero initial value ... found but is not working
    checking for MacOSX spinlock ... not found
    checking for sem_timedwait() ... not found
    checking for sem_timedwait() in libpthread ... found
    checking for __thread ... found
    checking for Linux epoll ... found
    checking for Linux signalfd() ... found
    checking for Linux eventfd() ... found
    checking for kqueue ... not found
    checking for Solaris event port ... not found
    checking for /dev/poll ... not found
    checking for AIX pollset ... not found
    checking for AF_INET6 ... found
    checking for sockaddr.sa_len ... not found
    checking for struct sockaddr size ... 16
    checking for struct sockaddr_in size ... 16
    checking for struct sockaddr_in6 size ... 28
    checking for struct sockaddr_un size ... 110
    checking for struct sockaddr_storage size ... 128
    checking for socketpair(AF_UNIX, SOCK_SEQPACKET) ... found
    checking for struct msghdr.msg_control ... found
    checking for sys/filio.h ... not found
    checking for ioctl(FIONBIO) ... found
    checking for socket(SOCK_NONBLOCK) ... found
    checking for accept4() ... found
    checking for Linux sendfile() ... found
    checking for posix_fadvise() ... found
    checking for fcntl(F_READAHEAD) ... not found
    checking for fcntl(F_RDAHEAD) ... not found
    checking for getrandom() ... not found
    checking for ucontext ... found
    checking for dlopen() ... not found
    checking for dlopen() in libdl ... found
    checking for posix_spawn() ... found
    checking for setproctitle() ... not found
    creating build/Makefile

Configuration summary:

unit bin directory: "bin"
unit sbin directory: "sbin"
unit modules directory: "build"
unit state directory: "build"

unit pid file: "unit.pid"
unit log file: "unit.log"

unit control API socket: "unix:control.unit.sock"

non-privileged user: "nobody"
non-privileged group: ""

IPv6 support: YES
Unix domain sockets support: YES
debug logging: NO

autoconf.err.txt

from unit.

VBart avatar VBart commented on August 24, 2024

Right.

checking for shm_open() ... not found
checking for shm_open() in librt ... found but is not working
checking for memfd_create() ... not found

Are you building Unit in some very restricted environment? Do you have /dev/shm mounted? Could you provide more information about your system?

Also, it seems you don't have kernel header files:

checking for memfd_create()
build/autotest.c:1:25: error: linux/memfd.h: No such file or directory

from unit.

zarianu avatar zarianu commented on August 24, 2024

I'm using CentOS on Linode, KVM virtualization.

Thanks for idea about shared memory - /dev/shm permissions was 755 instead of 777, everything works like a charm after fixing that.

from unit.

VBart avatar VBart commented on August 24, 2024

After 5ed4d7b Unit won't be compiled on systems with no working shared memory. The build is dysfunctional in this case.

from unit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.