Can't compile nginx 1.0.11 on Centos 5.7 x86_64
February 21, 2012 02:02AM
Hello.
I'm trying to install nginx 1.0.11 on Centos 5.7 x86_64. Server runs cpanel, so this version and compliling from source are mandatory. Nginxcp.com provides cpanel plugin, and I'm using its installation script. But it's failing. I was able to track it down to this: ./configure: error: can not define uint64_t
I've found a solution here at mailing lists that suggests adding CFLAGS="", but it doesn't work. I've downloaded sources from nginx.org to be sure, and it still doesn't work:

root@server [/usr/local/src]# wget http://nginx.org/download/nginx-1.0.11.tar.gz
--2012-02-21 08:47:05-- http://nginx.org/download/nginx-1.0.11.tar.gz
Resolving nginx.org... 206.251.255.63
Connecting to nginx.org|206.251.255.63|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 691501 (675K) [application/octet-stream]
Saving to: `nginx-1.0.11.tar.gz'

100%[==========================================================================================>] 691,501 161K/s in 4.7s

2012-02-21 08:47:10 (145 KB/s) - `nginx-1.0.11.tar.gz' saved [691501/691501]

root@server [/usr/local/src]# tar zxf nginx-1.0.11.tar.gz
root@server [/usr/local/src]# cd nginx-1.0.11
root@server [/usr/local/src/nginx-1.0.11]# CFLAGS="" ./configure
checking for OS
+ Linux 2.6.18-274.18.1.el5 x86_64
checking for C compiler ... found
+ using GNU C compiler
+ gcc version: 4.1.2 20080704 (Red Hat 4.1.2-51)
checking for gcc -pipe switch ... found
checking for gcc builtin atomic operations ... found
checking for C99 variadic macros ... found
checking for gcc variadic macros ... found
checking for unistd.h ... found
checking for inttypes.h ... found
checking for limits.h ... not found
checking for sys/filio.h ... not found
checking for sys/param.h ... not found
checking for sys/mount.h ... not found
checking for sys/statvfs.h ... found
checking for crypt.h ... found
checking for Linux specific features
checking for epoll ... found
checking for sendfile() ... not found
checking for sendfile64() ... not found
checking for sys/prctl.h ... not found
checking for prctl(PR_SET_DUMPABLE) ... not found
checking for sched_setaffinity() ... found
checking for crypt_r() ... found
checking for sys/vfs.h ... found
checking for nobody group ... found
checking for poll() ... found
checking for /dev/poll ... not found
checking for kqueue ... not found
checking for crypt() ... not found
checking for crypt() in libcrypt ... found
checking for F_READAHEAD ... not found
checking for posix_fadvise() ... found
checking for O_DIRECT ... found
checking for F_NOCACHE ... not found
checking for directio() ... not found
checking for statfs() ... found
checking for statvfs() ... found
checking for dlopen() ... not found
checking for dlopen() in libdl ... found
checking for sched_yield() ... found
checking for SO_SETFIB ... not found
checking for SO_ACCEPTFILTER ... not found
checking for TCP_DEFER_ACCEPT ... not found
checking for accept4() ... not found
checking for int size ... 4 bytes
checking for long size ... 8 bytes
checking for long long size ... 8 bytes
checking for void * size ... 8 bytes
checking for uint64_t ... uint64_t not found u_int64_t not found
./configure: error: can not define uint64_t

I've also tried applying the patch from http://nginx.org/pipermail/nginx-devel/2010-November/000548.html, and didn't help, too. Same goes for nginx 1.0.12.

My environment:
root@server [/usr/local/src/nginx-1.0.11]# cat /etc/redhat-release
CentOS release 5.7 (Final)
root@server [/usr/local/src/nginx-1.0.11]# uname -a
Linux server.mcserver1.com 2.6.18-274.18.1.el5 #1 SMP Thu Feb 9 12:45:44 EST 2012 x86_64 x86_64 x86_64 GNU/Linux
Attachments:
open | download - autoconf.err (18.3 KB)
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 124
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready