Since bug #778434, speech-dispatcher has hardcoded --disable-ltdl (and removed dev-libs/libltdl dep). This breaks module loading here for me, this is "speech-dispatch -D" output: [Sun Oct 16 19:22:46 2022 : 716367] speechd: Speech Dispatcher 0.11.3 starting [Sun Oct 16 19:22:46 2022 : 716610] speechd: Configuration has been read from "/home/bernard/.config/speech-dispatcher/speechd.conf" [Sun Oct 16 19:22:46 2022 : 716671] speechd: Initializing output module gtts-generic with binary /usr/libexec/speech-dispatcher-modules/sd_generic and configuration /home/bernard/.config/speech-dispatcher/modules/gtts-generic.conf [Sun Oct 16 19:22:46 2022 : 716696] speechd: Output module is logging to file /run/user/1000/speech-dispatcher/log//gtts-generic.log [Sun Oct 16 19:22:46 2022 : 716980] speechd: Module gtts-generic loaded. [Sun Oct 16 19:22:46 2022 : 717731] speechd: Module gtts-generic started successfully with message: --------------- Everything ok so far. --------------- [Sun Oct 16 19:22:46 2022 : 718230] speechd: Error: Module reported error in request from speechd (code 3xx): 300-Opening sound device failed. Reason: Cannot open plugin server. error: /usr/lib64/speech-dispatcher/spd_server: cannot open shared object file: No such file or directory. 300 MODULE ERROR . [Sun Oct 16 19:22:46 2022 : 718520] speechd: Error: Module reported error in request from speechd (code 3xx): 300-Opening sound device failed. Reason: Cannot open plugin pulse. error: /usr/lib64/speech-dispatcher/spd_pulse: cannot open shared object file: No such file or directory. 300 MODULE ERROR . [Sun Oct 16 19:22:46 2022 : 718537] speechd: ERROR: Can't initialize audio in output module, see reason above. I use a sd_generic module (which just pipes out to gTTS), rest of the configuration is default one Switching back to --enable-ltdl, speech-dispatcher works fine again for me Not sure if this is a bug in speech-dispatcher itself, or if plugins require libltdl emerge --info: Portage 3.0.38.1 (python 3.10.8-final-0, default/linux/amd64/17.1/desktop, gcc-12, glibc-2.36-r4, 5.19.11-gentoo x86_64) ================================================================= System uname: Linux-5.19.11-gentoo-x86_64-Intel-R-_Core-TM-_i7-3770S_CPU_@_3.10GHz-with-glibc2.36 KiB Mem: 32842452 total, 584480 free KiB Swap: 4194300 total, 4166908 free Timestamp of repository gentoo: Sun, 16 Oct 2022 08:00:01 +0000 Head commit of repository gentoo: be3239b980776d960539d766a9e23648231d793e Timestamp of repository torbrowser: Sat, 15 Oct 2022 17:49:07 +0000 Head commit of repository torbrowser: d32e300b4aecd32770f3aaacd1c58d855f7820b7 sh bash 5.1_p16-r2 ld GNU ld (Gentoo 2.38 p4) 2.38 app-misc/pax-utils: 1.3.5::gentoo app-shells/bash: 5.1_p16-r2::gentoo dev-java/java-config: 2.3.1::gentoo dev-lang/perl: 5.36.0::gentoo dev-lang/python: 3.9.15::gentoo, 3.10.8::gentoo, 3.11.0_rc2_p1::gentoo dev-lang/rust: 1.64.0-r1::gentoo dev-util/cmake: 3.24.2::gentoo dev-util/meson: 0.63.2-r1::gentoo sys-apps/baselayout: 2.9::gentoo sys-apps/openrc: 0.45.2-r1::gentoo sys-apps/sandbox: 2.29::gentoo sys-devel/autoconf: 2.13-r3::gentoo, 2.71-r4::gentoo sys-devel/automake: 1.16.5::gentoo sys-devel/binutils: 2.38-r2::gentoo, 2.39-r3::gentoo sys-devel/binutils-config: 5.4.1::gentoo sys-devel/clang: 14.0.6-r1::gentoo, 15.0.2::gentoo sys-devel/gcc: 11.3.0::gentoo, 12.2.1_p20221008::gentoo sys-devel/gcc-config: 2.8::gentoo sys-devel/libtool: 2.4.7::gentoo sys-devel/lld: 14.0.6-r1::gentoo, 15.0.2-r1::gentoo sys-devel/llvm: 14.0.6-r2::gentoo, 15.0.2::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 6.0::gentoo (virtual/os-headers) sys-libs/glibc: 2.36-r4::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.fr.gentoo.org/gentoo-portage priority: -1000 sync-rsync-verify-metamanifest: yes sync-rsync-extra-opts: sync-rsync-verify-jobs: 1 sync-rsync-verify-max-age: 24 gnustep location: /home/bernard/Download/git/gnustep masters: gentoo priority: 0 torbrowser location: /var/db/repos/torbrowser sync-type: git sync-uri: https://github.com/gentoo-mirror/torbrowser.git masters: gentoo nx location: /home/bernard/Download/git/nx masters: gentoo priority: 1 voyageur location: /usr/local/portage masters: gentoo priority: 2 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=native -O2 -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--keep-going --quiet-build=n" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY 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 binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms sign strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://gentoo.mirrors.ovh.net/gentoo-distfiles/ http://ftp.free.fr/mirrors/ftp.gentoo.org/ http://mirrors.soeasyto.com/distfiles.gentoo.org/" LANG="fr_FR.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="fr fr_FR en en_US" MAKEOPTS="-j8" PKGDIR="/usr/portage/packages" 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="/var/tmp" SHELL="/bin/bash" USE="3dnowext X a52 aac aalib acl aim alsa amd64 aptx audacious audiofile avahi bash-completion bluetooth branding btrfs bzip2 cairo caps cdda cddb cdr cli crypt cscope cups curl dbus dga dri dts dvb dvd dvdr elogind encode exif expat fbcon ffmpeg fftw flac fontconfig fortran ftp gd gdbm geoip gif gimp git gles glitz glut gmp gnome gnustep gphoto2 gpm gstreamer gtk gtkstyle gui iconv icu idn imagemagick imlib ipv6 jabber java jingle joystick jpeg jpeg2k latex lcms ldac libcaca libglvnd libnotify libtirpc live lm_sensors lto lxc lzma mad matroska mikmod mng modplug mp3 mp4 mpeg mplayer mtp multilib musicbrainz nas ncurses nls nptl offensive ogg openal opencl opengl openmp osmesa oss pam pango pcmcia pcre pdf perl pgo php png policykit postscript ppds pulseaudio python qt5 readline scanner sdl seccomp slang smp sound speex spell split-usr sqlite ssl startup-notification subtitles svg tcl test-rust theora threads tiff timidity tk truetype udev udisks unicode upower usb vaapi vcd vdpau vim-syntax vorbis vpx vulkan wayland webp wma wmf wxwidgets x264 x265 xattr xcb xcomposite xface xft xine xinerama xml xmp xosd xpm xrandr xscreensaver xv xvid xvmc yahoo zeroconf zlib zsh-completion" ABI_X86="64" ADA_TARGET="gnat_2020" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache 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="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput roccat_kova2016" KERNEL="linux" L10N="fr en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" QEMU_SOFTMMU_TARGETS="i386 x86_64" RUBY_TARGETS="ruby30 ruby31" SANE_BACKENDS="xerox_mfp" USERLAND="GNU" VIDEO_CARDS="none intel i965 nvidia virgl" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat 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, LEX, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Apologies! Honestly, I wouldn't be surprised at all if this is genuinely needed, so feel free to restore it (or I can do it for you, but if you're actually using it...) Just make sure to put a comment above it.
Mind making an issue upstream too?
No problem sam! Just reporting here that I suspect this new dlopen way looks broken - so it may be better to use libltdl back in the meantime? I do not have a strong opinion here (as I suspect default loading with espeak works) I wanted to investigate a bit more before bringing it upstream though it does look like it is not Gentoo-specific - I will try a few more things and then report it upstream if I cannot fix it
I could fix the failing dlopen, but dlsym fails after that - hopefully upstream bug as enough information to track this down
I have no problem with bringing back ltdl for now, the problem was when we were trying to work around the slibtool issue no one knew how to test speechd properly. Yet upstream merged their own version of the patch and we assumed it was tested there...
I pushed a patch that at least fixes it for me: https://github.com/brailcom/speechd/pull/783 Let's see how it ends up upstream - at least without the dlopen fix code would probably not work at all
That was quickly merged upstream :) https://github.com/brailcom/speechd/pull/783
please can anyone post the file.patch to be applied to the latest stable 0.11.2 ebuild while waiting new release containing changes? thank you
Created attachment 826011 [details] ebuild for git repository This ebuild get last commit of repository which include pthread patch and fix for this bug
(In reply to CyberGuerro from comment #9) > Created attachment 826011 [details] > ebuild for git repository > > This ebuild get last commit of repository which include pthread patch and > fix for this bug You can just append .patch to the URL of commits and apply them normally. Anyway, I'll backport it now.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=16b3367c82277bbf64257c5e8b7763d17d15b667 commit 16b3367c82277bbf64257c5e8b7763d17d15b667 Author: Sam James <sam@gentoo.org> AuthorDate: 2022-10-29 09:53:09 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-10-29 09:53:14 +0000 app-accessibility/speech-dispatcher: fix module loading via dlopen Closes: https://bugs.gentoo.org/877339 Signed-off-by: Sam James <sam@gentoo.org> .../speech-dispatcher-0.11.3-fix-dlopen.patch | 93 ++++++++++++++++ .../speech-dispatcher-0.11.3-r1.ebuild | 123 +++++++++++++++++++++ 2 files changed, 216 insertions(+)