[LU-16520] CentOS 7.6 build failure on strscpy. Move strscpy to lnet/include/lnet/lib-types.h Created: 01/Feb/23 Updated: 14/Feb/23 Resolved: 14/Feb/23 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | Lustre 2.16.0 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Shaun Tancheff | Assignee: | Shaun Tancheff |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Severity: | 3 |
| Rank (Obsolete): | 9223372036854775807 |
| Description |
|
Testing on CentOS 7.6 build fails with: /home/shaun/lustre-release/lnet/klnds/o2iblnd/o2iblnd.c: In function ‘kiblnd_startup’: /home/shaun/lustre-release/lnet/klnds/o2iblnd/o2iblnd.c:3608:3: error: implicit declaration of function ‘strscpy’ [-Werror=implicit-function-declaration] strscpy(ifname, ifaces[i].li_name, sizeof(ifname)); ^ Move strscpy to lnet/include/lnet/lib-types.h so it is available to lnet/klnds/o2iblnd/o2iblnd.c |
| Comments |
| Comment by Gerrit Updater [ 01/Feb/23 ] |
|
"Shaun Tancheff <shaun.tancheff@hpe.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/49863 |
| Comment by Gerrit Updater [ 14/Feb/23 ] |
|
"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/49863/ |
| Comment by Peter Jones [ 14/Feb/23 ] |
|
Landed for 2.16 |