namhyung / uftrace

Function graph tracer for C/C++/Rust/Python
https://uftrace.github.io/slide/
GNU General Public License v2.0
3.06k stars 473 forks source link

Compilation error with libelf #794

Open honggyukim opened 5 years ago

honggyukim commented 5 years ago

Please see below:

$ make
  CC       uftrace.o
In file included from /home/honggyu/uftrace/utils/symbol.h:21:0,
                 from /home/honggyu/uftrace/uftrace.h:11,
                 from /home/honggyu/uftrace/uftrace.c:31:
/home/honggyu/uftrace/utils/symbol-libelf.h:19:3: error: unknown type name 'GElf_Nhdr'
Makefile:251: recipe for target '/home/honggyu/uftrace/uftrace.o' failed
make: *** [/home/honggyu/uftrace/uftrace.o] Error 1
namhyung commented 5 years ago

It's not a raw ELF, it uses libelf. But it's weird it missed GElf_Nhdr. Does the /usr/include/gelf.h have it?

namhyung commented 10 months ago

Can you reproduce this error? I think this should not happen. Maybe there was a problem in your system..