I did this
LibreSSL publishes its own arc4random, which then gets detected by autotools
when building curl.
Then fails when compiling lib/rand.c:
../../lib/rand.c:37:1: error: unknown type name 'uint32_t'
37 | uint32_t arc4random(void);
| ^
1 error generated.
Probably caused by: 755ddbe #10672
I'm guessing autotools shouldn't detect HAVE_ARC4RANDOM when it's provided
not by the system, but by a library dependency (with its prototype also present
in that dependency's headers) (LibreSSL probably shouldn't publish such function
outside of its own namespace in the first place, but it does). If we want to use it
anyway, we should use a C89 type in our replacement prototype? Or, together with
HAVE_STDINT_H and after including stdint.h.
I expected the following
Successful build.
curl/libcurl version
8.5.0-DEV
operating system
any
I did this
LibreSSL publishes its own
arc4random, which then gets detected by autotoolswhen building curl.
Then fails when compiling
lib/rand.c:Probably caused by: 755ddbe #10672
I'm guessing autotools shouldn't detect
HAVE_ARC4RANDOMwhen it's providednot by the system, but by a library dependency (with its prototype also present
in that dependency's headers) (LibreSSL probably shouldn't publish such function
outside of its own namespace in the first place, but it does). If we want to use it
anyway, we should use a C89 type in our replacement prototype? Or, together with
HAVE_STDINT_Hand after includingstdint.h.I expected the following
Successful build.
curl/libcurl version
8.5.0-DEV
operating system
any