error: unknown type name ‘GElf_Versym’; did you mean ‘GElf_Verdef’?
Open
- Dominant language
- C
- Stars
- 22.7k
- Forks
- 4.1k
- Avg merge
- 5d 13h
- Merged PRs (30d)
- 3
Description
While trying to build the BCC I face the following error:
```
/home/pegasus/Documents/eBPF/learning-ebpf/bcc/src/cc/libbpf/src/elf.c:160:9: error: unknown type name ‘GElf_Versym’; did you mean ‘GElf_Verdef’?
160 | GElf_Versym versym;
| ^~~~~~~~~~~
| GElf_Verdef
```
How can I fix it?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with src/cc/libbpf/src/elf.c at line 160 and reproduce the BCC build that reports the missing GElf_Versym type. Trace the headers and build dependencies used by that file, then confirm the fix by rebuilding BCC without the compiler error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- build-system, operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100