Skip to content

ld: undefined reference to build errors #318

Open
@Dentrax

Description

Hey, just hit the following build error while trying to build simple Go program, and literally no idea about the actual problem:

# github.com/iovisor/gobpf/bcc
/usr/bin/ld: warning: libtinfo.so.5, needed by /usr/lib/gcc/x86_64-linux-gnu/12/../../../x86_64-linux-gnu/libbcc.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/12/../../../x86_64-linux-gnu/libbcc.so: undefined reference to `set_curterm@NCURSES_TINFO_5.0.19991023'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/12/../../../x86_64-linux-gnu/libbcc.so: undefined reference to `tigetnum@NCURSES_TINFO_5.0.19991023'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/12/../../../x86_64-linux-gnu/libbcc.so: undefined reference to `setupterm@NCURSES_TINFO_5.0.19991023'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/12/../../../x86_64-linux-gnu/libbcc.so: undefined reference to `del_curterm@NCURSES_TINFO_5.0.19991023'
collect2: error: ld returned 1 exit status
$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 22.10
Release:	22.10
Codename:	kinetic

Any ideas?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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