opencloudos / emf-ebpf-module-framework Goto Github PK
View Code? Open in Web Editor NEWEMF(ebpf-module-framework) is a ebpf framework that is convenient to add a new ebpf program in the form of module.
EMF(ebpf-module-framework) is a ebpf framework that is convenient to add a new ebpf program in the form of module.
环境:
Ubuntu22.04: 5.15.0-53-generic
Ubuntu clang version 14.0.0-1ubuntu1
Target: x86_64-pc-linux-gnu
问题:
使用make编译过程中出现如下的类似错误:
/opt/cs_course/emf-ebpf/lib/libbpf/linker.c:594: undefined reference to `elf_errmsg'
/usr/bin/ld: /opt/cs_course/emf-ebpf/lib/libbpf/linker.c:568: undefined reference to `elf_errmsg'
/usr/bin/ld: /opt/cs_course/emf-ebpf/lib/libbpf/linker.c:576: undefined reference to `elf_errmsg'
/usr/bin/ld: /opt/cs_course/emf-ebpf/lib/libbpf/linker.c:606: undefined reference to `elf_errmsg'
/usr/bin/ld: /opt/cs_course/emf-ebpf/lib/libbpf/linker.c:588: undefined reference to `elf_errmsg'
/usr/bin/ld: /opt/cs_course/emf-ebpf/sysroot/lib/libbpf.a(linker.o):/opt/cs_course/emf-ebpf/lib/libbpf/linker.c:614: more undefined references to `elf_errmsg' follow
libelf库未被链接
仔细观察后是Makefile第53行出现顺序错误
修正之后可以正常编译
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.