View previous topic :: View next topic |
Author |
Message |
sacchi Tux's lil' helper
Joined: 28 May 2004 Posts: 104
|
Posted: Mon Oct 21, 2024 11:08 am Post subject: Gentoo looks for shared libraries in old version directories |
|
|
Hi all,
After having issues with ppp here, now I have the exact same problem with syslog-ng. I installed version 4.8 but the system is looking for the library libsyslog-ng-4.7.so.0.
Code: | # /etc/init.d/syslog-ng start
* Caching service dependencies ...
Error: upsdrv is the name of a real and virtual service. [ ok ]
* Checking your configfile (/etc/syslog-ng/syslog-ng.conf) ...
syslog-ng: error while loading shared libraries: libsyslog-ng-4.7.so.0: cannot open shared object file: No such file or directory
* Configuration error. Please fix your configfile (/etc/syslog-ng/syslog-ng.conf) [ !! ]
* ERROR: syslog-ng failed to start |
Unfortunately, there is no reference to the shared library within the syslog-ng.conf file.
Since I experienced the identical problem with ppp, I believe this indicates a more general issue beyond the individual package. What do you think?
Thanks!
Lorenzo |
|
Back to top |
|
|
Banana Moderator
Joined: 21 May 2004 Posts: 1755 Location: Germany
|
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22718
|
Posted: Mon Oct 21, 2024 12:26 pm Post subject: |
|
|
I think the warning about the configuration file is bogus, and triggered by syslog-ng being broken. What is the output of emerge --info app-admin/syslog-ng ; scanelf --needed /usr/sbin/syslog-ng ; lddtree /usr/sbin/syslog-ng? |
|
Back to top |
|
|
sacchi Tux's lil' helper
Joined: 28 May 2004 Posts: 104
|
Posted: Mon Oct 21, 2024 8:53 pm Post subject: |
|
|
Hu wrote: | I think the warning about the configuration file is bogus, and triggered by syslog-ng being broken. What is the output of emerge --info app-admin/syslog-ng ; scanelf --needed /usr/sbin/syslog-ng ; lddtree /usr/sbin/syslog-ng? |
Thank you all for your support!
Code: | # emerge --info app-admin/syslog-ng
Portage 3.0.66.1 (python 3.12.7-final-0, default/linux/amd64/23.0/no-multilib, gcc-14, glibc-2.40-r5, 6.11.3 x86_64)
=================================================================
System Settings
=================================================================
System uname: Linux-6.11.3-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E8400_@_3.00GHz-with-glibc2.40
KiB Mem: 4009456 total, 2921120 free
KiB Swap: 0 total, 0 free
Timestamp of repository gentoo: Fri, 11 Oct 2024 09:45:00 +0000
Head commit of repository gentoo: bf0297015789ddf17f8c7c70e2d899c217603dd4
Timestamp of repository mv: Fri, 11 Oct 2024 03:48:24 +0000
Head commit of repository mv: 29756531fd91bbab182ff247f494a10bef480a58
Timestamp of repository zugaina: Tue, 08 Oct 2024 15:33:19 +0000
Head commit of repository zugaina: 0a96f40b51439ce8957786333ec6c52d3201cf3d
sh bash 5.2_p37
ld GNU ld (Gentoo 2.43 p2) 2.43.1
app-misc/pax-utils: 1.3.8::gentoo
app-shells/bash: 5.2_p37::gentoo
dev-build/autoconf: 2.72-r1::gentoo
dev-build/automake: 1.17-r1::gentoo
dev-build/cmake: 3.30.5::gentoo
dev-build/libtool: 2.5.3::gentoo
dev-build/make: 4.4.1-r100::gentoo
dev-build/meson: 1.5.2::gentoo
dev-lang/perl: 5.40.0::gentoo
dev-lang/python: 3.11.10_p1::gentoo, 3.12.7_p1::gentoo, 3.13.0::gentoo
dev-lang/rust: 1.81.0::gentoo
sys-apps/baselayout: 2.15::gentoo
sys-apps/openrc: 0.55.1::gentoo
sys-apps/sandbox: 2.39::gentoo
sys-devel/binutils: 2.43-r1::gentoo
sys-devel/binutils-config: 5.5.2::gentoo
sys-devel/clang: 15.0.7-r3::gentoo, 17.0.6::gentoo, 18.1.8::gentoo, 19.1.1::gentoo
sys-devel/gcc: 14.2.1_p20240921::gentoo
sys-devel/gcc-config: 2.11::gentoo
sys-devel/llvm: 15.0.7-r7::gentoo, 17.0.6-r3::gentoo, 18.1.8-r4::gentoo, 19.1.1::gentoo
sys-kernel/linux-headers: 6.11::gentoo (virtual/os-headers)
sys-libs/glibc: 2.40-r5::gentoo
Repositories:
gentoo
location: /usr/portage
sync-type: rsync
sync-uri: rsync://rsync1.de.gentoo.org/gentoo-portage
priority: -1000
volatile: True
sync-rsync-verify-jobs: 1
sync-rsync-extra-opts:
sync-rsync-verify-metamanifest: yes
sync-rsync-verify-max-age: 3
mv
location: /var/db/repos/mv
sync-type: git
sync-uri: https://github.com/gentoo-mirror/mv.git
masters: gentoo
volatile: False
x-portage
location: /usr/local/portage
masters: gentoo
priority: 0
volatile: True
zugaina
location: /var/db/repos/zugaina
sync-type: git
sync-uri: https://github.com/gentoo-mirror/zugaina.git
masters: gentoo
volatile: False
Binary Repositories:
binhost
priority: 9999
sync-uri: https://gentoo.osuosl.org/experimental/amd64/binpackages/23.0/x86-64-v3
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -march=core2 -pipe -fomit-frame-pointer -fcommon "
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.3/ext-active/ /etc/php/cgi-php8.3/ext-active/ /etc/php/cli-php8.3/ext-active/ /etc/php/fpm-php8.3/ext-active/ /etc/php/phpdbg-php8.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d"
CXXFLAGS="-O3 -march=core2 -pipe -fomit-frame-pointer -fcommon "
DISTDIR="/tmp"
EMERGE_DEFAULT_OPTS="--autounmask=n"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox
news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="it_IT.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
MAKEOPTS="-j3"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/tmp"
SHELL="/bin/bash"
USE="X acl acpi activefilter afpacket alaw alsa amd64 amuled apache2 async atm audiofile authfile autoipd avahi bittorrent bonjour bzip2 caps cet cgi clamav cli client cpudetection crypt ctypes-python cups curl daemon dbus deprecated dhcp digitalradio dlz dump dynamicplugin eap-tls edd extras faac flac fontconfig fpm ftp g722 g729 gd gdbm gitea go gudev h323 headless howl-compat hwdb iconv inifile introspection iproute2 ipv6 javascript jpeg jpeg2k ldap libedit libtirpc lids lighttpd lm_sensors logmail lvm mad mdnsresponder-compat mhash mmx mp3 mudflap mxdatetime mysql mysqli ncurses network nls nptl nptlonly ocamlopt ogg openmp openssh openssl padlock pango pcap pcre pdo perl php pmu png policykit pop3d python rdesktop-vrdp remote samba schily-tools schroedinger seccomp sensord session sockets softquota sqlite sse sse2 sse3 ssl subversion svg swat sysfs syslog sysvipc test-rust text theora threads tiff truetype ulaw unicode upcall urandom usb vboxwebsrv vhosts vorbis vroot winbind x264 xattr xml zeroconf zlib" ABI_X86="64" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="pc emu" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres16" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_11 python3_12" RUBY_TARGETS="ruby33" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
=================================================================
Package Settings
=================================================================
app-admin/syslog-ng-4.8.0::gentoo was built with the following:
USE="caps python -amqp -dbi -geoip2 -grpc -http -json -kafka -mongodb -mqtt -pacct -redis -smtp -snmp -spoof-source -systemd -tcpd -test" PYTHON_SINGLE_TARGET="python3_12 -python3_10 -python3_11 -python3_13" |
Code: | # scanelf --needed /usr/sbin/syslog-ng
TYPE NEEDED FILE
ET_DYN libsyslog-ng-4.8.so.0,libglib-2.0.so.0,libc.so.6 /usr/sbin/syslog-ng |
Code: | # lddtree /usr/sbin/syslog-ng
/usr/sbin/syslog-ng (interpreter => /lib64/ld-linux-x86-64.so.2)
libsyslog-ng-4.8.so.0 => /usr/lib64/libsyslog-ng-4.8.so.0
libm.so.6 => /usr/lib64/libm.so.6
libevtlog-4.8.so.0 => /usr/lib64/libevtlog-4.8.so.0
libcap.so.2 => /usr/lib64/libcap.so.2
libpcre2-8.so.0 => /usr/lib64/libpcre2-8.so.0
libivykis.so.0 => /usr/lib64/libivykis.so.0
libjson-c.so.5 => /usr/lib64/libjson-c.so.5
libsecret-storage.so.0 => /usr/lib64/libsecret-storage.so.0
libgmodule-2.0.so.0 => /usr/lib64/libgmodule-2.0.so.0
libgthread-2.0.so.0 => /usr/lib64/libgthread-2.0.so.0
libssl.so.3 => /usr/lib64/libssl.so.3
libcrypto.so.3 => /usr/lib64/libcrypto.so.3
libglib-2.0.so.0 => /usr/lib64/libglib-2.0.so.0
libc.so.6 => /usr/lib64/libc.so.6 |
Thank you!
Lorenzo |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22718
|
Posted: Tue Oct 22, 2024 6:06 pm Post subject: |
|
|
That output looks correct. Is there some other syslog-ng on your system? Did you ever install something system-wide outside of Portage? What is the output of type syslog-ng, as run by root at the same prompt where you would run the init script? |
|
Back to top |
|
|
sacchi Tux's lil' helper
Joined: 28 May 2004 Posts: 104
|
Posted: Thu Oct 24, 2024 6:27 pm Post subject: |
|
|
Hi Hu,
thank you for your support!
Hu wrote: | That output looks correct. Is there some other syslog-ng on your system? |
I don't think so...
Hu wrote: | Did you ever install something system-wide outside of Portage? |
No
Hu wrote: | What is the output of type syslog-ng, as run by root at the same prompt where you would run the init script? |
Code: | # type syslog-ng
syslog-ng è /usr/bin/syslog-ng |
Please note that the exact same issue occurs with the ppp 2.5.1 package (https://forums.gentoo.org/viewtopic-t-1171203.html). Once installed, the system, via /etc/init.d/net.ppp0, searches for the pppoe.so library within /usr/lib64/pppd/2.5.0, which no longer exists since version 2.5.1 has been installed.
Thank you,
Lorenzo |
|
Back to top |
|
|
sacchi Tux's lil' helper
Joined: 28 May 2004 Posts: 104
|
Posted: Thu Oct 24, 2024 8:55 pm Post subject: |
|
|
Hope this helps!
Code: | # objdump -p /usr/bin/syslog-ng
/usr/bin/syslog-ng: formato del file elf64-x86-64
Program Header:
PHDR off 0x0000000000000040 vaddr 0x0000000000000040 paddr 0x0000000000000040 align 2**3
filesz 0x00000000000002d8 memsz 0x00000000000002d8 flags r--
INTERP off 0x0000000000000318 vaddr 0x0000000000000318 paddr 0x0000000000000318 align 2**0
filesz 0x000000000000001c memsz 0x000000000000001c flags r--
LOAD off 0x0000000000000000 vaddr 0x0000000000000000 paddr 0x0000000000000000 align 2**12
filesz 0x0000000000001b50 memsz 0x0000000000001b50 flags r--
LOAD off 0x0000000000002000 vaddr 0x0000000000002000 paddr 0x0000000000002000 align 2**12
filesz 0x0000000000000a91 memsz 0x0000000000000a91 flags r-x
LOAD off 0x0000000000003000 vaddr 0x0000000000003000 paddr 0x0000000000003000 align 2**12
filesz 0x0000000000000958 memsz 0x0000000000000958 flags r--
LOAD off 0x0000000000003db0 vaddr 0x0000000000004db0 paddr 0x0000000000004db0 align 2**12
filesz 0x00000000000006b0 memsz 0x0000000000000760 flags rw-
DYNAMIC off 0x0000000000003dc0 vaddr 0x0000000000004dc0 paddr 0x0000000000004dc0 align 2**3
filesz 0x0000000000000200 memsz 0x0000000000000200 flags rw-
NOTE off 0x0000000000000338 vaddr 0x0000000000000338 paddr 0x0000000000000338 align 2**3
filesz 0x0000000000000040 memsz 0x0000000000000040 flags r--
NOTE off 0x0000000000000378 vaddr 0x0000000000000378 paddr 0x0000000000000378 align 2**2
filesz 0x0000000000000020 memsz 0x0000000000000020 flags r--
0x6474e553 off 0x0000000000000338 vaddr 0x0000000000000338 paddr 0x0000000000000338 align 2**3
filesz 0x0000000000000040 memsz 0x0000000000000040 flags r--
EH_FRAME off 0x00000000000037b8 vaddr 0x00000000000037b8 paddr 0x00000000000037b8 align 2**2
filesz 0x0000000000000044 memsz 0x0000000000000044 flags r--
STACK off 0x0000000000000000 vaddr 0x0000000000000000 paddr 0x0000000000000000 align 2**4
filesz 0x0000000000000000 memsz 0x0000000000000000 flags rw-
RELRO off 0x0000000000003db0 vaddr 0x0000000000004db0 paddr 0x0000000000004db0 align 2**0
filesz 0x0000000000000250 memsz 0x0000000000000250 flags r--
Dynamic Section:
NEEDED libsyslog-ng-4.7.so.0
NEEDED libglib-2.0.so.0
NEEDED libc.so.6
INIT 0x0000000000002000
FINI 0x0000000000002a88
INIT_ARRAY 0x0000000000004db0
INIT_ARRAYSZ 0x0000000000000008
FINI_ARRAY 0x0000000000004db8
FINI_ARRAYSZ 0x0000000000000008
GNU_HASH 0x0000000000000398
STRTAB 0x0000000000000b60
SYMTAB 0x0000000000000488
STRSZ 0x00000000000004d1
SYMENT 0x0000000000000018
DEBUG 0x0000000000000000
PLTGOT 0x0000000000004fe8
PLTRELSZ 0x00000000000004b0
PLTREL 0x0000000000000007
JMPREL 0x00000000000016a0
RELA 0x0000000000001118
RELASZ 0x0000000000000588
RELAENT 0x0000000000000018
FLAGS_1 0x0000000008000000
VERNEED 0x00000000000010c8
VERNEEDNUM 0x0000000000000001
VERSYM 0x0000000000001032
RELACOUNT 0x000000000000002b
Version References:
required from libc.so.6:
0x0d696914 0x00 05 GLIBC_2.4
0x069691b4 0x00 04 GLIBC_2.34
0x09691a75 0x00 03 GLIBC_2.2.5
0x09691974 0x00 02 GLIBC_2.3.4 |
|
|
Back to top |
|
|
Goverp Advocate
Joined: 07 Mar 2007 Posts: 2181
|
Posted: Fri Oct 25, 2024 11:30 am Post subject: |
|
|
Hu wrote: | That output looks correct. Is there some other syslog-ng on your system? Did you ever install something system-wide outside of Portage? What is the output of type syslog-ng, as run by root at the same prompt where you would run the init script? |
I wonder if this is something to do with the /usr/lib64/libsyslog-ng.so symlink chain not being updated, per something to do with config-protect or read-only mounts or somesuch - though this is just me guessing. _________________ Greybeard |
|
Back to top |
|
|
sam_ Developer
Joined: 14 Aug 2020 Posts: 1982
|
Posted: Fri Oct 25, 2024 3:07 pm Post subject: |
|
|
First, I would pursue Hu's line of questioning. This often happens with something in e.g. /usr/local being picked up which obviously Portage's preserved-libs cannot help with.
Secondly, if the symlink is not being updated, we should investigate if env-update (which calls ldconfig) is failing or misbehaving somehow. |
|
Back to top |
|
|
sacchi Tux's lil' helper
Joined: 28 May 2004 Posts: 104
|
Posted: Fri Oct 25, 2024 4:50 pm Post subject: |
|
|
sam_ wrote: | First, I would pursue Hu's line of questioning. This often happens with something in e.g. /usr/local being picked up which obviously Portage's preserved-libs cannot help with. |
How can I check it?
Thank you,
Lorenzo |
|
Back to top |
|
|
sacchi Tux's lil' helper
Joined: 28 May 2004 Posts: 104
|
Posted: Fri Oct 25, 2024 4:51 pm Post subject: |
|
|
Goverp wrote: | Hu wrote: | That output looks correct. Is there some other syslog-ng on your system? Did you ever install something system-wide outside of Portage? What is the output of type syslog-ng, as run by root at the same prompt where you would run the init script? |
I wonder if this is something to do with the /usr/lib64/libsyslog-ng.so symlink chain not being updated, per something to do with config-protect or read-only mounts or somesuch - though this is just me guessing. |
This hypothesis is promising. I will verify it at home this evening.
Thank you!
Lorenzo |
|
Back to top |
|
|
sacchi Tux's lil' helper
Joined: 28 May 2004 Posts: 104
|
Posted: Tue Oct 29, 2024 6:05 pm Post subject: |
|
|
sacchi wrote: | Goverp wrote: | Hu wrote: | That output looks correct. Is there some other syslog-ng on your system? Did you ever install something system-wide outside of Portage? What is the output of type syslog-ng, as run by root at the same prompt where you would run the init script? |
I wonder if this is something to do with the /usr/lib64/libsyslog-ng.so symlink chain not being updated, per something to do with config-protect or read-only mounts or somesuch - though this is just me guessing. |
This hypothesis is promising. I will verify it at home this evening.
Thank you!
Lorenzo |
Unfortunately, everything seems ok.
Code: |
# ls -ls /usr/lib64/libsyslo*
0 lrwxrwxrwx 1 root root 25 29 ott 08.57 /usr/lib64/libsyslog-ng-4.8.so.0 -> libsyslog-ng-4.8.so.0.0.0
1256 -rwxr-xr-x 1 root root 1284208 29 ott 08.57 /usr/lib64/libsyslog-ng-4.8.so.0.0.0
44 -rw-r--r-- 1 root root 44076 29 ott 08.57 /usr/lib64/libsyslog-ng-native-connector.a
0 lrwxrwxrwx 1 root root 25 29 ott 08.57 /usr/lib64/libsyslog-ng.so -> libsyslog-ng-4.8.so.0.0.0
|
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|