Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mcepl opened this issue Jul 22, 2024 · 2 comments
Open

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

mcepl opened this issue Jul 22, 2024 · 2 comments

Comments

@mcepl
Copy link

mcepl commented Jul 22, 2024

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
Copy link
Member

The pl2xpce.so should be fixed now by SWI-Prolog/packages-xpce@c78a75d. 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
Copy link
Author

mcepl commented Jul 22, 2024

That test is known not to be 100% reliable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants