Skip to content

Build fails in RHEL8 "could not determine what C.RTLD_NEXT refers to" #34

@astudentofblake

Description

@astudentofblake

I get the error: -

./transaction.go:409:55: could not determine what C.RTLD_NEXT refers to

RTLD_NEXT is inside a #ifdef __USE_GNU block in dlfcn.h, which causes the build to fail, as this is not defined
This in AlmaLinux release 8.10 (Cerulean Leopard), binary compatible with RHEL

this can be fixed by adding

#define _GNU_SOURCE

I'll raise a PR

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions