FS#57250 - [libtirpc] failure to compile
Attached to Project:
Arch Linux
Opened by Robert Dale Watson (gillecaluim) - Saturday, 27 January 2018, 19:14 GMT
Last edited by Andreas Radke (AndyRTR) - Monday, 29 January 2018, 16:04 GMT
Opened by Robert Dale Watson (gillecaluim) - Saturday, 27 January 2018, 19:14 GMT
Last edited by Andreas Radke (AndyRTR) - Monday, 29 January 2018, 16:04 GMT
|
Details
Description:
CC libtirpc_la-rtime.lo des_impl.c: In function ‘_des_crypt’: des_impl.c:591:3: warning: implicit declaration of function ‘__bzero’; did you mean ‘bzero’? [-Wimplicit-function-declaration] __bzero (schedule, sizeof (schedule)); ^~~~~~~ bzero xdr_sizeof.c: In function ‘x_inline’: xdr_sizeof.c:93:13: error: ‘uintptr_t’ undeclared (first use in this function); did you mean ‘__intptr_t’? if (len < (uintptr_t)xdrs->x_base) { ^~~~~~~~~ __intptr_t xdr_sizeof.c:93:13: note: each undeclared identifier is reported only once for each function it appears in xdr_sizeof.c:93:23: error: expected ‘)’ before ‘xdrs’ if (len < (uintptr_t)xdrs->x_base) { ^~~~ xdr_sizeof.c:105:38: error: expected ‘;’ before ‘len’ xdrs->x_base = (caddr_t)(uintptr_t)len; ^~~ xdr_sizeof.c:109:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ make[2]: *** [Makefile:969: libtirpc_la-xdr_sizeof.lo] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory '/build/libtirpc/src/libtirpc-1.0.2/src' make[1]: *** [Makefile:517: all-recursive] Error 1 make[1]: Leaving directory '/build/libtirpc/src/libtirpc-1.0.2' make: *** [Makefile:402: all] Error 2 ==> ERROR: A failure occurred in build(). Aborting... = Additional info: * package version(s) * config and/or log files etc. Steps to reproduce: fixed with this addition to PKGBUILD prepare(){ cd ${pkgname}-${pkgver} sed '/stdlib.h/a#include <stdint.h>' -i src/xdr_sizeof.c sed '/key_secret_is/s/secret/secretkey/' -i src/libtirpc.map } |
This task depends upon
Closed by Andreas Radke (AndyRTR)
Monday, 29 January 2018, 16:04 GMT
Reason for closing: Fixed
Additional comments about closing: 1.0.2-2
Monday, 29 January 2018, 16:04 GMT
Reason for closing: Fixed
Additional comments about closing: 1.0.2-2
From Debian patch for low impact CVE against the package https://sources.debian.org/data/main/libt/libtirpc/1.0.2-0.2/debian/patches/10-CVE-2016-4429.diff
http://git.linux-nfs.org/?p=steved/libtirpc.git;a=patch;h=acb9a37977cf0a9630eac74af9adebf35e38e719 Include stdint.h from xdr_sizeof.c to avoid missing declaration errors.
This allows building successfully
http://git.linux-nfs.org/?p=steved/libtirpc.git;a=patch;h=e51d67549b516b2dac6c71d92c8499f6e67125ad Fix typo in src/libtirpc.map Which prevents that key_secretkey_is_set will be exported.
To silence compiler warning about implicit declaration of __bzero
http://git.linux-nfs.org/?p=steved/libtirpc.git;a=patch;h=5356b63005e9d8169e0399cb76f26fbd29a78dee Replace bzero() calls with equivalent memset() calls
Other patches from 1.0.3-rc1
http://git.linux-nfs.org/?p=steved/libtirpc.git;a=patch;h=e862b2a89c2f1bee0a55361a7eacf3e3c02c7708 Add some typedefs to rpc/types.h to allow applications be compiled with -std=iso9899:1990
http://git.linux-nfs.org/?p=steved/libtirpc.git;a=patch;h=61fad776aacd985eca3d3a1c6185286705856f9b Add includes to pmap_clnt.h