When executing 'emerge dev-db/mysql-workbench' the compilation of the package ends with the following error: FAILED: frontend/linux/workbench/mysql-workbench-bin : && /usr/bin/x86_64-pc-linux-gnu-g++ -march=ivybridge -O2 -pipe -std=c++11 -Wl,-O1 -Wl,--as-needed frontend/linux/workbench/CMakeFiles/mysql-workbench-bin.dir/main.cpp.o frontend/linux/workbench/CMakeFiles/mysql-workbench-bin.dir/program.cpp.o frontend/linux/workbench/CMakeFiles/mysql-workbench-bin.dir/main_form.cpp.o frontend/linux/workbench/CMakeFiles/mysql-workbench-bin.dir/overview_panel.cpp.o frontend/linux/workbench/CMakeFiles/mysql-workbench-bin.dir/model_panel.cpp.o frontend/linux/workbench/CMakeFiles/mysql-workbench-bin.dir/model_diagram_panel.cpp.o frontend/linux/workbench/CMakeFiles/mysql-workbench-bin.dir/properties_tree.cpp.o frontend/linux/workbench/CMakeFiles/mysql-workbench-bin.dir/navigator_box.cpp.o frontend/linux/workbench/CMakeFiles/mysql-workbench-bin.dir/documentation_box.cpp.o frontend/linux/workbench/CMakeFiles/mysql-workbench-bin.dir/diagram_size_form.cpp.o frontend/linux/workbench/CMakeFiles/mysql-workbench-bin.dir/sqlide_form.cpp.o frontend/linux/workbench/CMakeFiles/mysql-workbench-bin.dir/sqlide_output_view.cpp.o frontend/linux/workbench/CMakeFiles/mysql-workbench-bin.dir/sqlide_main.cpp.o -o frontend/linux/workbench/mysql-workbench-bin -Wl,-rpath,/var/tmp/portage/dev-db/mysql-workbench-8.0.23/work/mysql-workbench-8.0.23_build/frontend/linux/sqlide:/var/tmp/portage/dev-db/mysql-workbench-8.0.23/work/mysql-workbench-8.0.23_build/backend/wbprivate:/var/tmp/portage/dev-db/mysql-workbench-8.0.23/work/mysql-workbench-8.0.23_build/backend/wbpublic:/var/tmp/portage/dev-db/mysql-workbench-8.0.23/work/mysql-workbench-8.0.23_build/library/cdbc:/var/tmp/portage/dev-db/mysql-workbench-8.0.23/work/mysql-workbench-8.0.23_build/library/parsers:/var/tmp/portage/dev-db/mysql-workbench-8.0.23/work/mysql-workbench-8.0.23_build/library/ssh:/var/tmp/portage/dev-db/mysql-workbench-8.0.23/work/mysql-workbench-8.0.23_build/library/forms:/var/tmp/portage/dev-db/mysql-workbench-8.0.23/work/mysql-workbench-8.0.23_build/frontend/linux/linux_utilities:/var/tmp/portage/dev-db/mysql-workbench-8.0.23/work/mysql-workbench-8.0.23_build/library/mysql.canvas/src:/var/tmp/portage/dev-db/mysql-workbench-8.0.23/work/mysql-workbench-8.0.23_build/ext/scintilla/gtk:/var/tmp/portage/dev-db/mysql-workbench-8.0.23/work/mysql-workbench-8.0.23_build/library/grt/src:/var/tmp/portage/dev-db/mysql-workbench-8.0.23/work/mysql-workbench-8.0.23_build/library/mtemplate:/var/tmp/portage/dev-db/mysql-workbench-8.0.23/work/mysql-workbench-8.0.23_build/library/base: frontend/linux/sqlide/libsqlide.so.8.0.23 backend/wbprivate/libwbprivate.so.8.0.23 backend/wbpublic/libwbpublic.so.8.0.23 library/cdbc/libcdbc.so.8.0.23 library/parsers/libparsers.so.8.0.23 /usr/lib64/libSM.so /usr/lib64/libICE.so /usr/lib64/libX11.so /usr/lib64/libXext.so -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lgtkmm-3.0 -latkmm-1.6 -lgdkmm-3.0 -lgiomm-2.4 -lgtk-3 -lgdk-3 -latk-1.0 -lcairo-gobject -lgio-2.0 -lpangomm-1.4 -lglibmm-2.4 -lcairomm-1.0 -lsigc-2.0 -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -lcairo -lgdk_pixbuf-2.0 -lgobject-2.0 -lglib-2.0 -lgmodule-2.0 -lglib-2.0 -lglib-2.0 -lpcre -lpcrecpp -lzip -L/usr/lib64 -lmysqlclient -lpthread -lz -lzstd -lm -lrt -lssl -lcrypto -ldl -lresolv /usr/lib64/libgdal.so library/forms/libmforms.so.8.0.23 frontend/linux/linux_utilities/liblinux_utilities.so.8.0.23 library/mysql.canvas/src/libmdcanvasgtk.so.8.0.23 -lsecret-1 ext/scintilla/gtk/libwbscintilla.so.4.1.5 /usr/lib64/libmysqlcppconn.so library/mysql.canvas/src/libmdcanvas.so.8.0.23 -L/usr/lib64 -lvsqlitepp -L/usr/lib64 -lantlr4-runtime library/grt/src/libgrt.so.8.0.23 /usr/lib64/libxml2.so -luuid library/base/libwbbase.so.8.0.23 -lgtk-3 -lgdk-3 -latk-1.0 -lcairo-gobject -lgtkmm-3.0 -latkmm-1.6 -lgdkmm-3.0 -lgiomm-2.4 -lpangomm-1.4 -lglibmm-2.4 -lcairomm-1.0 -lsigc-2.0 -lgio-2.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lpcre -lpcrecpp -lzip -Wl,-rpath-link,/var/tmp/portage/dev-db/mysql-workbench-8.0.23/work/mysql-workbench-8.0.23_build/library/ssh:/var/tmp/portage/dev-db/mysql-workbench-8.0.23/work/mysql-workbench-8.0.23_build/library/mtemplate && : library/mysql.canvas/src/libmdcanvasgtk.so.8.0.23: error: referencia sin definir al «glXQueryVersion» collect2: error: ld devolvió el estado de salida 1
~ # emerge --info dev-db/mysql-workbench Portage 3.0.20 (python 3.9.6-final-0, default/linux/amd64/17.1/desktop/gnome, gcc-10.3.0, glibc-2.33-r1, 5.10.52-gentoo-x86_64 x86_64) ================================================================= System Settings ================================================================= System uname: Linux-5.10.52-gentoo-x86_64-x86_64-Intel-R-_Core-TM-_i5-3340M_CPU_@_2.70GHz-with-glibc2.33 KiB Mem: 16296488 total, 11144616 free KiB Swap: 131068 total, 131068 free Timestamp of repository gentoo: Mon, 23 Aug 2021 07:00:02 +0000 Head commit of repository gentoo: 7105d27ef6e0dcf90a5c2368c1fed8b3fd3ed487 Head commit of repository backup-cron: 8be647e9784eee13a725d420f8caa0a773ac0700 Head commit of repository gentoo-portage-overlay: b72aa0057f40c5cdbf0f57da24b6840c520512b5 Head commit of repository odoo: 059cfc9d36f1d862cf9bf67afd2184e8aa29b6d5 sh bash 5.1_p8 ld GNU gold (Gentoo 2.35.2 p1 2.35.2) 1.16 distcc 3.4 x86_64-pc-linux-gnu [disabled] app-shells/bash: 5.1_p8::gentoo dev-java/java-config: 2.3.1::gentoo dev-lang/perl: 5.34.0::gentoo dev-lang/python: 2.7.18_p11::gentoo, 3.9.6_p1::gentoo dev-lang/rust-bin: 1.53.0::gentoo dev-util/cmake: 3.20.5::gentoo sys-apps/baselayout: 2.7::gentoo sys-apps/openrc: 0.43.5::gentoo sys-apps/sandbox: 2.24::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r5::gentoo sys-devel/automake: 1.13.4-r2::gentoo, 1.15.1-r2::gentoo, 1.16.3-r1::gentoo sys-devel/binutils: 2.35.2::gentoo, 2.36.1-r2::gentoo sys-devel/gcc: 10.3.0-r2::gentoo sys-devel/gcc-config: 2.4::gentoo sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers) sys-libs/glibc: 2.33-r1::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 sync-rsync-verify-jobs: 1 sync-rsync-verify-max-age: 24 sync-rsync-verify-metamanifest: yes sync-rsync-extra-opts: backup-cron location: /usr/local/portage/backup-cron sync-type: git sync-uri: https://github.com/i-nis/gentoo-portage-backup-cron masters: gentoo gentoo-portage-overlay location: /usr/local/portage/gentoo-portage-overlay sync-type: git sync-uri: https://github.com/i-nis/gentoo-portage-overlay.git masters: gentoo odoo location: /usr/local/portage/odoo sync-type: git sync-uri: https://github.com/i-nis/gentoo-portage-odoo.git masters: gentoo x-portage location: /usr/local/portage masters: gentoo priority: 0 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="@FREE" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=ivybridge -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /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=ivybridge -O2 -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS=" --keep-going=y" 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" FCFLAGS="-march=ivybridge -O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs clean-logs config-protect-if-modified distlocks ebuild-locks fail-clean fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-march=ivybridge -O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="es_AR.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="es es_AR es_ES" MAKEOPTS="-j5 -l4" 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="/var/tmp" USE="X a52 aac acl acpi alisp alsa amd64 amr amrenc anacron androiddump anjuta ao appindicator appstream aqbanking archive argyllcms atm autoipd avs ayatana bidi bl bluetooth bluetooth-sound branding bs2b btpclient bzip2 cairo caps cdda cddb cdio cdparanoia cdr chromaprint chromium clang cli client clippy clockdiff colord compressed-lumas connection-sharing contrast corefonts cplugins crypt cryptsetup css cups dav1d dbus dc1394 default-compiler-rt default-gold default-lld device-mapper dga dhcp djvu drafts dri dri3 drm dts dundee dv dvb dvd dvdr eap eap-sim eap-tls eds efiemu egl eigen elogind emboss empathy encode epiphany equalizer evdev evo exif expat experimental extra-print-profiles f2fs faac faad farp fat ffmpeg fftw file-attr firmware fits flac flashback flickr fluidsynth fontconfig fortran fpx freebox frei0r ftp fuse gbm gd gdbm gdm geckodriver geo geoip geolocation geos gif gimp git glade gles gles2 glib gme gmp gnome gnome-keyring gnome-online-accounts gold google googledrive gpg gphoto2 gpm gps graphite graphviz gsl gsm gssapi gstreamer gstvideo gtk gtk3 gui guile harfbuzz hdf5 hdri hfs highlight howl-compat hpijs http2 hwaccel ibus iconv icu id3tag idn ieee1394 imlib infinality int-quality introspection iproute2 iptables ipv6 irc javafx javascript jbig jce jemalloc jfs jingle jit joystick jpeg jpeg2k jumbo-build justify kate kdenlive kdrive ladspa lame lash lasi lcms leaps_timezone lensfun libass libevent libffi libglvnd libinput libkms libmpv libnotify libopts libproxy libsamplerate libsecret libtiger libtirpc libv4l libvisual linguas_es linsys lirc live llvm lm-sensors lm_sensors lqr lto lz4 lzma lzo macvtap mad map math matroska mclib md5sum mdadm mdev mdnsresponder-compat meanwhile media melt mhash midi mime minizip mjpeg mktemp mmap mms mng modplug mount mp3 mp4 mpeg mplayer mtp multiwriter musepack nas native-headset natspec nautilus ncurses netlink network networkmanager newnet nfs nfsdcld nfsv41 nls nptl nscd nsplugin ntfs ntfsdecrypt ntfsprogs numa nut nuv ocr offensive office offlinehelp ofono ofono-headset ofx ogg omxil openal openconnect openexr opengl openh264 openmp openssl openvpn opus osmesa ovs p2p pam pam_ssh pango parse-clocks parted pcap pcapnav pch pcre pcre16 pdf pdfimport perl phyp pkcs11 playlist plugins png pnm policykit postproc postscript ppds ppp prediction printsupport projectm pulseaudio pvr python qemu qml quicktime radio rar raw rdp readline resolvconf rfc3779 rle rss rtaudio rtc rtmp rubberband rustfmt s3 sasl sbc scanner screencast script sctp sdl sdl-image sdlgfx seccomp secure-delete sendto sftp shm shout sid simple-scan sip sipe slang slp smartcard smi smp sna snappy sndfile soap sound soundtouch sox soxr speex spell spice split-usr sqlite srt ssh sshdump ssl startup-notification static-analyzer stats stemmer strongswan_plugins_aesni strongswan_plugins_blowfish strongswan_plugins_ccm strongswan_plugins_chapoly strongswan_plugins_forecast strongswan_plugins_gcm strongswan_plugins_ipseckey strongswan_plugins_newhope strongswan_plugins_rdrand strongswan_plugins_whitelist stunnel subtitles subversion svg symlink sysprof system-harfbuzz system-icu system-jpeg system-libevent system-libs system-libvpx system-llvm system-mesa system-sqlite szip taglib tahoma tcpd terminal tevent text tfshark tga theora thetvdb threads tiff timezone toolame toolbar tools trace tracker tremor truetype twolame udev udisks umfpack uml unicode upnp upnp-av upower urandom usb usbredir user-permissions utils uxa v4l vala vamp vde vdr verify-file vhost-net video vimeo virgl virt-network virtfs vnc vorbis vpx vte vulkan vulkan-overlay wavpack wayland webdav webkit webp widgets wifi wma-fixed wmf wps wxwidgets x264 x265 xattr xcb xdg xephyr xetex xine xinerama xkb xml xmp xmpp xpm xrandr xscreensaver xv xvfb xvid ytnef zlib zvbi" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="hda-intel usb-audio" 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 f16c mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="openssl" 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="evdev joystick libinput synaptics" KERNEL="linux" L10N="en es es-AR es-ES" LCD_DEVICES="ncurses text X xosd" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" QEMU_SOFTMMU_TARGETS="arm i386 x86_64" QEMU_USER_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="intel i965" 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: CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS
Created attachment 735484 [details] build.log.xz build.log
I found on Suse that they have implemented this patch: https://build.opensuse.org/package/view_file/home:NickLion:java/mysql-workbench/mysql-workbench-unused-glx-call.patch?expand=0
Created attachment 735544 [details] mysql-workbench-glxQueryVersion.patch Patch
Created attachment 735547 [details] mysql-workbench-8.0.23-r1.ebuild ebuild
With this patch it compiles without problems but when executing mysql-workbech from the terminal the following happens: ~ $ mysql-workbench Found /usr/lib64/libproj.so.19 /usr/bin/mysql-workbench-bin: symbol lookup error: /usr/lib64/mysql-workbench/libwbprivate.so.8.0.23: undefined symbol: _ZN7pcrecpp2RED1Ev
Created attachment 735805 [details] mysql-workbench-link_libraries.patch Patch
Created attachment 735808 [details] mysql-workbench-8.0.23-r2.ebuild New ebuild
The ebuild mysql-workbench-8.0.23-r2.ebuild with its corresponding patches has compiled, installed the program correctly. I was able to run it smoothly. Please add these fixes to the portage versions in order to have versions that really work.
Comment on attachment 735547 [details] mysql-workbench-8.0.23-r1.ebuild Don't use this ebuild. Use attached mysql-workbench-8.0.23-r2.ebuild in this bug report.
mysql-workbench 8.0.23 is an old version so I don't think it makes sense to try and fix that. I've just marked mysql-workbench 8.0.26 stable. Please test and re-open if this version still has this problem for you.