defining uint64_t, etc., during configure

Brian Lewis brian at monetra.com
Tue Apr 27 23:39:25 MSD 2010


On Tuesday, 27.04.10 at 22:35, Igor Sysoev wrote:
> Try the attached patch. It should show found replacements and fail on
> uintptr_t. Could you show the new ./configure output from
>
> checking for int size ... 4 bytes
> to
> checking for uintptr_t ...
>
> ?

Thank you for the patch. The output is

checking for int size ... 4 bytes
checking for long size ... 4 bytes
checking for long long size ... 8 bytes
checking for void * size ... 4 bytes
checking for int64_t ... int64_t not found, long long used
checking for uint64_t ... uint64_t not found u_int64_t not found, unsigned long long used
checking for int32_t ... int32_t not found, int used
checking for uint32_t ... uint32_t not found u_int32_t not found, unsigned int used
checking for sig_atomic_t ... found
checking for sig_atomic_t size ... 4 bytes
checking for socklen_t ... socklen_t not found, int used
checking for in_addr_t ... in_addr_t not found uint32_t not found, unsigned int used
checking for in_port_t ... in_port_t not found, u_short used
checking for rlim_t ... found
checking for uintptr_t ... uintptr_t not found , uint32_t used

./configure completes successfully. Then, make produces

gcc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Wunused-function -Wunused-variable -Wunused-value -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
                -o objs/src/core/nginx.o \
                src/core/nginx.c
In file included from src/os/unix/ngx_posix_config.h:96,
                 from src/core/ngx_config.h:41,
                 from src/core/nginx.c:7:
objs/ngx_auto_config.h:167: warning: redefinition of `int32_t'
/usr/include/sys/bitypes.h:82: warning: `int32_t' previously declared here



More information about the nginx mailing list