Skip to content

autotools + libressl builds fail with: unknown type name 'uint32_t' #12257

@vszakats

Description

@vszakats

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions