Whamcloud - gitweb
LU-12511 utils: fix build issues with native client 52/58952/2
authorJames Simmons <jsimmons@infradead.org>
Thu, 24 Apr 2025 18:26:30 +0000 (14:26 -0400)
committerOleg Drokin <green@whamcloud.com>
Wed, 7 May 2025 21:11:19 +0000 (21:11 +0000)
commit7a7b3eda35236a981a960002f93ac146dfc3124c
treee04ed5f7bff8d9aeaeaaf7679c8c60218a59d016
parent101b67fcd91617590006c8d16d74401f6489cf8d
LU-12511 utils: fix build issues with native client

A few bugs have crept in that breaks building the lustre utilies
against the native client. One set of breakage is the wrong
paths for UAPI lustre headers. A few server only data structures
have shown up so only conditionally build them. Lastly for
liblustreapi_ioctl.c we need stdlib.h so it builds properly.
Otherwise we get the build error:

liblustreapi_ioctl.c:63:11: error: incompatible implicit
declaration of built-in function ‘malloc’ [-Werror]
liblustreapi_ioctl.c:63:11: note: include ‘<stdlib.h>’
or provide a declaration of ‘malloc’

Test-Parameters: trivial
Change-Id: If942cef0fd810a918ef3953f7920021b5a5f8360
Signed-off-by: James Simmons <jsimmons@infradead.org>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/58952
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Timothy Day <timday@amazon.com>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/utils/lfs.c
lustre/utils/liblustreapi_ioctl.c
lustre/utils/obd.c
lustre/utils/wiretest.c