Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kamailio not compiling - systemd/sd-journal.h: No such file or directory #380

Closed
Jaykah opened this issue Oct 23, 2015 · 3 comments
Closed

Comments

@Jaykah
Copy link

Jaykah commented Oct 23, 2015

When trying to compile Kamailio, I get the following error:

CC (gcc) [M log_systemd.so]     log_systemd_mod.o
�[91mlog_systemd_mod.c:27:32: fatal error: systemd/sd-journal.h: No such file or directory
�[0m�[91mcompilation terminated.
�[0m../../Makefile.rules:97: recipe for target 'log_systemd_mod.o' failed
�[91mmake[1]: *** [log_systemd_mod.o] Error 1
�[0m�[91mmake: *** [modules] Error 1
�[0mMakefile:511: recipe for target 'modules' failed
The command '/bin/sh -c make all && make install' returned a non-zero code: 2

Have tried versions 4.1 and 4.3.3, on Ubuntu Trusty & Wily, always get the same error.

This is an automated Jenkins/Docker build that was previously succeeding, so that rules out the dependency problems.

Can anyone point me in the right direction?

@miconda
Copy link
Member

miconda commented Oct 24, 2015

This is a module that was added recently. you have to add it to exclude_modules inside modules.lst file or run:

make distclean

Then run again the commands you used to build kamailio.

If you still get issues, re-open this item.

@miconda miconda closed this as completed Oct 24, 2015
@kamailio-sync
Copy link

                                                                                  Ddxgj                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           De: Jay JEnviado: sábado, 24 de octubre de 2015 01:42Para: Kamailio Devel ListResponder a: kamailio/kamailioAsunto: [sr-dev] [kamailio] Kamailio not compiling - systemd/sd-journal.h: No such file or directory (#380)When trying to compile Kamailio, I get the following error:

CC (gcc) [M log_systemd.so] log_systemd_mod.o
�[91mlog_systemd_mod.c:27:32: fatal error: systemd/sd-journal.h: No such file or directory
�[0m�[91mcompilation terminated.
�[0m../../Makefile.rules:97: recipe for target 'log_systemd_mod.o' failed
�[91mmake[1]: *** [log_systemd_mod.o] Error 1
�[0m�[91mmake: *** [modules] Error 1
�[0mMakefile:511: recipe for target 'modules' failed
The command '/bin/sh -c make all && make install' returned a non-zero code: 2

Have tried versions 4.1 and 4.3.3, on Ubuntu Trusty & Wily, always get the same error.

This is an automated Jenkins/Docker build that was previously succeeding, so that rules out the dependency problems.

Can anyone point me in the right direction?

—Reply to this email directly or view it on GitHub.

@miconda
Copy link
Member

miconda commented Oct 24, 2015

Kamailio 4.1 and 4.3 don't have the log_systemd module, I guess you mixed the branches there.

You can restart with a fresh clone from git and try again to compile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants