View Issue Details

IDProjectCategoryView StatusLast Update
0014828CentOS-7glibcpublic2019-07-19 15:10
Reporterchipitsine 
PriorityhighSeveritymajorReproducibilityalways
Status newResolutionopen 
Product Version7.5.1804 
Target VersionFixed in Version 
Summary0014828: IP_BIND_ADDRESS_NO_PORT is not defined in <netinet/in.h>
Descriptionnginx tries to detect whether OS supports IP_BIND_ADDRESS_NO_PORT or not by running test program in "configure" phase.
it does not detect it on centos-7.5 (the feature itself is supported, but not defined in proper header file)
Steps To Reproducewget http://nginx.org/download/nginx-1.13.12.tar.gz
tar zxvf nginx-1.13.12.tar.gz
cd nginx-1.13.12
./configure


have a look at objs/autoconf.err

----------------------------------------
checking for IP_BIND_ADDRESS_NO_PORT

objs/autotest.c: In function 'main':
objs/autotest.c:8:31: error: 'IP_BIND_ADDRESS_NO_PORT' undeclared (first use in this function)
     setsockopt(0, IPPROTO_IP, IP_BIND_ADDRESS_NO_PORT, NULL, 0);
                               ^
objs/autotest.c:8:31: note: each undeclared identifier is reported only once for each function it appears in
----------

#include <sys/types.h>
#include <unistd.h>
#include <sys/socket.h>
                  #include <netinet/in.h>

int main(void) {
    setsockopt(0, IPPROTO_IP, IP_BIND_ADDRESS_NO_PORT, NULL, 0);
    return 0;
}
Additional InformationI guess it might be related to RHEL as well.
can someone check ?
TagsNo tags attached.
abrt_hash
URL

Activities

tigalch

tigalch

2018-05-17 09:20

manager   ~0031857

Dont' build from sources. Make an RPM and install that.
And, you can even use the package provided by EPEL for nginx.
Or you could try the RPM-packages provided by nginx themself:
https://nginx.org/packages/centos/7/x86_64/RPMS/
chipitsine

chipitsine

2018-05-17 09:22

reporter   ~0031858

please read carefully.

I do not insist in building from source. I use rpm in daily life.
build process is used to show the bug exists. official RPM are affected as well (they do not support IP_BIND_ADDRESS_NO_PORT)
codonell

codonell

2019-07-19 15:10

reporter   ~0034851

The matching RHEL7 bug is here:
https://bugzilla.redhat.com/show_bug.cgi?id=1579451

We are looking into it.

Issue History

Date Modified Username Field Change
2018-05-17 09:16 chipitsine New Issue
2018-05-17 09:20 tigalch Note Added: 0031857
2018-05-17 09:22 chipitsine Note Added: 0031858
2019-07-19 15:10 codonell Note Added: 0034851