[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1114188: lmbench: FTBFS: lat_rpc.c:24:10: error: conflicting types for 'client_rpc_xact_1'; have 'char *(char *, CLIENT *)' {aka 'char *(char *, struct __rpc_client *)'}



Package: src:lmbench
Version: 3.0-a9+debian.1-9
Severity: serious
Tags: ftbfs forky sid

Dear maintainer:

During a rebuild of all packages in unstable, your package failed to build.

Below you will find how the build ends (probably the most relevant part,
but not necessarily). If required, the full build log is available here:

https://people.debian.org/~sanvila/build-logs/202509/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:lmbench, so that this is still
visible in the BTS web page for this package.

Thanks.

--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean
   debian/rules override_dh_auto_clean
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_auto_clean
	make -j2 clean
make[2]: Entering directory '/<<PKGBUILDDIR>>'
for i in doc src results scripts; do \
	echo ===== $i =====; \
	(cd $i && make clean); \
done
===== doc =====
make[3]: Entering directory '/<<PKGBUILDDIR>>/doc'
bk clean 
make[3]: bk: No such file or directory
make[3]: [Makefile:105: clean] Error 127 (ignored)
/bin/rm -f *.PS XXX bw.pic memrd_bcopy_comp.pic references.i
make[3]: Leaving directory '/<<PKGBUILDDIR>>/doc'
===== src =====
make[3]: Entering directory '/<<PKGBUILDDIR>>/src'
/bin/rm -f ../bin/*/CONFIG ../bin/*/*.[oas]
/bin/rm -f *.[oas]
make[3]: Leaving directory '/<<PKGBUILDDIR>>/src'
===== results =====
make[3]: Entering directory '/<<PKGBUILDDIR>>/results'
/bin/rm -f PS/* GIF/* HTML/* tmp/* summary.roff
bk clean
make[3]: bk: No such file or directory
make[3]: [Makefile:325: clean] Error 127 (ignored)
make[3]: Leaving directory '/<<PKGBUILDDIR>>/results'
===== scripts =====
make[3]: Entering directory '/<<PKGBUILDDIR>>/scripts'
make[3]: Nothing to be done for 'clean'.
make[3]: Leaving directory '/<<PKGBUILDDIR>>/scripts'
/bin/rm -rf bin/*
bk clean 
make[2]: bk: No such file or directory
make[2]: [Makefile:41: clean] Error 127 (ignored)
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
rm -f debian/lmbench-run.1
rm -rf debian/doc debian/manpages debian/scripts
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_clean
 debian/rules binary
dh binary
   dh_update_autotools_config
   dh_autoreconf
   dh_auto_configure
   debian/rules override_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_auto_build
	make -j2 "INSTALL=install --strip-program=true"
make[2]: Entering directory '/<<PKGBUILDDIR>>'
cd src && make
make[3]: Entering directory '/<<PKGBUILDDIR>>/src'
gmake[4]: Entering directory '/<<PKGBUILDDIR>>/src'
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DSYS5 -Dvalloc=malloc -DS_IFIFO=S_IFFIFO -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/tirpc -DHAVE_socklen_t -Wl,-z,relro -Wl,-z,now -c lib_tcp.c -o ../bin/x86_64-linux-gnu/lib_tcp.o
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DSYS5 -Dvalloc=malloc -DS_IFIFO=S_IFFIFO -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/tirpc -DHAVE_socklen_t -Wl,-z,relro -Wl,-z,now -c lib_udp.c -o ../bin/x86_64-linux-gnu/lib_udp.o
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DSYS5 -Dvalloc=malloc -DS_IFIFO=S_IFFIFO -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/tirpc -DHAVE_socklen_t -Wl,-z,relro -Wl,-z,now -c lib_unix.c -o ../bin/x86_64-linux-gnu/lib_unix.o
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DSYS5 -Dvalloc=malloc -DS_IFIFO=S_IFFIFO -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/tirpc -DHAVE_socklen_t -Wl,-z,relro -Wl,-z,now -c lib_timing.c -o ../bin/x86_64-linux-gnu/lib_timing.o
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DSYS5 -Dvalloc=malloc -DS_IFIFO=S_IFFIFO -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/tirpc -DHAVE_socklen_t -Wl,-z,relro -Wl,-z,now -c lib_mem.c -o ../bin/x86_64-linux-gnu/lib_mem.o
lib_timing.c: In function â??benchmp_parentâ??:
lib_timing.c:401:9: warning: ignoring return value of â??writeâ?? declared with attribute â??warn_unused_resultâ?? [-Wunused-result]
  401 |         write(start_signal, signals, parallel * sizeof(char));
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lib_timing.c:446:17: warning: ignoring return value of â??writeâ?? declared with attribute â??warn_unused_resultâ?? [-Wunused-result]
  446 |                 write(result_signal, buf, sizeof(char));
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lib_timing.c:487:9: warning: ignoring return value of â??writeâ?? declared with attribute â??warn_unused_resultâ?? [-Wunused-result]
  487 |         write(exit_signal, results, parallel * sizeof(char));
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lib_timing.c: In function â??benchmp_intervalâ??:
lib_timing.c:693:25: warning: ignoring return value of â??readâ?? declared with attribute â??warn_unused_resultâ?? [-Wunused-result]
  693 |                         read(state->start_signal, &c, sizeof(char));
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lib_timing.c:699:25: warning: ignoring return value of â??writeâ?? declared with attribute â??warn_unused_resultâ?? [-Wunused-result]
  699 |                         write(state->response, &c, sizeof(char));
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lib_timing.c:729:25: warning: ignoring return value of â??writeâ?? declared with attribute â??warn_unused_resultâ?? [-Wunused-result]
  729 |                         write(state->response, (void*)&c, sizeof(char));
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lib_timing.c:744:25: warning: ignoring return value of â??readâ?? declared with attribute â??warn_unused_resultâ?? [-Wunused-result]
  744 |                         read(state->result_signal, (void*)&c, sizeof(char));
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lib_timing.c:745:25: warning: ignoring return value of â??writeâ?? declared with attribute â??warn_unused_resultâ?? [-Wunused-result]
  745 |                         write(state->response, (void*)get_results(), state->r_size);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lib_timing.c:753:25: warning: ignoring return value of â??readâ?? declared with attribute â??warn_unused_resultâ?? [-Wunused-result]
  753 |                         read(state->exit_signal, (void*)&c, sizeof(char));
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DSYS5 -Dvalloc=malloc -DS_IFIFO=S_IFFIFO -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/tirpc -DHAVE_socklen_t -Wl,-z,relro -Wl,-z,now -c lib_stats.c -o ../bin/x86_64-linux-gnu/lib_stats.o
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DSYS5 -Dvalloc=malloc -DS_IFIFO=S_IFFIFO -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/tirpc -DHAVE_socklen_t -Wl,-z,relro -Wl,-z,now -c lib_debug.c -o ../bin/x86_64-linux-gnu/lib_debug.o
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DSYS5 -Dvalloc=malloc -DS_IFIFO=S_IFFIFO -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/tirpc -DHAVE_socklen_t -Wl,-z,relro -Wl,-z,now -c getopt.c -o ../bin/x86_64-linux-gnu/getopt.o
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DSYS5 -Dvalloc=malloc -DS_IFIFO=S_IFFIFO -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/tirpc -DHAVE_socklen_t -Wl,-z,relro -Wl,-z,now -c lib_sched.c -o ../bin/x86_64-linux-gnu/lib_sched.o
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DSYS5 -Dvalloc=malloc -DS_IFIFO=S_IFFIFO -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/tirpc -DHAVE_socklen_t -Wl,-z,relro -Wl,-z,now -o ../bin/x86_64-linux-gnu/msleep msleep.c
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DSYS5 -Dvalloc=malloc -DS_IFIFO=S_IFFIFO -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/tirpc -DHAVE_socklen_t -Wl,-z,relro -Wl,-z,now -DMAIN -o ../bin/x86_64-linux-gnu/flushdisk flushdisk.c
rm -f ../bin/x86_64-linux-gnu/lmbench
VERSION=`../scripts/version`; \
sed -e "s/<version>/${VERSION}/g" < ../scripts/lmbench > ../bin/x86_64-linux-gnu/lmbench
chmod +x ../bin/x86_64-linux-gnu/lmbench
/bin/rm -f ../bin/x86_64-linux-gnu/lmbench.a
ar cr ../bin/x86_64-linux-gnu/lmbench.a ../bin/x86_64-linux-gnu/lib_tcp.o ../bin/x86_64-linux-gnu/lib_udp.o ../bin/x86_64-linux-gnu/lib_unix.o ../bin/x86_64-linux-gnu/lib_timing.o ../bin/x86_64-linux-gnu/lib_mem.o ../bin/x86_64-linux-gnu/lib_stats.o ../bin/x86_64-linux-gnu/lib_debug.o ../bin/x86_64-linux-gnu/getopt.o ../bin/x86_64-linux-gnu/lib_sched.o
ranlib ../bin/x86_64-linux-gnu/lmbench.a
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DSYS5 -Dvalloc=malloc -DS_IFIFO=S_IFFIFO -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/tirpc -DHAVE_socklen_t -Wl,-z,relro -Wl,-z,now -o ../bin/x86_64-linux-gnu/bw_file_rd bw_file_rd.c ../bin/x86_64-linux-gnu/lmbench.a -ltirpc -lm
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DSYS5 -Dvalloc=malloc -DS_IFIFO=S_IFFIFO -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/tirpc -DHAVE_socklen_t -Wl,-z,relro -Wl,-z,now -o ../bin/x86_64-linux-gnu/bw_mem bw_mem.c ../bin/x86_64-linux-gnu/lmbench.a -ltirpc -lm
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DSYS5 -Dvalloc=malloc -DS_IFIFO=S_IFFIFO -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/tirpc -DHAVE_socklen_t -Wl,-z,relro -Wl,-z,now -o ../bin/x86_64-linux-gnu/bw_mmap_rd bw_mmap_rd.c ../bin/x86_64-linux-gnu/lmbench.a -ltirpc -lm
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DSYS5 -Dvalloc=malloc -DS_IFIFO=S_IFFIFO -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/tirpc -DHAVE_socklen_t -Wl,-z,relro -Wl,-z,now -o ../bin/x86_64-linux-gnu/bw_pipe bw_pipe.c ../bin/x86_64-linux-gnu/lmbench.a -ltirpc -lm
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DSYS5 -Dvalloc=malloc -DS_IFIFO=S_IFFIFO -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/tirpc -DHAVE_socklen_t -Wl,-z,relro -Wl,-z,now -o ../bin/x86_64-linux-gnu/bw_tcp bw_tcp.c ../bin/x86_64-linux-gnu/lmbench.a -ltirpc -lm
bw_tcp.c: In function â??mainâ??:
bw_tcp.c:63:25: warning: ignoring return value of â??writeâ?? declared with attribute â??warn_unused_resultâ?? [-Wunused-result]
   63 |                         write(conn, "0", 1);
      |                         ^~~~~~~~~~~~~~~~~~~
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DSYS5 -Dvalloc=malloc -DS_IFIFO=S_IFFIFO -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/tirpc -DHAVE_socklen_t -Wl,-z,relro -Wl,-z,now -o ../bin/x86_64-linux-gnu/bw_unix bw_unix.c ../bin/x86_64-linux-gnu/lmbench.a -ltirpc -lm
bw_unix.c: In function â??readerâ??:
bw_unix.c:100:17: warning: ignoring return value of â??writeâ?? declared with attribute â??warn_unused_resultâ?? [-Wunused-result]
  100 |                 write(state->control[1], &todo, sizeof(todo));
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
bw_unix.c: In function â??writerâ??:
bw_unix.c:118:17: warning: ignoring return value of â??readâ?? declared with attribute â??warn_unused_resultâ?? [-Wunused-result]
  118 |                 read(controlfd, &todo, sizeof(todo));
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DSYS5 -Dvalloc=malloc -DS_IFIFO=S_IFFIFO -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/tirpc -DHAVE_socklen_t -Wl,-z,relro -Wl,-z,now -o ../bin/x86_64-linux-gnu/hello hello.c ../bin/x86_64-linux-gnu/lmbench.a -ltirpc -lm
hello.c: In function â??mainâ??:
hello.c:6:9: warning: ignoring return value of â??writeâ?? declared with attribute â??warn_unused_resultâ?? [-Wunused-result]
    6 |         write(1, "Hello world\n", 12);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DSYS5 -Dvalloc=malloc -DS_IFIFO=S_IFFIFO -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/tirpc -DHAVE_socklen_t -Wl,-z,relro -Wl,-z,now -o ../bin/x86_64-linux-gnu/lat_select lat_select.c ../bin/x86_64-linux-gnu/lmbench.a -ltirpc -lm
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DSYS5 -Dvalloc=malloc -DS_IFIFO=S_IFFIFO -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/tirpc -DHAVE_socklen_t -Wl,-z,relro -Wl,-z,now -o ../bin/x86_64-linux-gnu/lat_pipe lat_pipe.c ../bin/x86_64-linux-gnu/lmbench.a -ltirpc -lm
lat_select.c: In function â??serverâ??:
lat_select.c:134:25: warning: ignoring return value of â??readâ?? declared with attribute â??warn_unused_resultâ?? [-Wunused-result]
  134 |                         read(newsock, &state->fid, 1);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DSYS5 -Dvalloc=malloc -DS_IFIFO=S_IFFIFO -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/tirpc -DHAVE_socklen_t -Wl,-z,relro -Wl,-z,now -o ../bin/x86_64-linux-gnu/lat_rpc lat_rpc.c ../bin/x86_64-linux-gnu/lmbench.a -ltirpc -lm
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DSYS5 -Dvalloc=malloc -DS_IFIFO=S_IFFIFO -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/tirpc -DHAVE_socklen_t -Wl,-z,relro -Wl,-z,now -o ../bin/x86_64-linux-gnu/lat_syscall lat_syscall.c ../bin/x86_64-linux-gnu/lmbench.a -ltirpc -lm
lat_rpc.c:24:10: error: conflicting types for â??client_rpc_xact_1â??; have â??char *(char *, CLIENT *)â?? {aka â??char *(char *, struct __rpc_client *)â??}
   24 | char    *client_rpc_xact_1(char *argp, CLIENT *clnt);
      |          ^~~~~~~~~~~~~~~~~
In file included from lat_rpc.c:19:
bench.h:349:14: note: previous declaration of â??client_rpc_xact_1â?? with type â??char *(void)â??
  349 | extern char *client_rpc_xact_1();
      |              ^~~~~~~~~~~~~~~~~
lat_rpc.c:172:1: error: conflicting types for â??client_rpc_xact_1â??; have â??char *(char *, CLIENT *)â?? {aka â??char *(char *, struct __rpc_client *)â??}
  172 | client_rpc_xact_1(char *argp, CLIENT *clnt)
      | ^~~~~~~~~~~~~~~~~
bench.h:349:14: note: previous declaration of â??client_rpc_xact_1â?? with type â??char *(void)â??
  349 | extern char *client_rpc_xact_1();
      |              ^~~~~~~~~~~~~~~~~
lat_rpc.c: In function â??rpc_xact_1â??:
lat_rpc.c:189:1: warning: old-style function definition [-Wold-style-definition]
  189 | rpc_xact_1(msg, transp)
      | ^~~~~~~~~~
lat_rpc.c:192:1: error: number of arguments doesnâ??t match prototype
  192 | {
      | ^
bench.h:348:14: error: prototype declaration
  348 | extern char *rpc_xact_1();
      |              ^~~~~~~~~~
lat_rpc.c: In function â??server_mainâ??:
lat_rpc.c:214:57: error: passing argument 4 of â??svc_registerâ?? from incompatible pointer type [-Wincompatible-pointer-types]
  214 |         if (!svc_register(transp, XACT_PROG, XACT_VERS, xact_prog_1, IPPROTO_UDP)) {
      |                                                         ^~~~~~~~~~~
      |                                                         |
      |                                                         void (*)(void)
In file included from /usr/include/tirpc/rpc/svc.h:463,
                 from /usr/include/tirpc/rpc/rpc.h:63,
                 from bench.h:39:
/usr/include/tirpc/rpc/svc_soc.h:70:21: note: expected â??void (*)(struct svc_req *, SVCXPRT *)â?? {aka â??void (*)(struct svc_req *, struct __rpc_svcxprt *)â??} but argument is of type â??void (*)(void)â??
   70 |                     void (*)(struct svc_req *, SVCXPRT *), int);
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lat_rpc.c:198:13: note: â??xact_prog_1â?? declared here
  198 | static void xact_prog_1();
      |             ^~~~~~~~~~~
lat_rpc.c:224:57: error: passing argument 4 of â??svc_registerâ?? from incompatible pointer type [-Wincompatible-pointer-types]
  224 |         if (!svc_register(transp, XACT_PROG, XACT_VERS, xact_prog_1, IPPROTO_TCP)) {
      |                                                         ^~~~~~~~~~~
      |                                                         |
      |                                                         void (*)(void)
/usr/include/tirpc/rpc/svc_soc.h:70:21: note: expected â??void (*)(struct svc_req *, SVCXPRT *)â?? {aka â??void (*)(struct svc_req *, struct __rpc_svcxprt *)â??} but argument is of type â??void (*)(void)â??
   70 |                     void (*)(struct svc_req *, SVCXPRT *), int);
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lat_rpc.c:198:13: note: â??xact_prog_1â?? declared here
  198 | static void xact_prog_1();
      |             ^~~~~~~~~~~
lat_rpc.c: In function â??xact_prog_1â??:
lat_rpc.c:236:1: warning: old-style function definition [-Wold-style-definition]
  236 | xact_prog_1(rqstp, transp)
      | ^~~~~~~~~~~
lat_rpc.c:253:30: error: assignment to â??bool_t (*)(void)â?? {aka â??int (*)(void)â??} from incompatible pointer type â??bool_t (*)(XDR *, char *)â?? {aka â??int (*)(struct __rpc_xdr *, char *)â??} [-Wincompatible-pointer-types]
  253 |                 xdr_argument = xdr_char;
      |                              ^
In file included from /usr/include/tirpc/rpc/rpc.h:43:
/usr/include/tirpc/rpc/xdr.h:316:17: note: â??xdr_charâ?? declared here
  316 | extern bool_t   xdr_char(XDR *, char *);
      |                 ^~~~~~~~
lat_rpc.c:254:28: error: assignment to â??bool_t (*)(void)â?? {aka â??int (*)(void)â??} from incompatible pointer type â??bool_t (*)(XDR *, char *)â?? {aka â??int (*)(struct __rpc_xdr *, char *)â??} [-Wincompatible-pointer-types]
  254 |                 xdr_result = xdr_char;
      |                            ^
/usr/include/tirpc/rpc/xdr.h:316:17: note: â??xdr_charâ?? declared here
  316 | extern bool_t   xdr_char(XDR *, char *);
      |                 ^~~~~~~~
lat_rpc.c:272:19: error: too many arguments to function â??localâ??; expected 0, have 2
  272 |         result = (*local)(&argument, rqstp);
      |                  ~^~~~~~~ ~~~~~~~~~
gmake[4]: *** [Makefile:380: ../bin/x86_64-linux-gnu/lat_rpc] Error 1
gmake[4]: *** Waiting for unfinished jobs....
gmake[4]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[3]: *** [Makefile:114: lmbench] Error 2
make[3]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[2]: *** [Makefile:20: build] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j2 "INSTALL=install --strip-program=true" returned exit code 2
make[1]: *** [debian/rules:15: override_dh_auto_build] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:12: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------


Reply to: