Closed tathanhdinh closed 3 years ago
That's weird! On Ubuntu (even the lastest LTS 18.04), it links but on Fedora (both 29/30), it doesn't.
So I see two things going on here. First is the init calling exit issue, which is totally fixable. But then there's the undefined symbols issue. I don't have a copy of Fedora lying around, can you run nm
on rustyvisor.ko, rustyvisor.o and loader/linux.o target/$(TARGET)/$(RELEASE)/librustyvisor.a and post the results on here?
It might be some sort of symbol visibility issue on different rust versions?
Closing because I'm rewriting the project.
Hello,
I've managed to build rustyvisor after some minor changes but it seems the module
rustyvisor.ko
does not link withlibrustyvisor.a
.I've got the following report:
Analyzing the
rustyvisor.ko
by an disassembler also confirm that these functions are not linked.Many thanks for any help.