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

GLIBC_2.25 error #3

Open
weiw05 opened this issue Oct 25, 2022 · 7 comments
Open

GLIBC_2.25 error #3

weiw05 opened this issue Oct 25, 2022 · 7 comments

Comments

@weiw05
Copy link

weiw05 commented Oct 25, 2022

Hi, I'm trying to see if I can use your library on older linux systems, e.g. debian 9, and I get a GLIBC_2.25 not found error (for explicit_bzero). Is there a way to compile without using the system's explicit_bzero?

@michaelforney
Copy link
Owner

Hmm... explicit_bzero should be provided through compat/explicit_bzero.c.

Could you share a full build log?

@weiw05
Copy link
Author

weiw05 commented Oct 26, 2022 via email

@michaelforney
Copy link
Owner

This should be the default build behavior. If you don't define -D HAVE_EXPLICIT_BZERO, then it will use the included version of explicit_bzero.

Are you doing anything special when building libtls-bearssl? A build log would still be helpful, as well as the binary that isn't working.

@weiw05
Copy link
Author

weiw05 commented Oct 28, 2022 via email

@michaelforney
Copy link
Owner

Thanks. I think I see what is happening. The actual missing symbol is not explicit_bzero, but __explicit_bzero_chk, which comes from glibc's fortify source feature. I guess this must be the default for your toolchain. This is causing explicit_bzero to get defined to an inline function calling glibc's checked version, so even though we build in an implementation of explicit_bzero, the callers are using __explicit_bzero_chk.

I will have to think about how best to solve this. In the mean time, building with -DFORTIFY_SOURCE=0 should work around the issue.

@weiw05
Copy link
Author

weiw05 commented Oct 31, 2022 via email

@weiw05
Copy link
Author

weiw05 commented Nov 3, 2022 via email

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