SWI-Prolog / swipl-devel

SWI-Prolog Main development repository
http://www.swi-prolog.org
Other
954 stars 172 forks source link

binary-or-shlib-calls-gethostbyname issues #1299

Open mcepl opened 2 months ago

mcepl commented 2 months ago

When packaging for openSUSE, our rpmlinter is unhappy because of:

[  126s] swipl.x86_64: W: binary-or-shlib-calls-gethostbyname /usr/lib/swipl/lib/x86_64-linux/pl2xpce.so
[  126s] swipl.x86_64: W: binary-or-shlib-calls-gethostbyname /usr/lib/swipl/lib/x86_64-linux/socket.so
[  126s] The binary calls gethostbyname. Please port the code to use getaddrinfo.

I am not sure whether it is a false positive or not, but search for gethostbyname through this organization finds couple of hits.

JanWielemaker commented 2 months ago

The pl2xpce.so should be fixed now by SWI-Prolog/packages-xpce@c78a75de43815d69481a05db43a670ee127aba06. For socket.so (from packages/clib), I cannot find a reference to gethostbyname() in the sources, nor using nm socket.so. I have no clue.

mcepl commented 2 months ago

That test is known not to be 100% reliable.