﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	uname	nginx_version
1773	Unable to build nginx as static	asarubbo@…		"Hello,

we are trying to build nginx static with the following code, on a clean Centos-7 x86_64:


{{{
#!/bin/bash

yum install pcre-devel gcc openssl-devel wget -y

MYWORKDIR=""/tmp/nginx-compile""
MYVERSION=""1.16.0""
MYFILE=""nginx-""${MYVERSION}"".tar.gz""

rm -fr ""${MYWORKDIR}"" > /dev/null 2>&1
mkdir ""${MYWORKDIR}""
cd ""${MYWORKDIR}""
wget -4 http://nginx.org/download/""${MYFILE}"" && tar xzf ""${MYFILE}"" && cd nginx-""${MYVERSION}""

./configure \
        --prefix=/usr \
        --sbin-path=/usr/sbin/nginx \
        --conf-path=/etc/nginx/nginx.conf \
        --error-log-path=/var/log/nginx/error.log \
        --http-log-path=/var/log/nginx/access.log \
        --pid-path=/run/nginx.pid \
        --lock-path=/run/lock/subsys/nginx \
        --http-client-body-temp-path=/var/lib/nginx/tmp/client_body \
        --http-proxy-temp-path=/var/lib/nginx/tmp/proxy \
        --http-fastcgi-temp-path=/var/lib/nginx/tmp/fastcgi \
        --http-uwsgi-temp-path=/var/lib/nginx/tmp/uwsgi \
        --http-scgi-temp-path=/var/lib/nginx/tmp/scgi \
        --user=nginx \
        --group=nginx \
        --with-http_ssl_module \
        --with-http_v2_module \
        --with-threads \
        --with-cc-opt=""-static -static-libgcc"" \
        --with-ld-opt=""""

make V=1
}}}

However the build fails at configure time with:

{{{
checking for int size ...
./configure: error: can not detect int size
make: *** No rule to make target `build', needed by `default'.  Stop.
}}}

What's wrong?
Thanks"	defect	closed	minor		nginx-package	1.15.x	invalid			Linux agostino2904ortk 3.10.0-957.10.1.el7.x86_64 #1 SMP Mon Mar 18 15:06:45 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux	/
