[systemd-devel] Some issues about compiling systemd on linux

Gavin 670915706 at qq.com
Thu May 28 10:42:17 UTC 2020


Hello ,


I have a project that needs to use the journald module in systemd. My initial idea was to compile journald separately, but then I found that this would not work.


So I started to try to compile systemd, but I encountered many problems during the compilation process, and now I have been unable to solve this problem.



../src/libsystemd/sd-bus/test-bus-vtable-cc.cc:1:1: error: ‘test’ does not name a type
 test-bus-vtable.c
 ^~~~
[1272/1466] Compiling C object 'test-dhcp-optio...xe/src_libsystemd-network_test-dhcp-option.c.o'
ninja: build stopped: subcommand failed.
Makefile:2: recipe for target 'all' failed
make: *** [all] Error 1


How can I solve this problem?


My ultimate goal is to run the journald module on ARM. I can transplant the systemd. Of course, it is better to be able to compile the journald separately. But I don't know how to cross-compile systemd yet, can you give me some help?
   


I look forward to receiving your reply!


Best Regards!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20200528/7091cde1/attachment.htm>


More information about the systemd-devel mailing list