Commit 82cea43
examples/c/usdt: fix a compilation error
Fix 'libbpf: failed to find BTF info for global/extern symbol' erro due
to an uninitialized global variables, which causes problems on Ubuntu
20.04.6 with clang 10.
I was able to compile on a newer ubuntu with a newer version of clang.
However, on a development module (nVidia Orin AGX) running Ubuntu
20.04.6 LTS with clang version 10.0.0-4ubuntu1, it is not possible to
use apt to update clang to a new version. Downloading the source code of
a higher version of clang for compilation is cumbersome.
So I hope that with the change, the project code can be easily compiled
and used in earlier os.
Signed-off-by: Liu Lingze <luiyanbing@foxmail.com>1 parent 25b7e7b commit 82cea43
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
0 commit comments