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

make install fails with 'are the same file' #36

Closed
oneumyvakin opened this issue Sep 16, 2017 · 2 comments
Closed

make install fails with 'are the same file' #36

oneumyvakin opened this issue Sep 16, 2017 · 2 comments
Assignees

Comments

@oneumyvakin
Copy link

root@deb9x64:~/unit# ./configure
configuring for Linux 4.9.0-3-amd64 x86_64
checking for C compiler: cc
 + using GNU C compiler
 + gcc version 6.3.0 20170516 (Debian 6.3.0-18)
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() ... 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 MAP_ANON ... found
checking for MAP_POPULATE ... found
checking for MAP_PREFAULT_READ ... not found
checking for shm_open() ... found
checking for memfd_create() ... 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) ... 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) ... 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 pid file:             "unit.pid"
  unit log file:             "unit.log"
  unit modules path:         "build"

  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
./configure php --module=php71 --config=/var/www/vhosts/example_com/php/bin/php-config --lib-path=/var/www/vhosts/example_com/php/lib/
configuring PHP module
checking for PHP ... found
 + PHP version: 7.1.9
 + PHP SAPI: [cli embed phpdbg cgi]
checking for PHP embed SAPI ... found
 + PHP module: php71.unit.so

make all finished without errors

root@deb9x64:~/unit# make install
install -d sbin
install -p build/unitd sbin/
install -d build
install -p build/php71.unit.so \
        build/
install: 'build/php71.unit.so' and 'build/php71.unit.so' are the same file
build/Makefile:983: recipe for target 'php71-install' failed
make: *** [php71-install] Error 1

The part of ~/unit/build/Makefile:983:

php71-install: php71
        install -d $(DESTDIR)build
        install -p build/php71.unit.so \
                $(DESTDIR)build/

I've not found where DESTDIR is defined.

@igorsysoev
Copy link
Contributor

DESTDIR can be defined during installation procedure
DESTDIR=/path/to/install make install

Otherwise you should specify absolute path for all configure parameters or add --prefix parameter. Using relative paths is useful for developing purposes when you run unitd in the same place where you have built it.

@tippexs
Copy link
Contributor

tippexs commented Nov 15, 2022

Closed issue due to clean ups.

@tippexs tippexs closed this as completed Nov 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants