Skip to content

Build fails on Ubuntu: getrandom() #665

Description

@edsiper

hi, same as v1.23.0, this version comes with a problem where it fails when building on Ubuntu systems:

c-ares-1.24.0/src/lib/ares_rand.c:270:24: error: implicit declaration of function 'getrandom' [-Werror,-Wimplicit-function-declaration]
          ssize_t rv = getrandom(buf + bytes_read, n > 256 ? 256 : n, 0);

while integrating the new version in our project the CI triggered the error, more details here:

https://github.com/fluent/fluent-bit/actions/runs/7239437396/job/19721290738?pr=8296#step:5:943

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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