Skip to content

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

@sgrinko

Description

@sgrinko

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions