Control: tag -1 + patch The same issue is noticed on mips64el: https://buildd.debian.org/status/fetch.php?pkg=libowfat&arch=mips64el&ver=0.30-2&stamp=1483522524
Both archs (s390x and mips64el) do not supportwaitpid, wait4 is used instead. (https://github.com/ensc/dietlibc/blob/master/s390x/__waitpid.c) As there is no waitpid system call for these archs,undefined reference to `__libc_waitpid' appears. In order to fix this it is needed to use wait4 syscall instead in syscalls.s/waitpid.S. The patch that solves this is attached.
diff -uNr dietlibc-0.34~cvs20160606.orig/syscalls.s/waitpid.S dietlibc-0.34~cvs20160606/syscalls.s/waitpid.S --- dietlibc-0.34~cvs20160606.orig/syscalls.s/waitpid.S 2016-06-06 15:30:00.000000000 +0000 +++ dietlibc-0.34~cvs20160606/syscalls.s/waitpid.S 2017-01-04 15:16:09.000000000 +0000 @@ -2,4 +2,6 @@ #ifdef __NR_waitpid syscall_weak(waitpid,waitpid,__libc_waitpid) +#else +syscall_weak(wait4,waitpid,__libc_waitpid) #endif