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

sockd in CDN in a Box on RHEL 8: undefined symbol: _gethostbyaddr #7649

Open
zrhoffman opened this issue Jul 14, 2023 · 0 comments
Open

sockd in CDN in a Box on RHEL 8: undefined symbol: _gethostbyaddr #7649

zrhoffman opened this issue Jul 14, 2023 · 0 comments
Labels
bug something isn't working as intended cdn-in-a-box related to the Docker-based CDN-in-a-Box system dependencies Pull requests that update a dependency file os

Comments

@zrhoffman
Copy link
Member

zrhoffman commented Jul 14, 2023

This Bug Report affects these Traffic Control components:

  • CDN in a Box

What did you do?

Tried to run the CDN in a Box socksproxy service now that CDN in a Box is on RHEL 8:

docker-compose -f docker-compose.yml -f optional/docker-compose.socksproxy.yml up --build -d
docker-compose -f docker-compose.yml -f optional/docker-compose.socksproxy.yml logs -f socksproxy

What did you expect to happen?

sockd` runs

What actually happened?

The error you see when starting sockd:

$ sockd
Jul 14 16:26:03 (1689351963.686598) sockd[41]: error: symbolfunction(): compile time configuration error?  Failed to open library "libc.so": libc.so: cannot open shared object file: No such file or directory
Jul 14 16:26:03 (1689351963.686702) sockd[41]: alert: mother[1/1]: shutting down

and if you symlink libc.so.6 to libc.so like this,

ln -s libc.so.6 /lib64/libc.so

sockd instead gives this error:

$ sockd
Jul 14 16:28:35 (1689352115.892862) sockd[37]: error: symbolfunction(): compile time configuration error?  Failed to find "_gethostbyaddr" in "libc.so": /lib64/libc.so.6: undefined symbol: _gethostbyaddr
Jul 14 16:28:35 (1689352115.892971) sockd[37]: alert: mother[1/1]: shutting down

IIRC, CentOS 8 did not require symlinking libc.so to get the undefined symbol: _gethostbyaddr error.

@zrhoffman zrhoffman added bug something isn't working as intended cdn-in-a-box related to the Docker-based CDN-in-a-Box system dependencies Pull requests that update a dependency file os labels Jul 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something isn't working as intended cdn-in-a-box related to the Docker-based CDN-in-a-Box system dependencies Pull requests that update a dependency file os
Projects
None yet
Development

No branches or pull requests

1 participant