Skip Menu |

This queue is for tickets about the Log-Journald CPAN distribution.

Report information
The Basics
Id: 127913
Status: open
Priority: 0/
Queue: Log-Journald

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.30
Fixed in: (no value)



Subject: undefined symbol: sd_journal_sendv (again)
On some systems (Ubuntu 16.04 & 18.04) I see the following test failure: ... # Failed test 'use Log::Journald;' # at t/Log-Journald.t line 7. # Tried to use 'Log::Journald'. # Error: Can't load '/home/cpansand/.cpan/build/2018120419/Log-Journald-0.30-0/blib/arch/auto/Log/Journald/Journald.so' for module Log::Journald: /home/cpansand/.cpan/build/2018120419/Log-Journald-0.30-0/blib/arch/auto/Log/Journald/Journald.so: undefined symbol: sd_journal_sendv at /usr/lib/x86_64-linux-gnu/perl/5.28/DynaLoader.pm line 187. # # Compilation failed in require at t/Log-Journald.t line 7. # BEGIN failed--compilation aborted at t/Log-Journald.t line 7. # Looks like you failed 1 test of 1. t/Log-Journald.t .. Dubious, test returned 1 (wstat 256, 0x100) Failed 1/1 subtests ...
That is easy to fix, libsystemd-journal got merged into libsystemd. Patch attached. On Tue Dec 04 16:27:24 2018, SREZIC wrote: Show quoted text
> On some systems (Ubuntu 16.04 & 18.04) I see the following test > failure: > > ... > # Failed test 'use Log::Journald;' > # at t/Log-Journald.t line 7. > # Tried to use 'Log::Journald'. > # Error: Can't load '/home/cpansand/.cpan/build/2018120419/Log- > Journald-0.30-0/blib/arch/auto/Log/Journald/Journald.so' for module > Log::Journald: /home/cpansand/.cpan/build/2018120419/Log-Journald- > 0.30-0/blib/arch/auto/Log/Journald/Journald.so: undefined symbol: > sd_journal_sendv at /usr/lib/x86_64-linux-gnu/perl/5.28/DynaLoader.pm > line 187. > # # Compilation failed in require at t/Log-Journald.t line 7. > # BEGIN failed--compilation aborted at t/Log-Journald.t line 7. > # Looks like you failed 1 test of 1. > t/Log-Journald.t .. > Dubious, test returned 1 (wstat 256, 0x100) > Failed 1/1 subtests > ...
Subject: log-journald-libsystemd.patch
diff -u Log-Journald-0.30/Build.PL Log-Journald-0.30.patched/Build.PL --- Log-Journald-0.30/Build.PL 2017-11-23 10:55:50.000000000 +0100 +++ Log-Journald-0.30.patched/Build.PL 2019-04-28 18:15:39.463612878 +0200 @@ -3,9 +3,9 @@ use Module::Build; -my $libsystemd_journal_CFLAGS = `pkg-config --cflags libsystemd-journal` +my $libsystemd_journal_CFLAGS = `pkg-config --cflags libsystemd` or warn 'Could not determine systemd-journal compiler flags'; -my $libsystemd_journal_LDFLAGS = `pkg-config --libs libsystemd-journal` +my $libsystemd_journal_LDFLAGS = `pkg-config --libs libsystemd` or warn 'Could not determine systemd-journal compiler flags'; my $build = Module::Build->new(