Missing symbol after building protobuf

26 views
Skip to first unread message

Nima0908

unread,
Jun 2, 2025, 4:15:07 AM Jun 2
to Protocol Buffers
Hello,
i recently rebuild protobuf on my system, and now i get the following error when using something that uses protoc:

~> kicad
/usr/bin/kicad: symbol lookup error: /usr/lib64/libkiapi.so.9.0.0: undefined symbol: _ZN6google8protobuf8internal14UntypedMapBase13EraseFromTreeEjN4absl12lts_2024072218container_internal14btree_iteratorINS5_10btree_nodeINS5_10map_paramsINS1_10VariantKeyEPNS1_8NodeBaseESt4lessIS9_ENS1_12MapAllocatorISt4pairIKS9_SB_EEELi256ELb0EEEEERSH_PSH_EE

Does anyone know how to fix this? Also here are my settings with which i build protobuf:

# Catalyst-generated base configuration
# For more info, see: /usr/share/portage/config/make.conf.example

# Compiler optimization and hardening
COMMON_FLAGS="-O2 -pipe -march=native -fomit-frame-pointer -flto \
             -fno-semantic-interposition -fstack-protector-strong \
             -fcf-protection=full -D_FORTIFY_SOURCE=2"

CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"

# Link-time optimization and hardening
LDFLAGS="-Wl,-O2 -Wl,--as-needed -Wl,--gc-sections -Wl,--icf=all \
        -Wl,--lto-O3 -Wl,--relax -fuse-ld=mold"

# LLVM/Clang toolchain
CC="clang"
CXX="clang++"
CPP="clang-cpp"
AR="llvm-ar"
NM="llvm-nm"
RANLIB="llvm-ranlib"

# Portage and build options
MAKEOPTS="-j8"
EMERGE_DEFAULT_OPTS="--jobs=5 --load-average=4.5 --complete-graph=y"
FEATURES="parallel-fetch parallel-install"

# Localization for consistent bug reports
LC_MESSAGES=C.utf8

# USE flags (general system configuration)
USE="sound-server libvpx postproc mount wayland vulkan X vaapi alsa pipewire \
    networkmanager builtin server -gpm -gnome -kde -systemd -Xvfb"

# Video driver support
VIDEO_CARDS="nvidia-drivers"

# License preferences
ACCEPT_LICENSE="-* @FREE @BINARY-REDISTRIBUTABLE"

# GRUB target
GRUB_PLATFORMS="efi-64"

# Mirrors - prioritize faster European mirrors
GENTOO_MIRRORS=" https://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/ \
https://mirror.dogado.de/gentoo \
https://ftp.fau.de/gentoo \
https://ftp.halifax.rwth-aachen.de/gentoo/ \
https://ftp.uni-stuttgart.de/gentoo-distfiles/ \
https://ftp.tu-ilmenau.de/mirror/gentoo/ \
https://ftp.gwdg.de/pub/linux/gentoo/ \
https://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ \
http://ftp.agdsn.de/gentoo "

Thanks for your help


Reply all
Reply to author
Forward
0 new messages