[LTP] [PATCH] gethostid: Rewrite with newlib and use/test sethostid

Cyril Hrubis chrubis@suse.cz
Thu Jul 8 13:58:35 CEST 2021


Hi!
> > I made some refine and pushed, thanks!
> Thanks for your review. Besides, I noticed the CI fails to be compiled 
> on Apine. The difference appears to be caused by the underlying libc 
> implementation: glibc and Alpine's musl-libc.
> 
> Is there anything that needs to be modified for this patch? Or simply 
> ignore it in the CI script.

This has to be fixed, the whole point of the CI is to catch build
failures on different libc/compiler combinations.

Looking at musl the sethostid() is not implemented at all, so I guess
that the correct solution here would be adding a configure check for
sethostid() and skip the whole test if it's not available.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list