-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
_GNU_SOURCE redefined #3432
Comments
Thanks! I see two issues here: that the redefinition of Systems where Systems where |
_GNU_SOURCE is a GLIBC messy thingy; these days, there are linux'es without glibc. For the rest, you need a better detection contract; yes coupling is an option; as GLIBC is something different from the target OS; for instance, Android is linux based however its default libc is Bionic, so in your case:
update: I will take a look where you make use of |
Fixes Mbed-TLS#3432 Signed-off-by: okhowang(王沛文) <[email protected]>
I fully agree that we should not redefine Regarding the other part (adding Just out of curiosity: does defining |
Fixes Mbed-TLS#3432 Signed-off-by: okhowang(王沛文) <[email protected]>
better including for not relaying on any GLIBC assumption and forwarding .
|
Fixes Mbed-TLS#3432 Signed-off-by: okhowang(王沛文) <[email protected]>
Fixes Mbed-TLS#3432 Signed-off-by: okhowang(王沛文) <[email protected]>
Fixes Mbed-TLS#3432 Signed-off-by: okhowang(王沛文) <[email protected]>
Fixes Mbed-TLS#3432 Signed-off-by: okhowang(王沛文) <[email protected]>
Fixes Mbed-TLS#3432 Signed-off-by: okhowang(王沛文) <[email protected]>
Fix Mbed-TLS#3432. Signed-off-by: Gilles Peskine <[email protected]>
I think we can in fact remove |
Fix Mbed-TLS#3432. Signed-off-by: Gilles Peskine <[email protected]>
I don't understand your reasoning here. For me things go the other way: the first question is whether |
@mpg Aren't we saying the same thing? I'm saying that if |
Fix Mbed-TLS#3432. Signed-off-by: Gilles Peskine <[email protected]>
Good morning, the best solution would be to move this concern within a configure step. |
I personally agree, but Mbed TLS doesn't currently have a configure script (in the sense of platform autodetection), and there is a sensible argument that platform autodetection is complicated in brittle. (A counter-argument is that configure doesn't have to mean autoconf, which is the source of most of the backlash against platform autodetection.) Without autodetection, we're left with manual configuration. Which is possible, but painful. If we can't find a good generic solution, is there a specific platform that you care about and that we could make work reliably? |
yes, first for
if not identifiable like
you may "hybriding" something with the two calls. Seeding could done based on hardware-clock availability
I am not a big fan either, I think people care about current popular embedded systems; iOS is clean-posix/BSD ; Android is barely-okish on some concerns. Any code availability by macro detection is painful, that's never easy-peasy; but I would say if you follow the following nested rule you mostly always get back on your feet: OS/PLATFORM - then - C-RT LIB - then VERSION - then STANDARD - then HARDWARE. |
Fix Mbed-TLS#3432. Signed-off-by: Gilles Peskine <[email protected]>
Note: This is just a template, so feel free to use/remove the unnecessary things
Description
Bug
OS
|linux|
mbed TLS build:
Version: 2.16.6
OS version: generic behaviors
entropy_poll.c line 24
The text was updated successfully, but these errors were encountered: