Error: can not define uint64_t when running ./configure

I am trying to build ngnix-0.7.64 on CentOS release 5.2 64bit. I am
getting this error when running ./configure. I am not able to find
anything on google. Please help.

./configure
checking for OS

  • Linux 2.6.18-92.1.22.el5 x86_64
    checking for C compiler … found
  • using GNU C compiler
  • gcc version: 4.1.2 20071124 (Red Hat 4.1.2-42)
    checking for gcc -pipe switch … found
    ------snip------
    checking for PCRE library … found
    checking for system md library … not found
    checking for system md5 library … not found
    checking for OpenSSL md5 crypto library … found
    checking for zlib library … found
    creating objs/Makefile
    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

Posted at Nginx Forum:

On Wed, Nov 25, 2009 at 04:31:39PM -0500, ppragin wrote:

------snip------
checking for uint64_t … uint64_t not found u_int64_t not found
./configure: error: can not define uint64_t

What is in objs/autoconf.err near “checking for uint64_t” ?


Igor S.
http://sysoev.ru/en/

the same problem on open suse

Posted at Nginx Forum:

Hello!

On Thu, Jan 06, 2011 at 01:34:46AM -0500, yang wrote:

the same problem on open suse

Well, the same question:

What is in objs/autoconf.err near “checking for uint64_t” ?

Though most likely you want to remove -Werror from CFLAGS, try

$ CFLAGS=“” ./configure

Alternatively, apply patch from here:

http://nginx.org/pipermail/nginx-devel/2010-November/000548.html

Maxim D.