CC net/ipv4/inet_connection_sock.o
net/ipv4/inet_connection_sock.c: In function ‘inet_rtx_syn_ack’:
net/ipv4/inet_connection_sock.c:692:9: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]
692 | int err = req->rsk_ops->rtx_syn_ack(parent, req);
| ^~~
cc1: all warnings being treated as errors
make[4]: *** [scripts/Makefile.build:289: net/ipv4/inet_connection_sock.o] Error 1
make[3]: *** [scripts/Makefile.build:552: net/ipv4] Error 2
I have moved int err; before the function and it worked.
In general the main error, is that CentOS9 use C90 / std=gnu89 and your code is using newer C version, you should specify it in Makefile? Or other place?
Hi, using testing or mainline release
config from: /boot/config-5.14.0-452.el9.x86_64
executing: make -j3 binrpm-pkg
modules enabled: 112 scripts/config -m TCP_CONG_PRAGUE 113 scripts/config -m NET_SCH_DUALPI2 114 scripts/config -m TCP_CONG_DCTCP 115 scripts/config -m TCP_CONG_BBR2 116 history 117 scripts/config --set-str CONFIG_LOCALVERSION "-prague-20240610"
After adding
#include <stdbool.h>
tousr/include/linux/inet_diag.h
Got errors with
That is due to copied */boot/config ** solved by:
Now I see some errors with:
I have moved int err; before the function and it worked.
In general the main error, is that CentOS9 use C90 / std=gnu89 and your code is using newer C version, you should specify it in Makefile? Or other place?