Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gentoo looks for shared libraries in old version directories
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
sacchi
Tux's lil' helper
Tux's lil' helper


Joined: 28 May 2004
Posts: 99

PostPosted: Mon Oct 21, 2024 11:08 am    Post subject: Gentoo looks for shared libraries in old version directories Reply with quote

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
View user's profile Send private message
Banana
Moderator
Moderator


Joined: 21 May 2004
Posts: 1697
Location: Germany

PostPosted: Mon Oct 21, 2024 12:21 pm    Post subject: Reply with quote

Make sure your config file is indeed correct. Somtimes the first line of the error is the correct one (and sometimes not, so just check everything)

Did you re-emerge syslog-ng and the error message still exists?
_________________
Forum Guidelines

PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22541

PostPosted: Mon Oct 21, 2024 12:26 pm    Post subject: Reply with quote

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
View user's profile Send private message
sacchi
Tux's lil' helper
Tux's lil' helper


Joined: 28 May 2004
Posts: 99

PostPosted: Mon Oct 21, 2024 8:53 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
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