Skip to contentSkip to conversation

musl: travis build and include fixes

PATCH New Petr Vorel 2 participants 7 messages Dec 10, 2019 – Dec 11, 2019

lore
Share & tools
lore

Petr Vorel

author
#0 lore raw

cover musl: travis build and include fixes

Hi,

although LTP not yet fully support musl, I'd like to add travis build via Alpine linux distro. Remaining broken tests are deleted before building, I volunteer to solve musl problems for new code.

I also added 2 simple RPC fixes.
RPC tests deserve some rewrite, but I'd postpone it.
https://github.com/linux-test-project/ltp/issues/621

Kind regards,
Petr

Petr Vorel (3):
travis: Add musl build (with Alpine Linux)
rpc: Add missing <string.h>
rpc: Remove <sys/socketvar.h>

 .travis.yml                                   |  7 +++
 .../rpc/basic_tests/rpc01/rpc_server.c        |  1 +
 .../rpc_clnt_broadcast_dataint.c              |  1 +
 .../rpc_svcraw_create.c                       |  1 -
 .../rpc_svctcp_create.c                       |  1 -
 .../rpc_svctcp_create_stress.c                |  1 -
 .../rpc_svcudp_bufcreate.c                    |  1 -
 .../rpc_svcudp_create.c                       |  1 -
 .../rpc_svcudp_create_stress.c                |  1 -
 .../rpc_registerrpc.c                         |  1 -
 .../rpc_svc_register.c                        |  1 -
 .../rpc_svc_unregister.c                      |  1 -
 .../rpc_xprt_register.c                       |  1 -
 .../rpc_xprt_unregister.c                     |  1 -
 .../rpc_stdcall_callrpc/rpc_callrpc_dataint.c |  1 +
 .../rpc_clnt_call_dataint.c                   |  1 +
 .../rpc_svc_freeargs_svc.c                    |  1 +
 .../rpc_stdcall_svc_getargs/rpc_svc_getargs.c |  1 +
 .../rpc_svc_sendreply.c                       |  1 +
 .../tirpc_bottomlevel_clnt_call_dataint.c     |  1 +
 .../tirpc_bottomlevel_clnt_call_mt.c          |  1 +
 .../tirpc_bottomlevel_clnt_call_scalability.c |  1 +
 .../tirpc_expertlevel_clnt_call_complex.c     |  1 +
 .../tirpc_expertlevel_clnt_call_dataint.c     |  1 +
 .../tirpc_expertlevel_clnt_call_mt.c          |  1 +
 .../tirpc_expertlevel_clnt_call_scalability.c |  1 +
 .../tirpc_rpcb_rmtcall_complex.c              |  1 +
 .../tirpc_rpcb_rmtcall_dataint.c              |  1 +
 .../tirpc_rpcb_rmtcall_mt.c                   |  1 +
 .../tirpc_rpcb_rmtcall_scalability.c          |  1 +
 .../tirpc_svc_reg_mt.c                        |  1 +
 .../tirpc_svc_unreg_mt.c                      |  1 +
 .../tirpc_interlevel_clnt_call_complex.c      |  1 +
 .../tirpc_interlevel_clnt_call_dataint.c      |  1 +
 .../tirpc_interlevel_clnt_call_mt.c           |  1 +
 .../tirpc_interlevel_clnt_call_scalability.c  |  1 +
 .../tirpc_rpc_broadcast_dataint.c             |  1 +
 .../tirpc_rpc_broadcast_mt.c                  |  1 +
 .../tirpc_rpc_broadcast_scalability.c         |  1 +
 .../tirpc_rpc_broadcast_exp_dataint.c         |  1 +
 .../tirpc_rpc_broadcast_exp_mt.c              |  1 +
 .../tirpc_rpc_broadcast_exp_scalability.c     |  1 +
 .../tirpc_rpc_call_complex.c                  |  1 +
 .../tirpc_rpc_call_dataint.c                  |  1 +
 .../tirpc_simple_rpc_call/tirpc_rpc_call_mt.c |  1 +
 .../tirpc_rpc_call_scalability.c              |  1 +
 .../tirpc_simple_rpc_reg/tirpc_rpc_reg_mt.c   |  1 +
 .../tirpc_toplevel_clnt_call_complex.c        |  1 +
 .../tirpc_toplevel_clnt_call_dataint.c        |  1 +
 .../tirpc_toplevel_clnt_call_mt.c             |  1 +
 .../tirpc_toplevel_clnt_call_scalability.c    |  1 +
 .../tests_pack/rpc_svc_1/rpc_svc_1.c          |  1 +
 travis/alpine.sh                              | 51 +++++++++++++++++++
 53 files changed, 98 insertions(+), 11 deletions(-)
 create mode 100755 travis/alpine.sh
Signature · 1 line
2.24.0
author
#1 lore raw

PATCH 1/3 travis: Add musl build (with Alpine Linux)

it was needed to temporarily remove test broken on musl to fix compilation.

---
 .travis.yml      |  7 +++++++
 travis/alpine.sh | 51 ++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 58 insertions(+)
 create mode 100755 travis/alpine.sh
.travis.yml +7 -0
index 51040b0f0..51efa22e3 100644
@@ -19,6 +19,13 @@ matrix:
           env: DISTRO=debian:stable VARIANT=cross-compile.aarch64 TREE="out"
           compiler: aarch64-linux-gnu-gcc
 
+        # musl (native)
+        - os: linux
+          # Message: WARNING: xsltproc: cannot process http://docbook.sourceforge.net/release/xsl-ns/current/manpages/docbook.xsl
+          # doc/meson.build:70:1: ERROR: Problem encountered: Docs cannot be built: xsltproc does not work correctly
+          env: DISTRO=alpine:latest
+          compiler: gcc
+
         # build with minimal dependencies
         - os: linux
           env: DISTRO=debian:stable VARIANT=minimal TREE="out"
travis/alpine.sh new file +51 -0

51 lines not on this page · raw message

Signature · 1 line
2.24.0
author
#2 lore raw

PATCH 2/3 rpc: Add missing <string.h>

In reply to Petr Vorel

Fixes implicit declaration of function error for memcpy(), memset() and strcmp() (build with -Werror=implicit-function-declaration)

---
 testcases/network/rpc/basic_tests/rpc01/rpc_server.c             | 1 +
 .../rpc/rpc_broadc_clnt_broadcast/rpc_clnt_broadcast_dataint.c   | 1 +
 .../rpc_suite/rpc/rpc_stdcall_callrpc/rpc_callrpc_dataint.c      | 1 +
 .../rpc_suite/rpc/rpc_stdcall_clnt_call/rpc_clnt_call_dataint.c  | 1 +
 .../rpc/rpc_stdcall_svc_freeargs/rpc_svc_freeargs_svc.c          | 1 +
 .../rpc_suite/rpc/rpc_stdcall_svc_getargs/rpc_svc_getargs.c      | 1 +
 .../rpc_suite/rpc/rpc_stdcall_svc_sendreply/rpc_svc_sendreply.c  | 1 +
 .../tirpc_bottomlevel_clnt_call_dataint.c                        | 1 +
 .../tirpc_bottomlevel_clnt_call/tirpc_bottomlevel_clnt_call_mt.c | 1 +
 .../tirpc_bottomlevel_clnt_call_scalability.c                    | 1 +
 .../tirpc_expertlevel_clnt_call_complex.c                        | 1 +
 .../tirpc_expertlevel_clnt_call_dataint.c                        | 1 +
 .../tirpc_expertlevel_clnt_call/tirpc_expertlevel_clnt_call_mt.c | 1 +
 .../tirpc_expertlevel_clnt_call_scalability.c                    | 1 +
 .../tirpc_expertlevel_rpcb_rmtcall/tirpc_rpcb_rmtcall_complex.c  | 1 +
 .../tirpc_expertlevel_rpcb_rmtcall/tirpc_rpcb_rmtcall_dataint.c  | 1 +
 .../tirpc/tirpc_expertlevel_rpcb_rmtcall/tirpc_rpcb_rmtcall_mt.c | 1 +
 .../tirpc_rpcb_rmtcall_scalability.c                             | 1 +
 .../rpc_suite/tirpc/tirpc_expertlevel_svc_reg/tirpc_svc_reg_mt.c | 1 +
 .../tirpc/tirpc_expertlevel_svc_unreg/tirpc_svc_unreg_mt.c       | 1 +
 .../tirpc_interlevel_clnt_call_complex.c                         | 1 +
 .../tirpc_interlevel_clnt_call_dataint.c                         | 1 +
 .../tirpc_interlevel_clnt_call/tirpc_interlevel_clnt_call_mt.c   | 1 +
 .../tirpc_interlevel_clnt_call_scalability.c                     | 1 +
 .../tirpc_simple_rpc_broadcast/tirpc_rpc_broadcast_dataint.c     | 1 +
 .../tirpc/tirpc_simple_rpc_broadcast/tirpc_rpc_broadcast_mt.c    | 1 +
 .../tirpc_simple_rpc_broadcast/tirpc_rpc_broadcast_scalability.c | 1 +
 .../tirpc_rpc_broadcast_exp_dataint.c                            | 1 +
 .../tirpc_simple_rpc_broadcast_exp/tirpc_rpc_broadcast_exp_mt.c  | 1 +
 .../tirpc_rpc_broadcast_exp_scalability.c                        | 1 +
 .../tirpc/tirpc_simple_rpc_call/tirpc_rpc_call_complex.c         | 1 +
 .../tirpc/tirpc_simple_rpc_call/tirpc_rpc_call_dataint.c         | 1 +
 .../rpc_suite/tirpc/tirpc_simple_rpc_call/tirpc_rpc_call_mt.c    | 1 +
 .../tirpc/tirpc_simple_rpc_call/tirpc_rpc_call_scalability.c     | 1 +
 .../rpc_suite/tirpc/tirpc_simple_rpc_reg/tirpc_rpc_reg_mt.c      | 1 +
 .../tirpc_toplevel_clnt_call/tirpc_toplevel_clnt_call_complex.c  | 1 +
 .../tirpc_toplevel_clnt_call/tirpc_toplevel_clnt_call_dataint.c  | 1 +
 .../tirpc/tirpc_toplevel_clnt_call/tirpc_toplevel_clnt_call_mt.c | 1 +
 .../tirpc_toplevel_clnt_call_scalability.c                       | 1 +
 testcases/network/rpc/rpc-tirpc/tests_pack/rpc_svc_1/rpc_svc_1.c | 1 +
 40 files changed, 40 insertions(+)
testcases/network/rpc/basic_tests/rpc01/rpc_server.c +1 -0
index db5865f94..21a45ffeb 100644
@@ -4,6 +4,7 @@
 #include <errno.h>
 #include <fcntl.h>
 #include <stdlib.h>
+#include <string.h>
 #include <unistd.h>
 #include <rpc/rpc.h>
 #include "librpc01.h"
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_broadc_clnt_broadcast/rpc_clnt_broadcast_dataint.c +1 -0
index c6a3ba43f..17b960651 100644
@@ -27,6 +27,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <time.h>
 #include <rpc/rpc.h>
 
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_stdcall_callrpc/rpc_callrpc_dataint.c +1 -0
index 407ebbef2..149ffccda 100644
@@ -27,6 +27,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <time.h>
 #include <rpc/rpc.h>
 
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_stdcall_clnt_call/rpc_clnt_call_dataint.c +1 -0
index 3cfa6b0b2..ca23e9f24 100644
@@ -27,6 +27,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <time.h>
 #include <rpc/rpc.h>
 
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_stdcall_svc_freeargs/rpc_svc_freeargs_svc.c +1 -0
index 38e610546..cdec0c081 100644
@@ -27,6 +27,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <time.h>
 #include <rpc/rpc.h>
 
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_stdcall_svc_getargs/rpc_svc_getargs.c +1 -0
index 5ea06a0f6..c4860a500 100644
@@ -27,6 +27,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <time.h>
 #include <rpc/rpc.h>
 
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_stdcall_svc_sendreply/rpc_svc_sendreply.c +1 -0
index 84a71178c..e32582364 100644
@@ -27,6 +27,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <time.h>
 #include <rpc/rpc.h>
 
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_bottomlevel_clnt_call/tirpc_bottomlevel_clnt_call_dataint.c +1 -0
index 22d9098ca..514c34588 100644
@@ -27,6 +27,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <time.h>
 #include "lapi/rpc.h"
 
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_bottomlevel_clnt_call/tirpc_bottomlevel_clnt_call_mt.c +1 -0
index 708f8c3bb..7c41734f6 100644
@@ -27,6 +27,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <time.h>
 #include <pthread.h>
 #include <errno.h>
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_bottomlevel_clnt_call/tirpc_bottomlevel_clnt_call_scalability.c +1 -0
index 361ce5508..05d25ab04 100644
@@ -27,6 +27,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <pthread.h>
 #include <time.h>
 #include <errno.h>
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_expertlevel_clnt_call/tirpc_expertlevel_clnt_call_complex.c +1 -0
index fb2dbe0f0..114682768 100644
@@ -27,6 +27,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <time.h>
 #include <pthread.h>
 #include <errno.h>
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_expertlevel_clnt_call/tirpc_expertlevel_clnt_call_dataint.c +1 -0
index 913732484..26644e25e 100644
@@ -27,6 +27,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <time.h>
 #include "lapi/rpc.h"
 
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_expertlevel_clnt_call/tirpc_expertlevel_clnt_call_mt.c +1 -0
index bdce52329..040f0809a 100644
@@ -27,6 +27,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <time.h>
 #include <pthread.h>
 #include <errno.h>
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_expertlevel_clnt_call/tirpc_expertlevel_clnt_call_scalability.c +1 -0
index 6c17e70c4..ceedc1901 100644
@@ -27,6 +27,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <pthread.h>
 #include <time.h>
 #include <errno.h>
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_expertlevel_rpcb_rmtcall/tirpc_rpcb_rmtcall_complex.c +1 -0
index c25cec133..d0d1091b4 100644
@@ -27,6 +27,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <time.h>
 #include <pthread.h>
 #include <errno.h>
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_expertlevel_rpcb_rmtcall/tirpc_rpcb_rmtcall_dataint.c +1 -0
index a0c5471b2..ecb8d3ccd 100644
@@ -27,6 +27,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <time.h>
 #include "lapi/rpc.h"
 
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_expertlevel_rpcb_rmtcall/tirpc_rpcb_rmtcall_mt.c +1 -0
index f61a33bce..8cbe5b992 100644
@@ -27,6 +27,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <time.h>
 #include <pthread.h>
 #include <errno.h>
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_expertlevel_rpcb_rmtcall/tirpc_rpcb_rmtcall_scalability.c +1 -0
index 447c7169f..405f9c283 100644
@@ -27,6 +27,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <pthread.h>
 #include <time.h>
 #include <errno.h>
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_expertlevel_svc_reg/tirpc_svc_reg_mt.c +1 -0
index 167890c96..8473c0414 100644
@@ -27,6 +27,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <time.h>
 #include <pthread.h>
 #include <errno.h>
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_expertlevel_svc_unreg/tirpc_svc_unreg_mt.c +1 -0
index d812509bb..00bcc881e 100644
@@ -27,6 +27,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <time.h>
 #include <pthread.h>
 #include <errno.h>
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_interlevel_clnt_call/tirpc_interlevel_clnt_call_complex.c +1 -0
index 945557a76..3464ff23d 100644
@@ -27,6 +27,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <time.h>
 #include <pthread.h>
 #include <errno.h>
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_interlevel_clnt_call/tirpc_interlevel_clnt_call_dataint.c +1 -0
index 8b9ea2e8c..b9ed6dafa 100644
@@ -27,6 +27,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <time.h>
 #include "lapi/rpc.h"
 
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_interlevel_clnt_call/tirpc_interlevel_clnt_call_mt.c +1 -0
index f960d04d2..8e8bbc2e6 100644
@@ -27,6 +27,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <time.h>
 #include <pthread.h>
 #include <errno.h>
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_interlevel_clnt_call/tirpc_interlevel_clnt_call_scalability.c +1 -0
index e7cca3ca3..c40be764c 100644
@@ -27,6 +27,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <pthread.h>
 #include <time.h>
 #include <errno.h>
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_simple_rpc_broadcast/tirpc_rpc_broadcast_dataint.c +1 -0
index f8a9ea135..30ffd931a 100644
@@ -27,6 +27,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <time.h>
 #include "lapi/rpc.h"
 
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_simple_rpc_broadcast/tirpc_rpc_broadcast_mt.c +1 -0
index 3cd02e593..1e773a1b5 100644
@@ -27,6 +27,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <time.h>
 #include <pthread.h>
 #include <errno.h>
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_simple_rpc_broadcast/tirpc_rpc_broadcast_scalability.c +1 -0
index c6a6e2d59..372f7420b 100644
@@ -27,6 +27,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <pthread.h>
 #include <time.h>
 #include <errno.h>
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_simple_rpc_broadcast_exp/tirpc_rpc_broadcast_exp_dataint.c +1 -0
index bd574b154..b358af532 100644
@@ -27,6 +27,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <time.h>
 #include "lapi/rpc.h"
 
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_simple_rpc_broadcast_exp/tirpc_rpc_broadcast_exp_mt.c +1 -0
index 0a461279a..65189fad3 100644
@@ -27,6 +27,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <time.h>
 #include <pthread.h>
 #include <errno.h>
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_simple_rpc_broadcast_exp/tirpc_rpc_broadcast_exp_scalability.c +1 -0
index a40c2aa33..dea6d82cc 100644
@@ -27,6 +27,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <pthread.h>
 #include <time.h>
 #include <errno.h>
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_simple_rpc_call/tirpc_rpc_call_complex.c +1 -0
index 6276f2fc7..5a44bf42f 100644
@@ -27,6 +27,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <time.h>
 #include <pthread.h>
 #include <errno.h>
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_simple_rpc_call/tirpc_rpc_call_dataint.c +1 -0
index 780f5a0f4..6ff385175 100644
@@ -27,6 +27,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <time.h>
 #include "lapi/rpc.h"
 
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_simple_rpc_call/tirpc_rpc_call_mt.c +1 -0
index 376ac0fd2..06ffdd2f4 100644
@@ -27,6 +27,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <time.h>
 #include <pthread.h>
 #include <errno.h>
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_simple_rpc_call/tirpc_rpc_call_scalability.c +1 -0
index 73118cbf3..4641da752 100644
@@ -27,6 +27,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <pthread.h>
 #include <time.h>
 #include <errno.h>
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_simple_rpc_reg/tirpc_rpc_reg_mt.c +1 -0
index 6b6d500de..b1eb8433d 100644
@@ -27,6 +27,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <time.h>
 #include <pthread.h>
 #include <errno.h>
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_toplevel_clnt_call/tirpc_toplevel_clnt_call_complex.c +1 -0
index 9ffb0ba73..2f965e534 100644
@@ -27,6 +27,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <time.h>
 #include <pthread.h>
 #include <errno.h>
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_toplevel_clnt_call/tirpc_toplevel_clnt_call_dataint.c +1 -0
index e88663af4..e94f2037d 100644
@@ -27,6 +27,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <time.h>
 #include "lapi/rpc.h"
 
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_toplevel_clnt_call/tirpc_toplevel_clnt_call_mt.c +1 -0
index 6f333ac3e..2ffaa8219 100644
@@ -27,6 +27,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <time.h>
 #include <pthread.h>
 #include <errno.h>
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_toplevel_clnt_call/tirpc_toplevel_clnt_call_scalability.c +1 -0
index d2352b33f..12664fca8 100644
@@ -27,6 +27,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <pthread.h>
 #include <time.h>
 #include <errno.h>
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_svc_1/rpc_svc_1.c +1 -0
index 63dd2f161..275774923 100644
@@ -26,6 +26,7 @@
 */
 
 #include <stdio.h>
+#include <string.h>
 #include <rpc/rpc.h>
 #include <utmp.h>
 
Signature · 1 line
2.24.0
author
#3 lore raw

PATCH 3/3 rpc: Remove <sys/socketvar.h>

In reply to Petr Vorel

nonstandard <sys/socketvar.h> just includes <sys/socket.h>.

This fixes build on musl.

---
 .../rpc/rpc_createdestroy_svcraw_create/rpc_svcraw_create.c      | 1 -
 .../rpc/rpc_createdestroy_svctcp_create/rpc_svctcp_create.c      | 1 -
 .../rpc_createdestroy_svctcp_create/rpc_svctcp_create_stress.c   | 1 -
 .../rpc_createdestroy_svcudp_bufcreate/rpc_svcudp_bufcreate.c    | 1 -
 .../rpc/rpc_createdestroy_svcudp_create/rpc_svcudp_create.c      | 1 -
 .../rpc_createdestroy_svcudp_create/rpc_svcudp_create_stress.c   | 1 -
 .../rpc_suite/rpc/rpc_regunreg_registerrpc/rpc_registerrpc.c     | 1 -
 .../rpc_suite/rpc/rpc_regunreg_svc_register/rpc_svc_register.c   | 1 -
 .../rpc/rpc_regunreg_svc_unregister/rpc_svc_unregister.c         | 1 -
 .../rpc_suite/rpc/rpc_regunreg_xprt_register/rpc_xprt_register.c | 1 -
 .../rpc/rpc_regunreg_xprt_unregister/rpc_xprt_unregister.c       | 1 -
 11 files changed, 11 deletions(-)
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_svcraw_create/rpc_svcraw_create.c +0 -1
index e195c0ea6..004d1fad1 100644
@@ -31,7 +31,6 @@
 #include <rpc/rpc.h>
 #include <sys/types.h>
 #include <sys/socket.h>
-#include <sys/socketvar.h>
 
 //Standard define
 #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_svctcp_create/rpc_svctcp_create.c +0 -1
index 38eeabbbb..3f1b90aaf 100644
@@ -31,7 +31,6 @@
 #include <rpc/rpc.h>
 #include <sys/types.h>
 #include <sys/socket.h>
-#include <sys/socketvar.h>
 
 //Standard define
 #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_svctcp_create/rpc_svctcp_create_stress.c +0 -1
index 241ffd736..d465f26f5 100644
@@ -31,7 +31,6 @@
 #include <rpc/rpc.h>
 #include <sys/types.h>
 #include <sys/socket.h>
-#include <sys/socketvar.h>
 
 //Standard define
 #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_svcudp_bufcreate/rpc_svcudp_bufcreate.c +0 -1
index 4e9955b7d..24f7142ca 100644
@@ -31,7 +31,6 @@
 #include <rpc/rpc.h>
 #include <sys/types.h>
 #include <sys/socket.h>
-#include <sys/socketvar.h>
 
 //Standard define
 #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_svcudp_create/rpc_svcudp_create.c +0 -1
index 97fb875f0..19c2ac11f 100644
@@ -31,7 +31,6 @@
 #include <rpc/rpc.h>
 #include <sys/types.h>
 #include <sys/socket.h>
-#include <sys/socketvar.h>
 
 //Standard define
 #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_svcudp_create/rpc_svcudp_create_stress.c +0 -1
index 3b6b64039..e9f55557f 100644
@@ -31,7 +31,6 @@
 #include <rpc/rpc.h>
 #include <sys/types.h>
 #include <sys/socket.h>
-#include <sys/socketvar.h>
 
 //Standard define
 #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_regunreg_registerrpc/rpc_registerrpc.c +0 -1
index 974c348bb..3778f36bc 100644
@@ -31,7 +31,6 @@
 #include <rpc/rpc.h>
 #include <sys/types.h>
 #include <sys/socket.h>
-#include <sys/socketvar.h>
 #include <utmp.h>
 
 //Standard define
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_regunreg_svc_register/rpc_svc_register.c +0 -1
index 63adef031..99129cf7d 100644
@@ -31,7 +31,6 @@
 #include <rpc/rpc.h>
 #include <sys/types.h>
 #include <sys/socket.h>
-#include <sys/socketvar.h>
 
 //Standard define
 #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_regunreg_svc_unregister/rpc_svc_unregister.c +0 -1
index b52a33760..8f0b6de68 100644
@@ -31,7 +31,6 @@
 #include <rpc/rpc.h>
 #include <sys/types.h>
 #include <sys/socket.h>
-#include <sys/socketvar.h>
 
 //Standard define
 #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_regunreg_xprt_register/rpc_xprt_register.c +0 -1
index ea347b444..da3b93022 100644
@@ -31,7 +31,6 @@
 #include <rpc/rpc.h>
 #include <sys/types.h>
 #include <sys/socket.h>
-#include <sys/socketvar.h>
 
 //Standard define
 #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_regunreg_xprt_unregister/rpc_xprt_unregister.c +0 -1
index 1d7151ca5..d0b7a20d4 100644
@@ -31,7 +31,6 @@
 #include <rpc/rpc.h>
 #include <sys/types.h>
 #include <sys/socket.h>
-#include <sys/socketvar.h>
 
 //Standard define
 #define PROCNUM 1
Signature · 1 line
2.24.0
#5 lore raw

cover musl: travis build and include fixes

In reply to Petr Vorel

----- Original Message -----

Quoted 6 lines

Hi,

although LTP not yet fully support musl, I'd like to add travis build via Alpine linux distro. Remaining broken tests are deleted before building, I volunteer to solve musl problems for new code.

Fine by me, we can always disable it later if we run into (too many) issues.

Quoted 1 line

I also added 2 simple RPC fixes.

LGTM. As for RHEL, socketvar.h appears to be unused for decade at least.

Regards,
Jan

author
#6 lore raw

cover musl: travis build and include fixes

Hi Jan,

Quoted 10 lines
Quoted 4 lines

although LTP not yet fully support musl, I'd like to add travis build via Alpine linux distro. Remaining broken tests are deleted before building, I volunteer to solve musl problems for new code.

Fine by me, we can always disable it later if we run into (too many) issues.

Quoted 1 line

I also added 2 simple RPC fixes.

LGTM. As for RHEL, socketvar.h appears to be unused for decade at least.

Thanks a lot for a review, merged.

Kind regards,
Petr