[syslog-ng] syslog-ng 3.35.1-2.el7

Peter Czanik (pczanik) Peter.Czanik at oneidentity.com
Thu Feb 10 15:15:40 UTC 2022


Hi Evan,

While we are working on a more elegant solution, could you check this quick fix? I only have the latest CentOS at hand with all the latest updates, so cannot test it myself...

Here is what I put into the spec file:

# Copr always uses the latest RHEL release to build syslog-ng
# starting syslog-ng might fail on older RHEL releases
# change this if you build on an older RHEL version
# can be as low as 2.32
BuildRequires: glib2-devel >= 2.54
Requires: glib2 >= 2.54

Anyone can still build on an older RHEL release after some editing, but there is an explicit Requires line on the glib2 version available in the latest RHEL release.

My testing repo is available at: https://copr.fedorainfracloud.org/coprs/czanik/syslog-ng-githead/ (it's not based on an official release, but the latest git snapshot from this afternoon).

Bye,
Peter

Peter Czanik (CzP) <peter.czanik at oneidentity.com>
Balabit (a OneIdentity company) / syslog-ng upstream
https://syslog-ng.com/community/
https://twitter.com/PCzanik

________________________________
From: syslog-ng <syslog-ng-bounces at lists.balabit.hu> on behalf of Peter Czanik (pczanik) <Peter.Czanik at oneidentity.com>
Sent: Tuesday, February 8, 2022 19:13
To: syslog-ng at lists.balabit.hu <syslog-ng at lists.balabit.hu>
Subject: Re: [syslog-ng] syslog-ng 3.35.1-2.el7

CAUTION: This email originated from outside of the organization. Do not follow guidance, click links, or open attachments unless you recognize the sender and know the content is safe.

Hi,

I'm on holidays now after a very busy conference weekend, so I did not check the repositories or the spec files. So, it's just a guess based on earlier experience: are you are trying to run syslog-ng on an earlier CentOS / RHEL release? As Copr always uses the latest CentOS / RHEL release to compile packages. What it means that if a package was upgraded along the way in RHEL, then syslog-ng is compiled with a more recent version of Glib than available on an earlier RHEL release.

I'll take a closer look at it later this week.

Peter

Peter Czanik (CzP) <peter.czanik at oneidentity.com>
Balabit (a OneIdentity company) / syslog-ng upstream
https://syslog-ng.com/community/<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsyslog-ng.com%2Fcommunity%2F&data=04%7C01%7Cpeter.czanik%40balabit.com%7C918e22df09794d22a7e208d9eb2eb517%7C91c369b51c9e439c989c1867ec606603%7C0%7C1%7C637799408120899723%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=EVh8BJqxeq95diXpO8OG2lQQRni1s9K4wYL%2Bo2CSS%2Bc%3D&reserved=0>
https://twitter.com/PCzanik<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftwitter.com%2FPCzanik&data=04%7C01%7Cpeter.czanik%40balabit.com%7C918e22df09794d22a7e208d9eb2eb517%7C91c369b51c9e439c989c1867ec606603%7C0%7C1%7C637799408120899723%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=jLvlWR%2BP7FkTOIu7xwj34bhQFlRiBT3V9VW5%2BW9c5Tc%3D&reserved=0>

________________________________
From: syslog-ng <syslog-ng-bounces at lists.balabit.hu> on behalf of Evan Rempel <erempel at uvic.ca>
Sent: Tuesday, February 8, 2022 18:41
To: syslog-ng at lists.balabit.hu <syslog-ng at lists.balabit.hu>
Subject: Re: [syslog-ng] syslog-ng 3.35.1-2.el7

CAUTION: This email originated from outside of the organization. Do not follow guidance, click links, or open attachments unless you recognize the sender and know the content is safe.

Although that might be the actual requirement, the provided RPM does not reflect this


% rpm -ql --requires -p syslog-ng-3.35.1-2.el7.x86_64.rpm | grep -i glib

ld-linux-x86-64.so.2(GLIBC_2.3)(64bit)
libc.so.6(GLIBC_2.11)(64bit)
libc.so.6(GLIBC_2.14)(64bit)
libc.so.6(GLIBC_2.2.5)(64bit)
libc.so.6(GLIBC_2.3)(64bit)
libc.so.6(GLIBC_2.3.4)(64bit)
libc.so.6(GLIBC_2.4)(64bit)
libc.so.6(GLIBC_2.8)(64bit)
libdl.so.2(GLIBC_2.2.5)(64bit)
libglib-2.0.so.0()(64bit)
libm.so.6(GLIBC_2.2.5)(64bit)
libpthread.so.0(GLIBC_2.2.5)(64bit)
librt.so.1(GLIBC_2.2.5)(64bit)

And i do not htink that version 2.32 is sufficient.
At the time of the install I am running an ansible playbook that starts with a minimal image of RHEL7

% cat /etc/redhat-release
Red hat Enterprise Linux Server release 7.3 (Maipo)

which contains the glib2 2.46

Installing the latest syslog-ng does not upgrade glib2
One of the major purposes of RPM is to ensure that a package can not be installed if the required components are not installed. The glib2 2.56 available at this point, so should have been upgraded to ensure that syslog-ng could run.

The error is

/usr/sbin/syslog-ng: symbol lookup error: /usr/lib64/libsyslog-ng-3.35.so.0: undefined symbol: g_ptr_array_find_with_equal_func

The lowest version of the glib2 package available on RHEL7 that allows syslog-ng 3.35 to start is glib2-2.54.2-2.el7.x86_64

# rpm -qi glib2
Name        : glib2
Version     : 2.54.2
Release     : 2.el7
Architecture: x86_64
Install Date: Tue 08 Feb 2022 09:39:20 AM PST
Group       : Unspecified
Size        : 11987361
License     : LGPLv2+
Signature   : RSA/SHA256, Wed 29 Nov 2017 04:02:25 AM PST, Key ID 199e2f91fd431d51
Source RPM  : glib2-2.54.2-2.el7.src.rpm
Build Date  : Fri 10 Nov 2017 04:40:23 AM PST
Build Host  : x86-041.build.eng.bos.redhat.com
Relocations : (not relocatable)
Packager    : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla><https://nam12.safelinks.protection.outlook.com/?url=http%3A%2F%2Fbugzilla.redhat.com%2Fbugzilla&data=04%7C01%7Cpeter.czanik%40balabit.com%7C918e22df09794d22a7e208d9eb2eb517%7C91c369b51c9e439c989c1867ec606603%7C0%7C1%7C637799408120899723%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=GdJdi1E4pCzlSbuVMzDQlMDqwV2B5lnGGQ61dXCNwYI%3D&reserved=0>
Vendor      : Red Hat, Inc.
URL         : http://www.gtk.org<https://nam12.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.gtk.org%2F&data=04%7C01%7Cpeter.czanik%40balabit.com%7C918e22df09794d22a7e208d9eb2eb517%7C91c369b51c9e439c989c1867ec606603%7C0%7C1%7C637799408120899723%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=ly6OrbT7VdUeFKYMg6yWgpNPuN1MdYBrrHHjdQPQYhM%3D&reserved=0>
Summary     : A library of handy utility functions


Evan.

On 2022-02-08 08:22, Gabor Nagy (gnagy) wrote:
Notice: This message was sent from outside the University of Victoria email system. Please be cautious with links and sensitive information.

Hi Evan,

May I ask what version of glib2 do you have on that RHEL 7 system?
I'm only asking as we increased the minimum version of glib to 2.32 recently.

Don't get me wrong, the 'requires' field in the spec file is a good point, I just wanted to let you know about the minimum version also.

Regards,
Gabor




______________________________________________________________________________
Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.balabit.hu%2Fmailman%2Flistinfo%2Fsyslog-ng&data=04%7C01%7Cpeter.czanik%40balabit.com%7C918e22df09794d22a7e208d9eb2eb517%7C91c369b51c9e439c989c1867ec606603%7C0%7C1%7C637799408120899723%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=5l2CB%2FMKo8qtS%2F6orlSK91AybNYphUyfQselALVVvao%3D&reserved=0>
Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng<https://nam12.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.balabit.com%2Fsupport%2Fdocumentation%2F%3Fproduct%3Dsyslog-ng&data=04%7C01%7Cpeter.czanik%40balabit.com%7C918e22df09794d22a7e208d9eb2eb517%7C91c369b51c9e439c989c1867ec606603%7C0%7C1%7C637799408120899723%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=q7SCL4jKRtlb9ULpgzsSG7jHc02p7e5FpbCyFXpNtn8%3D&reserved=0>
FAQ: http://www.balabit.com/wiki/syslog-ng-faq<https://nam12.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.balabit.com%2Fwiki%2Fsyslog-ng-faq&data=04%7C01%7Cpeter.czanik%40balabit.com%7C918e22df09794d22a7e208d9eb2eb517%7C91c369b51c9e439c989c1867ec606603%7C0%7C1%7C637799408120899723%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=8qQ%2FnkzqJpY5NBryw0slzpS3GObFj93g67HKnCqoVsY%3D&reserved=0>




--
Evan Rempel                                         250.721.7691
Senior Systems Administrator                     erempel at uvic.ca<mailto:erempel at uvic.ca>
Data Centre Services, University Systems, University of Victoria

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.balabit.hu/pipermail/syslog-ng/attachments/20220210/b94ad5b2/attachment-0001.htm>


More information about the syslog-ng mailing list