----------------------------------------
checking for C compiler
----------------------------------------
checking for gcc -pipe switch
----------------------------------------
checking for --with-ld-opt="-Wl,-rpath,/usr/local/openresty/luajit/lib"
----------------------------------------
checking for gcc builtin atomic operations
----------------------------------------
checking for C99 variadic macros
----------------------------------------
checking for gcc variadic macros
----------------------------------------
checking for unistd.h
----------------------------------------
checking for inttypes.h
----------------------------------------
checking for limits.h
----------------------------------------
checking for sys/filio.h
objs/autotest.c:3:23: fatal error: sys/filio.h: No such file or directory
#include <sys/filio.h>
^
compilation terminated.
----------
#include <sys/filio.h>
int main() {
return 0;
}
----------
cc -o objs/autotest objs/autotest.c
----------
----------------------------------------
checking for sys/param.h
----------------------------------------
checking for sys/mount.h
----------------------------------------
checking for sys/statvfs.h
----------------------------------------
checking for crypt.h
----------------------------------------
checking for poll()
----------------------------------------
checking for /dev/poll
objs/autotest.c:4:25: fatal error: sys/devpoll.h: No such file or directory
#include <sys/devpoll.h>
^
compilation terminated.
----------
#include <sys/types.h>
#include <unistd.h>
#include <sys/devpoll.h>
int main() {
int n, dp; struct dvpoll dvp;
dp = 0;
dvp.dp_fds = NULL;
dvp.dp_nfds = 0;
dvp.dp_timeout = 0;
n = ioctl(dp, DP_POLL, &dvp);
if (n == -1) return 1;
return 0;
}
----------
cc -o objs/autotest objs/autotest.c -Wl,-rpath,/usr/local/openresty/luajit/lib
----------
----------------------------------------
checking for kqueue
objs/autotest.c:4:23: fatal error: sys/event.h: No such file or directory
#include <sys/event.h>
^
compilation terminated.
----------
#include <sys/types.h>
#include <unistd.h>
#include <sys/event.h>
int main() {
int kq; kq = kqueue();
return 0;
}
----------
cc -o objs/autotest objs/autotest.c -Wl,-rpath,/usr/local/openresty/luajit/lib
----------
----------------------------------------
checking for crypt()
/tmp/ccflWOeh.o:autotest.c:(.text+0x1e): undefined reference to `crypt'
collect2: error: ld returned 1 exit status
----------
#include <sys/types.h>
#include <unistd.h>
int main() {
crypt("test", "salt");;
return 0;
}
----------
cc -o objs/autotest objs/autotest.c -Wl,-rpath,/usr/local/openresty/luajit/lib
----------
----------------------------------------
checking for crypt() in libcrypt
----------------------------------------
checking for F_READAHEAD
objs/autotest.c: In function 'main':
objs/autotest.c:7:14: error: 'F_READAHEAD' undeclared (first use in this function)
fcntl(0, F_READAHEAD, 1);;
^
objs/autotest.c:7:14: note: each undeclared identifier is reported only once for each function it appears in
----------
#include <sys/types.h>
#include <unistd.h>
#include <fcntl.h>
int main() {
fcntl(0, F_READAHEAD, 1);;
return 0;
}
----------
cc -o objs/autotest objs/autotest.c -Wl,-rpath,/usr/local/openresty/luajit/lib
----------
----------------------------------------
checking for posix_fadvise()
----------------------------------------
checking for O_DIRECT
----------------------------------------
checking for F_NOCACHE
objs/autotest.c: In function 'main':
objs/autotest.c:7:14: error: 'F_NOCACHE' undeclared (first use in this function)
fcntl(0, F_NOCACHE, 1);;
^
objs/autotest.c:7:14: note: each undeclared identifier is reported only once for each function it appears in
----------
#include <sys/types.h>
#include <unistd.h>
#include <fcntl.h>
int main() {
fcntl(0, F_NOCACHE, 1);;
return 0;
}
----------
cc -o objs/autotest objs/autotest.c -Wl,-rpath,/usr/local/openresty/luajit/lib
----------
----------------------------------------
checking for directio()
objs/autotest.c: In function 'main':
objs/autotest.c:8:17: error: 'DIRECTIO_ON' undeclared (first use in this function)
directio(0, DIRECTIO_ON);;
^
objs/autotest.c:8:17: note: each undeclared identifier is reported only once for each function it appears in
----------
#include <sys/types.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/fcntl.h>
int main() {
directio(0, DIRECTIO_ON);;
return 0;
}
----------
cc -o objs/autotest objs/autotest.c -Wl,-rpath,/usr/local/openresty/luajit/lib
----------
----------------------------------------
checking for statfs()
objs/autotest.c: In function 'main':
objs/autotest.c:9:20: error: storage size of 'fs' isn't known
struct statfs fs;
^
----------
#include <sys/types.h>
#include <unistd.h>
#include <sys/param.h>
#include <sys/mount.h>
int main() {
struct statfs fs;
statfs(".", &fs);;
return 0;
}
----------
cc -o objs/autotest objs/autotest.c -Wl,-rpath,/usr/local/openresty/luajit/lib
----------
----------------------------------------
checking for statvfs()
----------------------------------------
checking for dlopen()
----------------------------------------
checking for sched_yield()
----------------------------------------
checking for SO_SETFIB
objs/autotest.c: In function 'main':
objs/autotest.c:7:31: error: 'SO_SETFIB' undeclared (first use in this function)
setsockopt(0, SOL_SOCKET, SO_SETFIB, NULL, 4);
^
objs/autotest.c:7:31: note: each undeclared identifier is reported only once for each function it appears in
----------
#include <sys/types.h>
#include <unistd.h>
#include <sys/socket.h>
int main() {
setsockopt(0, SOL_SOCKET, SO_SETFIB, NULL, 4);
return 0;
}
----------
cc -o objs/autotest objs/autotest.c -Wl,-rpath,/usr/local/openresty/luajit/lib
----------
----------------------------------------
checking for SO_ACCEPTFILTER
objs/autotest.c: In function 'main':
objs/autotest.c:7:31: error: 'SO_ACCEPTFILTER' undeclared (first use in this function)
setsockopt(0, SOL_SOCKET, SO_ACCEPTFILTER, NULL, 0);
^
objs/autotest.c:7:31: note: each undeclared identifier is reported only once for each function it appears in
----------
#include <sys/types.h>
#include <unistd.h>
#include <sys/socket.h>
int main() {
setsockopt(0, SOL_SOCKET, SO_ACCEPTFILTER, NULL, 0);
return 0;
}
----------
cc -o objs/autotest objs/autotest.c -Wl,-rpath,/usr/local/openresty/luajit/lib
----------
----------------------------------------
checking for TCP_DEFER_ACCEPT
objs/autotest.c: In function 'main':
objs/autotest.c:9:32: error: 'TCP_DEFER_ACCEPT' undeclared (first use in this function)
setsockopt(0, IPPROTO_TCP, TCP_DEFER_ACCEPT, NULL, 0);
^
objs/autotest.c:9:32: note: each undeclared identifier is reported only once for each function it appears in
----------
#include <sys/types.h>
#include <unistd.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
int main() {
setsockopt(0, IPPROTO_TCP, TCP_DEFER_ACCEPT, NULL, 0);
return 0;
}
----------
cc -o objs/autotest objs/autotest.c -Wl,-rpath,/usr/local/openresty/luajit/lib
----------
----------------------------------------
checking for TCP_KEEPIDLE, TCP_KEEPINTVL, TCP_KEEPCNT
objs/autotest.c: In function 'main':
objs/autotest.c:9:32: error: 'TCP_KEEPIDLE' undeclared (first use in this function)
setsockopt(0, IPPROTO_TCP, TCP_KEEPIDLE, NULL, 0);
^
objs/autotest.c:9:32: note: each undeclared identifier is reported only once for each function it appears in
objs/autotest.c:10:46: error: 'TCP_KEEPINTVL' undeclared (first use in this function)
setsockopt(0, IPPROTO_TCP, TCP_KEEPINTVL, NULL, 0);
^
objs/autotest.c:11:46: error: 'TCP_KEEPCNT' undeclared (first use in this function)
setsockopt(0, IPPROTO_TCP, TCP_KEEPCNT, NULL, 0);
^
----------
#include <sys/types.h>
#include <unistd.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
int main() {
setsockopt(0, IPPROTO_TCP, TCP_KEEPIDLE, NULL, 0);
setsockopt(0, IPPROTO_TCP, TCP_KEEPINTVL, NULL, 0);
setsockopt(0, IPPROTO_TCP, TCP_KEEPCNT, NULL, 0);
return 0;
}
----------
cc -o objs/autotest objs/autotest.c -Wl,-rpath,/usr/local/openresty/luajit/lib
----------
----------------------------------------
checking for TCP_INFO
objs/autotest.c: In function 'main':
objs/autotest.c:9:31: error: invalid application of 'sizeof' to incomplete type 'struct tcp_info'
socklen_t optlen = sizeof(struct tcp_info);
^
objs/autotest.c:10:35: error: storage size of 'ti' isn't known
struct tcp_info ti;
^
objs/autotest.c:15:46: error: 'TCP_INFO' undeclared (first use in this function)
getsockopt(0, IPPROTO_TCP, TCP_INFO, &ti, &optlen);
^
objs/autotest.c:15:46: note: each undeclared identifier is reported only once for each function it appears in
----------
#include <sys/types.h>
#include <unistd.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
int main() {
socklen_t optlen = sizeof(struct tcp_info);
struct tcp_info ti;
ti.tcpi_rtt = 0;
ti.tcpi_rttvar = 0;
ti.tcpi_snd_cwnd = 0;
ti.tcpi_rcv_space = 0;
getsockopt(0, IPPROTO_TCP, TCP_INFO, &ti, &optlen);
return 0;
}
----------
cc -o objs/autotest objs/autotest.c -Wl,-rpath,/usr/local/openresty/luajit/lib
----------
----------------------------------------
checking for accept4()
----------------------------------------
checking for int size
----------------------------------------
checking for long size
----------------------------------------
checking for long long size
----------------------------------------
checking for void * size
----------------------------------------
checking for uint64_t
----------------------------------------
checking for sig_atomic_t
----------------------------------------
checking for sig_atomic_t size
----------------------------------------
checking for socklen_t
----------------------------------------
checking for in_addr_t
----------------------------------------
checking for in_port_t
----------------------------------------
checking for rlim_t
checking for uintptr_t
checking for system byte ordering
----------------------------------------
checking for size_t size
----------------------------------------
checking for off_t size
----------------------------------------
checking for time_t size
----------------------------------------
checking for setproctitle()
/tmp/ccmEs23b.o:autotest.c:(.text+0x16): undefined reference to `setproctitle'
collect2: error: ld returned 1 exit status
----------
#include <sys/types.h>
#include <unistd.h>
#include <stdlib.h>
int main() {
setproctitle("test");;
return 0;
}
----------
cc -o objs/autotest objs/autotest.c -Wl,-rpath,/usr/local/openresty/luajit/lib
----------
----------------------------------------
checking for pread()
----------------------------------------
checking for pwrite()
----------------------------------------
checking for sys_nerr
144
----------------------------------------
checking for localtime_r()
----------------------------------------
checking for posix_memalign()
----------------------------------------
checking for memalign()
----------------------------------------
checking for mmap(MAP_ANON|MAP_SHARED)
----------------------------------------
checking for mmap("/dev/zero", MAP_SHARED)
----------------------------------------
checking for System V shared memory
objs/autotest.c: In function 'main':
objs/autotest.c:9:51: error: 'SHM_R' undeclared (first use in this function)
id = shmget(IPC_PRIVATE, 4096, (SHM_R|SHM_W|IPC_CREAT));
^
objs/autotest.c:9:51: note: each undeclared identifier is reported only once for each function it appears in
objs/autotest.c:9:57: error: 'SHM_W' undeclared (first use in this function)
id = shmget(IPC_PRIVATE, 4096, (SHM_R|SHM_W|IPC_CREAT));
^
----------
#include <sys/types.h>
#include <unistd.h>
#include <sys/ipc.h>
#include <sys/shm.h>
int main() {
int id;
id = shmget(IPC_PRIVATE, 4096, (SHM_R|SHM_W|IPC_CREAT));
if (id == -1) return 1;
shmctl(id, IPC_RMID, NULL);;
return 0;
}
----------
cc -o objs/autotest objs/autotest.c -Wl,-rpath,/usr/local/openresty/luajit/lib
----------
----------------------------------------
checking for POSIX semaphores
----------------------------------------
checking for struct msghdr.msg_control
----------------------------------------
checking for ioctl(FIONBIO)
----------------------------------------
checking for struct tm.tm_gmtoff
objs/autotest.c: In function 'main':
objs/autotest.c:8:22: error: 'struct tm' has no member named 'tm_gmtoff'
struct tm tm; tm.tm_gmtoff = 0;
^
objs/autotest.c:9:40: error: 'struct tm' has no member named 'tm_gmtoff'
printf("%d", (int) tm.tm_gmtoff);
^
----------
#include <sys/types.h>
#include <unistd.h>
#include <time.h>
#include <stdio.h>
int main() {
struct tm tm; tm.tm_gmtoff = 0;
printf("%d", (int) tm.tm_gmtoff);
return 0;
}
----------
cc -o objs/autotest objs/autotest.c -Wl,-rpath,/usr/local/openresty/luajit/lib
----------
----------------------------------------
checking for struct dirent.d_namlen
objs/autotest.c: In function 'main':
objs/autotest.c:8:28: error: 'struct dirent' has no member named 'd_namlen'
struct dirent dir; dir.d_namlen = 0;
^
objs/autotest.c:9:41: error: 'struct dirent' has no member named 'd_namlen'
printf("%d", (int) dir.d_namlen);
^
----------
#include <sys/types.h>
#include <unistd.h>
#include <dirent.h>
#include <stdio.h>
int main() {
struct dirent dir; dir.d_namlen = 0;
printf("%d", (int) dir.d_namlen);
return 0;
}
----------
cc -o objs/autotest objs/autotest.c -Wl,-rpath,/usr/local/openresty/luajit/lib
----------
----------------------------------------
checking for struct dirent.d_type
----------------------------------------
checking for sysconf(_SC_NPROCESSORS_ONLN)
----------------------------------------
checking for openat(), fstatat()
----------------------------------------
checking for getaddrinfo()
----------------------------------------
checking for LuaJIT library in /home/hz/ngx_openresty-1.4.3.3/build/luajit-root/usr/local/openresty/luajit/lib and /home/hz/ngx_openresty-1.4.3.3/build/luajit-root/usr/local/openresty/luajit/include/luajit-2.0 (specified by the LUAJIT_LIB and LUAJIT_INC env)
----------------------------------------
checking for export symbols by default
/usr/lib/gcc/i686-pc-cygwin/4.8.2/../../../../i686-pc-cygwin/bin/ld: warning: --export-dynamic is not supported for PE targets, did you mean --export-all-symbols?
----------------------------------------
checking for SO_PASSCRED
objs/autotest.c: In function 'main':
objs/autotest.c:8:31: error: 'SO_PASSCRED' undeclared (first use in this function)
setsockopt(1, SOL_SOCKET, SO_PASSCRED, NULL, 0);;
^
objs/autotest.c:8:31: note: each undeclared identifier is reported only once for each function it appears in
----------
#include <sys/types.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
int main() {
setsockopt(1, SOL_SOCKET, SO_PASSCRED, NULL, 0);;
return 0;
}
----------
cc -o objs/autotest objs/autotest.c -Wl,-rpath,/usr/local/openresty/luajit/lib
----------
----------------------------------------
checking for PCRE library
----------------------------------------
checking for PCRE JIT support
----------------------------------------
checking for OpenSSL library
----------------------------------------
checking for zlib library