1.18.0 can't build under DragonFlyBSD

lhmwzy lhmwzy at 126.com
Fri May 29 09:19:43 UTC 2020


#/configure --prefix=/usr/local/nginxunit output:


./configure --prefix=/usr/local/nginxunit

configuring for DragonFly 5.8-RELEASE x86_64

checking for C compiler: cc

 + using GNU C compiler

 + gcc version 8.3 [DragonFly] Release/2019-02-22 

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 __builtin_popcount() ... 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() ... not found

checking for FreeBSD malloc_usable_size() ... not found

checking for MacOSX malloc_good_size() ... not found

checking for alloca() ... found

checking for Linux mallopt() ... not found

checking for MAP_ANON ... found

checking for MAP_POPULATE ... not found

checking for MAP_PREFAULT_READ ... not found

checking for shm_open() ... found

checking for shm_open(SHM_ANON) ... not found

checking for memfd_create() ... not found

checking for Linux clock_gettime(CLOCK_REALTIME_COARSE) ... not found

checking for FreeBSD clock_gettime(CLOCK_REALTIME_FAST) ... found

checking for clock_gettime(CLOCK_REALTIME) ... found

checking for Linux clock_gettime(CLOCK_MONOTONIC_COARSE) ... not found

checking for FreeBSD clock_gettime(CLOCK_MONOTONIC_FAST) ... 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 sem_timedwait() ... found

checking for __thread ... found

checking for Linux epoll ... not found

checking for kqueue ... found

checking for kqueue EVFILT_USER ... 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 ... 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 ... 106

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 ... found

checking for ioctl(FIONBIO) ... found

checking for socket(SOCK_NONBLOCK) ... found

checking for accept4() ... found

checking for Linux sendfile() ... not found

checking for FreeBSD sendfile() ... found

checking for posix_fadvise() ... found

checking for fcntl(F_READAHEAD) ... not found

checking for fcntl(F_RDAHEAD) ... not found

checking for getrandom() ... found

checking for ucontext ... found

checking for dlopen() ... found

checking for posix_spawn() ... found

checking for setproctitle() ... found

checking for getgrouplist() ... found

checking for clone(2) ... not found

checking for Linux pivot_root() ... not found

checking for prctl(PR_SET_NO_NEW_PRIVS) ... not found

checking for Linux mount() ... not found

checking for Bind mount() ... not found

checking for FreeBSD nmount() ... not found

checking for Linux umount2() ... not found

checking for unmount() ... found

checking for Linux capability ... not found

creating build/Makefile




Unit configuration summary:




  bin directory: ............. "/usr/local/nginxunit/bin"

  sbin directory: ............ "/usr/local/nginxunit/sbin"

  lib directory: ............. "/usr/local/nginxunit/lib"

  include directory: ......... "/usr/local/nginxunit/include"

  modules directory: ......... "/usr/local/nginxunit/modules"

  state directory: ........... "/usr/local/nginxunit/state"

  tmp directory: ............. "/usr/local/nginxunit/tmp"




  pid file: .................. "/usr/local/nginxunit/unit.pid"

  log file: .................. "/usr/local/nginxunit/unit.log"




  control API socket: ........ "unix:/usr/local/nginxunit/control.unit.sock"




  non-privileged user: ....... "nobody"

  non-privileged group: ...... ""




  IPv6 support: .............. YES

  Unix domain sockets support: YES

  TLS support: ............... NO




  process isolation: ......... NO




  debug logging: ............. NO
















At 2020-05-29 14:20:28, "lhmwzy" <lhmwzy at 126.com> wrote:

#uname -a:
DragonFly  5.8-RELEASE DragonFly v5.8.0.4.g1c9a5-RELEASE #0: Tue Mar 17 22:03:07 CST 2020     root at xxx.com:/usr/obj/usr/src/sys/lhmwzy  x86_64


#./configure --prefix=/usr/local/nginxunit


#make
.......
cc -c -pipe -fPIC -fvisibility=hidden -O -W -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wmissing-prototypes -Werror -g -I src -I build      -o build/src/nxt_http_response.o  -MMD -MF build/src/nxt_http_response.dep -MT build/src/nxt_http_response.o  src/nxt_http_response.c
cc -c -pipe -fPIC -fvisibility=hidden -O -W -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wmissing-prototypes -Werror -g -I src -I build      -o build/src/nxt_http_error.o  -MMD -MF build/src/nxt_http_error.dep -MT build/src/nxt_http_error.o  src/nxt_http_error.c
cc -c -pipe -fPIC -fvisibility=hidden -O -W -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wmissing-prototypes -Werror -g -I src -I build      -o build/src/nxt_http_route.o  -MMD -MF build/src/nxt_http_route.dep -MT build/src/nxt_http_route.o  src/nxt_http_route.c
cc -c -pipe -fPIC -fvisibility=hidden -O -W -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wmissing-prototypes -Werror -g -I src -I build      -o build/src/nxt_http_route_addr.o  -MMD -MF build/src/nxt_http_route_addr.dep -MT build/src/nxt_http_route_addr.o  src/nxt_http_route_addr.c
cc -c -pipe -fPIC -fvisibility=hidden -O -W -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wmissing-prototypes -Werror -g -I src -I build      -o build/src/nxt_http_return.o  -MMD -MF build/src/nxt_http_return.dep -MT build/src/nxt_http_return.o  src/nxt_http_return.c
cc -c -pipe -fPIC -fvisibility=hidden -O -W -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wmissing-prototypes -Werror -g -I src -I build      -o build/src/nxt_http_static.o  -MMD -MF build/src/nxt_http_static.dep -MT build/src/nxt_http_static.o  src/nxt_http_static.c
cc -c -pipe -fPIC -fvisibility=hidden -O -W -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wmissing-prototypes -Werror -g -I src -I build      -o build/src/nxt_http_proxy.o  -MMD -MF build/src/nxt_http_proxy.dep -MT build/src/nxt_http_proxy.o  src/nxt_http_proxy.c
cc -c -pipe -fPIC -fvisibility=hidden -O -W -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wmissing-prototypes -Werror -g -I src -I build      -o build/src/nxt_application.o  -MMD -MF build/src/nxt_application.dep -MT build/src/nxt_application.o  src/nxt_application.c
src/nxt_application.c: In function 'nxt_app_prefork':
src/nxt_application.c:481:29: error: variable 'lang' set but not used [-Werror=unused-but-set-variable]
     nxt_app_lang_module_t  *lang;
                             ^~~~
src/nxt_application.c:477:39: error: variable 'cap_chroot' set but not used [-Werror=unused-but-set-variable]
     nxt_int_t              cap_setid, cap_chroot;
                                       ^~~~~~~~~~
cc1: all warnings being treated as errors
*** Error code 1


Stop.
make: stopped in /home/lhm/unit




also,can't config with python


# ll /usr/local/lib/python3.6/config-3.6m/python-config.py
-r-xr-xr-x  1 root  wheel   2.0K 18-Mar-2020 21:35 /usr/local/lib/python3.6/config-3.6m/python-config.py


# ./configure python --module=py36  --config=/usr/local/lib/python3.6/config-3.6m/python-config.py
configuring Python module
checking for Python ... found
checking for Python version ... 3.6.9
auto/modules/python: /usr/local/bin//usr/local/lib/python3.6/config-3.6m/python: not found








 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/unit/attachments/20200529/47e0ba1a/attachment.htm>


More information about the unit mailing list