Compile pronlem with old centosls

Igor Sysoev is at rambler-co.ru
Tue Jun 16 00:08:10 MSD 2009


On Mon, Jun 15, 2009 at 09:12:59PM +0200, Alejandro Mart??nez wrote:

> Igor Sysoev wrote:
> > On Mon, Jun 15, 2009 at 04:35:43PM +0200, Alejandro Mart??nez wrote:
> > 
> >>  + gcc version: 3.4.6 20060404 (Red Hat 3.4.6-10)
> >> checking for crypt.h ... found
> >> checking for nobody group ... found
> >> checking for dlopen() ... not found
> >> checking for int size ... 4 bytes
> >> [root at s164 nginx-0.8.1]# CC=gcc4 CXX=g++4 ./configure
> >> checking for limits.h ... not found
> >> checking for sys/prctl.h ... not found
> >> checking for O_DIRECT ... found
> >> checking for system md library ... not found
> >> [root at s164 nginx-0.8.1]#
> > The earliest RedHat I ever built nginx on was 6.2.
> > Could you run
> > 
> > grep -r int64_t /usr/include
> > 
> > to see if int64_t is on the host ?
> 
> 
> fgrep -r int64_t /usr/include

> /usr/include/stdint.h:typedef long int          int64_t;
> /usr/include/stdint.h:typedef long long int             int64_t;
> /usr/include/stdint.h:typedef unsigned long int uint64_t;
> /usr/include/stdint.h:typedef unsigned long long int    uint64_t;

Try the attached patch.


-- 
Igor Sysoev
http://sysoev.ru/en/
-------------- next part --------------
Index: src/os/unix/ngx_linux_config.h
===================================================================
--- src/os/unix/ngx_linux_config.h	(revision 2269)
+++ src/os/unix/ngx_linux_config.h	(working copy)
@@ -17,6 +17,7 @@
 #include <sys/types.h>
 #include <sys/time.h>
 #include <unistd.h>
+#include <inttypes.h>
 #include <stdarg.h>
 #include <stddef.h>             /* offsetof() */
 #include <stdio.h>


More information about the nginx mailing list