Skip to content

ld.lld: error: undefined symbol: error #1886

@peppergrayxyz

Description

@peppergrayxyz

The configure script is checking if <error.h> is present, but not if error is actually provided by the library (which is the case with musl). See also: https://bugs.gentoo.org/864787

ld.lld: error: undefined symbol: error
>>> referenced by crun.c
>>>               src/crun-crun.o:(crun_assert_n_args)
>>> referenced by crun.c
>>>               src/crun-crun.o:(crun_assert_n_args)
>>> referenced by list.c
>>>               src/crun-list.o:(parse_opt)
>>> referenced 4 more times
>>> did you mean: ferror
>>> defined in: /lib/libc.so
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions