previous declaration of 'socklen_t' with type 'socklen_t'
riscv64-unknown-linux-gnu-gcc -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g0 -D_FORTIFY_SOURCE=1 -I/home/zj/source_code/buildroot-upstream/output/host/bin/../riscv64-buildroot-linux-gnu/sysroot/usr/include/tirpc -DSYS5 -Dvalloc=malloc -DS_IFIFO=S_IFFIFO -DHAVE_pmap_clnt_h -DMAIN -o ../bin/riscv64/flushdisk flushdisk.c
chmod +x ../bin/riscv64/lmbench
In file included from lib_tcp.c:9:
bench.h:81:13: error: conflicting types for 'socklen_t'; have 'int'
81 | typedef int socklen_t;
| ^~~~~~~~~
In file included from lib_unix.c:9:
bench.h:81:13: error: conflicting types for 'socklen_t'; have 'int'
81 | typedef int socklen_t;
| ^~~~~~~~~
In file included from lib_timing.c:17:
bench.h:81:13: error: conflicting types for 'socklen_t'; have 'int'
81 | typedef int socklen_t;
| ^~~~~~~~~
In file included from bench.h:17:
Edited by Ghost User