Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ошибка: could not load library "/usr/pgsql-14/lib/rum.so" при выполнении create extension #103

Closed
xinferum opened this issue Jan 11, 2022 · 5 comments

Comments

@xinferum
Copy link

Добрый день.
Я выполняю сборку свежей версии rum из ветки master и столкнулся с проблемой при попытке выполнить create extension:

=# create extension rum;
ERROR:  58P01: could not load library "/usr/pgsql-14/lib/rum.so": /usr/pgsql-14/lib/rum.so: undefined symbol: postgresql_sort__done_semaphore
LOCATION:  internal_load_library, dfmgr.c:248

Данная проблема наблюдается в CentOS 8 (CentOS Linux release 8.5.2111).
В ОС CentOS 7, Ubuntu 18.04 и Ubuntu 20.04 подобной проблемы нет и все работает.
Версия PostgreSQL - 14.1

На текущий момент удалось решить только указав версию 1.3.9 в команде:

git clone https://github.com/postgrespro/rum --branch 1.3.9  --single-branch
@sgrinko
Copy link

sgrinko commented Jan 11, 2022

Подтверждаю.
Я столкнулся с точно такой же проблемой при использовании RUM в докер-контейнере.
Также смог решить проблему только лишь указав версию 1.3.9 в команде:

git clone https://github.com/postgrespro/rum --branch 1.3.9 --single-branch

Dockerfile по сборке контейнера здесь:
https://github.com/sgrinko/docker-postgres/tree/master/14/docker-postgres

Я использовал образ FROM postgres:14.1 это debian-slim в исходнике
Проявляется на всех используемых мной версиях: 14, 13, 12

@sgrinko
Copy link

sgrinko commented May 27, 2022

Проверил последний release 1.3.10 на докер контейнере https://github.com/sgrinko/docker-postgres
(образ FROM postgres:14.3 это debian-slim в исходнике)

Компиляция проходит без проблем, но при выполнении команды:
CREATE EXTENSION rum;
ERROR: could not load library "/usr/lib/postgresql/14/lib/rum.so": /usr/lib/postgresql/14/lib/rum.so: undefined symbol: postgresql_sort__done_semaphore
********** Error **********

ERROR: could not load library "/usr/lib/postgresql/14/lib/rum.so": /usr/lib/postgresql/14/lib/rum.so: undefined symbol: postgresql_sort__done_semaphore
SQL state: 58P01

@sgrinko
Copy link

sgrinko commented May 27, 2022

pg_config вызванный внутри моего контейнера

pg_config
BINDIR = /usr/lib/postgresql/14/bin
DOCDIR = /usr/share/doc/postgresql-doc-14
HTMLDIR = /usr/share/doc/postgresql-doc-14
INCLUDEDIR = /usr/include/postgresql
PKGINCLUDEDIR = /usr/include/postgresql
INCLUDEDIR-SERVER = /usr/include/postgresql/14/server
LIBDIR = /usr/lib/x86_64-linux-gnu
PKGLIBDIR = /usr/lib/postgresql/14/lib
LOCALEDIR = /usr/share/locale
MANDIR = /usr/share/postgresql/14/man
SHAREDIR = /usr/share/postgresql/14
SYSCONFDIR = /etc/postgresql-common
PGXS = /usr/lib/postgresql/14/lib/pgxs/src/makefiles/pgxs.mk
CONFIGURE =  '--build=x86_64-linux-gnu' '--prefix=/usr' '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' '--sysconfdir=/etc' '--localstatedir=/var' '--disable-option-checking' '--disable-silent-rules' '--libdir=${prefix}/lib/x86_64-linux-gnu' '--runstatedir=/run' '--disable-maintainer-mode' '--disable-dependency-tracking' '--with-tcl' '--with-perl' '--with-python' '--with-pam' '--with-openssl' '--with-libxml' '--with-libxslt' '--mandir=/usr/share/postgresql/14/man' '--docdir=/usr/share/doc/postgresql-doc-14' '--sysconfdir=/etc/postgresql-common' '--datarootdir=/usr/share/' '--datadir=/usr/share/postgresql/14' '--bindir=/usr/lib/postgresql/14/bin' '--libdir=/usr/lib/x86_64-linux-gnu/' '--libexecdir=/usr/lib/postgresql/' '--includedir=/usr/include/postgresql/' '--with-extra-version= (Debian 14.3-1.pgdg110+1)' '--enable-nls' '--enable-thread-safety' '--enable-debug' '--enable-dtrace' '--disable-rpath' '--with-uuid=e2fs' '--with-gnu-ld' '--with-gssapi' '--with-ldap' '--with-pgport=5432' '--with-system-tzdata=/usr/share/zoneinfo' 'AWK=mawk' 'MKDIR_P=/bin/mkdir -p' 'PROVE=/usr/bin/prove' 'PYTHON=/usr/bin/python3' 'TAR=/bin/tar' 'XSLTPROC=xsltproc --nonet' 'CFLAGS=-g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fno-omit-frame-pointer' 'LDFLAGS=-Wl,-z,relro -Wl,-z,now' '--enable-tap-tests' '--with-icu' '--with-llvm' 'LLVM_CONFIG=/usr/bin/llvm-config-11' 'CLANG=/usr/bin/clang-11' '--with-lz4' '--with-systemd' '--with-selinux' 'build_alias=x86_64-linux-gnu' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' 'CXXFLAGS=-g -O2 -fstack-protector-strong -Wformat -Werror=format-security'
CC = gcc
CPPFLAGS = -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2
CFLAGS = -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fno-omit-frame-pointer
CFLAGS_SL = -fPIC
LDFLAGS = -Wl,-z,relro -Wl,-z,now -L/usr/lib/llvm-11/lib -Wl,--as-needed
LDFLAGS_EX =
LDFLAGS_SL =
LIBS = -lpgcommon -lpgport -lselinux -llz4 -lxslt -lxml2 -lpam -lssl -lcrypto -lgssapi_krb5 -lz -lreadline -lpthread -lrt -ldl -lm
VERSION = PostgreSQL 14.3 (Debian 14.3-1.pgdg110+1)

Возможно, как пишет в задаче #108 df7cb проблема в том как собран postgres в репозитарии pgdg
'--enable-dtrace' есть

@pashkinelfe
Copy link
Contributor

pashkinelfe commented May 27, 2022

#108 has been fixed. Please check if #103 is fixed too. If not please let me know.

@sgrinko
Copy link

sgrinko commented May 27, 2022

Спасибо! Теперь всё в порядке.
Thank you! Now everything is all right.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants