You are not logged in.

#1 2016-06-09 19:32:54

jernst
Member
From: Silicon Valley
Registered: 2014-03-04
Posts: 285
Website

[solved] libsystemd-journal? => It was merged into libsystemd

I'm looking for library libsystemd-journal. It used to be in package libsystemd, but it isn't any more. Apparently it was removed around version 228.

Does Arch still provide it, and if so, where?

Thanks.

Last edited by jernst (2016-06-10 02:37:26)

Offline

#2 2016-06-09 19:52:20

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,370
Website

Re: [solved] libsystemd-journal? => It was merged into libsystemd

Not a Installation issue, moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2016-06-09 19:52:35

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 27,798
Website

Re: [solved] libsystemd-journal? => It was merged into libsystemd

It looks like it's been incorporated into the systemd package:

$ pacman -Qo /usr/include/systemd/sd-journal.h
/usr/include/systemd/sd-journal.h is owned by systemd 230-3

"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Online

#4 2016-06-09 19:54:59

jernst
Member
From: Silicon Valley
Registered: 2014-03-04
Posts: 285
Website

Re: [solved] libsystemd-journal? => It was merged into libsystemd

This is just the header file, I'm looking for the actual library. It used to be:

usr/lib/libsystemd-journal.so.0
usr/lib/libsystemd-journal.so

Offline

#5 2016-06-09 20:15:35

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 27,798
Website

Re: [solved] libsystemd-journal? => It was merged into libsystemd

`pacman -Ql libsystemd`

Make an effort.

The man page of any relevant function would also explicitly give you your answers.  e.g. `man sd_journal_get_data`


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Online

#6 2016-06-09 21:06:37

jernst
Member
From: Silicon Valley
Registered: 2014-03-04
Posts: 285
Website

Re: [solved] libsystemd-journal? => It was merged into libsystemd

Trilby, I'm not understanding what you are saying.

> pacman -Ql libsystemd
libsystemd /usr/
libsystemd /usr/lib/
libsystemd /usr/lib/libnss_myhostname.so.2
libsystemd /usr/lib/libnss_mymachines.so.2
libsystemd /usr/lib/libnss_resolve.so.2
libsystemd /usr/lib/libsystemd.so
libsystemd /usr/lib/libsystemd.so.0
libsystemd /usr/lib/libsystemd.so.0.15.0
libsystemd /usr/lib/libudev.so
libsystemd /usr/lib/libudev.so.1
libsystemd /usr/lib/libudev.so.1.6.4

This is 230-3. I went to the archive, and compared with older versions, and they have more files. E.g.:

> tar tfJ libsystemd-228-1-x86_64.pkg.tar.xz
.PKGINFO
.MTREE
usr/
usr/lib/
usr/lib/libsystemd.so.0
usr/lib/libsystemd.so
usr/lib/libudev.so.1
usr/lib/libudev.so
usr/lib/libsystemd-journal.so.0
usr/lib/libsystemd-journal.so
usr/lib/libsystemd-login.so.0
usr/lib/libsystemd-login.so
usr/lib/libsystemd-id128.so.0
usr/lib/libsystemd-id128.so
usr/lib/libsystemd-daemon.so.0
usr/lib/libsystemd-daemon.so
usr/lib/libsystemd.so.0.13.0
usr/lib/libudev.so.1.6.4
usr/lib/libnss_myhostname.so.2
usr/lib/libnss_mymachines.so.2
usr/lib/libnss_resolve.so.2
usr/lib/libsystemd-journal.so.0.11.5
usr/lib/libsystemd-login.so.0.9.3
usr/lib/libsystemd-id128.so.0.0.28
usr/lib/libsystemd-daemon.so.0.0.12

Here seems to be the change that removed those libraries from the package: https://git.archlinux.org/svntogit/pack … 5e43f933b7 . The same commit does not seem to contain another package, so I figure those libraries (not just the one I'm looking for) were simply dropped?

Offline

#7 2016-06-09 22:33:00

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 27,798
Website

Re: [solved] libsystemd-journal? => It was merged into libsystemd

It looks to me like they were merged into the {lib,}systemd packages.  What exactly is missing?  What are you compiling?  What error are you getting?


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Online

#8 2016-06-09 23:37:20

jernst
Member
From: Silicon Valley
Registered: 2014-03-04
Posts: 285
Website

Re: [solved] libsystemd-journal? => It was merged into libsystemd

I'm attempting to use perl-log-journald (which is a bridge from perl4j logging to systemd journal logging). It worked fine until a recent system upgrade broke it. Here's the PKGBUILD I use: https://github.com/uboslinux/ubos-perl/ … d/PKGBUILD

Using a build of perl-log-journald from before the system upgrade, when I'm running a script using it I'm getting error:

lib/Log/Journald.c: loadable library and perl binaries are mismatched (got handshake key 0xdb00080, needed 0xdb80080)

so I figure I recompile, but that fails because perl-log-journald's Perl build script fails on

pkg-config --cflags libsystemd-journal

which refers to that library. This is the reason I asked what happened to that library. I edited this to use libsystemd instead (per your suggestion that maybe the symbols have moved there). I get it to "compile", but the test fails with:

undefined symbol: sd_journal_sendv at /usr/lib/perl5/core_perl/DynaLoader.pm line 193.

which is also the error my script fails with.

You seem to be correct that the symbol has moved into the main systemd library:

scanelf -l -s sd_journal_sendv | grep sd_journal_sendv
ET_DYN sd_journal_sendv /usr/lib/libsystemd.so.0.15.0

so I guess my problem has morphed into "why doesn't Perl DynaLoader find it there?"

Last edited by jernst (2016-06-09 23:37:55)

Offline

#9 2016-06-10 01:15:49

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 27,798
Website

Re: [solved] libsystemd-journal? => It was merged into libsystemd

jernst wrote:

so I guess my problem has morphed into "why doesn't Perl DynaLoader find it there?"

Thank you.  This is finally the actual question.  It didn't really morph though.  Where is libsystemd-journal is a question I can help answer: it's in libsystemd.  But perl library loading issues is not something I can help with.  You may want to start a new thread for that with a title that will draw in the perl monks.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Online

Board footer

Powered by FluxBB