Skip to content

Ошибка при сборке под 10-й версией PostgresPro Standard #5

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

Closed
sgrinko opened this issue Dec 21, 2017 · 7 comments

Comments

@sgrinko
Copy link

sgrinko commented Dec 21, 2017

OS - CentOS 7
установленные пакеты 10-й версии:
sudo yum install postgrespro-std-10-client postgrespro-std-10-libs postgrespro-std-10-server postgrespro-std-10-contrib postgrespro-std-10-pgprobackup postgrespro-std-10-devel postgrespro-std-10-plperl postgrespro-std-10-plpython postgrespro-std-10-docs postgrespro-std-10-docs-ru

# pg_config
BINDIR = /opt/pgpro/std-10/bin
DOCDIR = /opt/pgpro/std-10/doc
HTMLDIR = /opt/pgpro/std-10/doc
INCLUDEDIR = /opt/pgpro/std-10/include
PKGINCLUDEDIR = /opt/pgpro/std-10/include
INCLUDEDIR-SERVER = /opt/pgpro/std-10/include/server
LIBDIR = /opt/pgpro/std-10/lib
PKGLIBDIR = /opt/pgpro/std-10/lib
LOCALEDIR = /opt/pgpro/std-10/share/locale
MANDIR = /opt/pgpro/std-10/share/man
SHAREDIR = /opt/pgpro/std-10/share
SYSCONFDIR = /opt/pgpro/std-10/etc
PGXS = /opt/pgpro/std-10/lib/pgxs/src/makefiles/pgxs.mk
CONFIGURE = '--prefix=/opt/pgpro/std-10' '--bindir=/opt/pgpro/std-10/bin' '--includedir=/opt/pgpro/std-10/include' '--libdir=/opt/pgpro/std-10/lib' '--with-libs=/usr/lib64' '--sysconfdir=/opt/pgpro/std-10/etc' '--datadir=/opt/pgpro/std-10/share' '--enable-thread-safety' '--mandir=/opt/pgpro/std-10/share/man' '--docdir=/opt/pgpro/std-10/doc' '--htmldir=/opt/pgpro/std-10/doc' '--with-systemd' '--with-perl' '--with-python' '--with-tcl' '--with-tclconfig=/usr/lib64' '--with-openssl' '--with-pam' '--with-gssapi' '--with-includes=/usr/include' '--with-libraries=/usr/lib64' '--enable-nls' '--with-uuid=e2fs' '--with-libxml' '--with-libxslt' '--with-ldap' '--with-system-tzdata=/usr/share/zoneinfo' '--with-icu' 'CFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -I/usr/include/et' 'LDFLAGS=-Wl,-rpath,$ORIGIN/../lib' 'CPPFLAGS= -I/usr/include/et' 'PKG_CONFIG_PATH=:/usr/lib64/pkgconfig:/usr/share/pkgconfig'
CC = gcc
CPPFLAGS = -DFRONTEND -I/usr/include/et -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include
CFLAGS = -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -I/usr/include/et
CFLAGS_SL = -fPIC
LDFLAGS = -L../../src/common -Wl,-rpath,$ORIGIN/../lib -L/usr/lib64 -Wl,--as-needed -Wl,-rpath,'/opt/pgpro/std-10/lib',--enable-new-dtags
LDFLAGS_EX =
LDFLAGS_SL =
LIBS = -lpgcommon -lpgport -lpthread -lxslt -lxml2 -lpam -lssl -lcrypto -lgssapi_krb5 -lz -lreadline -lrt -lcrypt -ldl -lm
VERSION = PostgreSQL 10.1

скачал версию с github и запустил

# make USE_PGXS=1
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -I/usr/include/et -fPIC -I. -I./ -I/opt/pgpro/std-10/include/server -I/opt/pgpro/std-10/include/internal  -I/usr/include/et -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/include  -c -o pg_wait_sampling.o pg_wait_sampling.c
In file included from /opt/pgpro/std-10/include/server/c.h:1129:0,
                 from /opt/pgpro/std-10/include/server/postgres.h:47,
                 from pg_wait_sampling.c:10:
/opt/pgpro/std-10/include/server/port.h:488:26: fatal error: unicode/ucol.h: No such file or directory
 #include <unicode/ucol.h>
                          ^
compilation terminated.
make: *** [pg_wait_sampling.o] Error 1
@vadv
Copy link

vadv commented Dec 21, 2017

если не ошибаюсь #include <unicode/ucol.h> это часть библиотеки libicu-devel

@sgrinko
Copy link
Author

sgrinko commented Dec 21, 2017

так и есть. На неё теперь есть ссылки из исходников 10, но сам include файл не поставляется в пакете.
вопрос в том, что делать ?

@za-arthur
Copy link

@sgrinko , у вас установлен пакет libicu-devel?

@vadv
Copy link

vadv commented Dec 21, 2017

@za-arthur вопрос почему postgrespro-std-10-devel не потянул за собой все необходимое для сборки

@ildus
Copy link
Collaborator

ildus commented Dec 21, 2017

@sgrinko будет поправлено, пока получается нужно ставить libicu-devel для сборки

@sgrinko
Copy link
Author

sgrinko commented Dec 21, 2017

установил пакет libicu-devel
после этого сборка прошла без ошибок.
сервер стартовал успешно.

Спасибо за подсказки.

@ildus
Copy link
Collaborator

ildus commented Dec 21, 2017

@sgrinko хорошо. Спасибо что выявили проблему.

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

4 participants