Opened 8 years ago
Closed 8 years ago
#1553 closed enhancement (wontfix)
поддержка IP_BIND_ADDRESS_NO_PORT на CentOS 7.4 и выше
| Reported by: | Илья Шипицин | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | nginx-package | Version: | 1.13.x |
| Keywords: | Cc: | ||
| uname -a: | |||
| nginx -V: | 1.13.12 | ||
Description
поддержка IP_BIND_ADDRESS_NO_PORT появилась в ядре 4.2, кажется, но силами RedHat она была портирована в ядро 3.10
однако,константа IP_BIND_ADDRESS_NO_PORT определена в случае RedHat в другом заголовочном файле, нежели она должна быть, поэтому при сборке nginx-1.13.12 данная опция не включается
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;
}
хотя могла бы
[root@nginx-build nginx-1.13.12]# grep -r IP_BIND_ADDRESS_NO_PORT /usr/include/ /usr/include/linux/in.h:#define IP_BIND_ADDRESS_NO_PORT 24 [root@nginx-build nginx-1.13.12]#
Note:
See TracTickets
for help on using tickets.

http://mailman.nginx.org/pipermail/nginx-ru/2018-May/061166.html