Ошибка при сборке из исходников
sgrinko opened this issue · 1 comments
sgrinko commented
Сборка выполнялась в среде debian-slim и для postgres 14.4
Используется базовый официальный контейнер https://github.com/docker-library/postgres
FROM postgres:14.4
...
# shared_ispell
&& cd /tmp/build_ext \
&& git clone https://github.com/postgrespro/shared_ispell \
&& cd shared_ispell \
&& make USE_PGXS=1 \
&& make USE_PGXS=1 install \
...
Клонирование в «shared_ispell»…
gcc -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 -fPIC -I. -I./ -I/usr/include/postgresql/14/server -I/usr/include/postgresql/internal -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2 -c -o src/shared_ispell.o src/shared_ispell.c
src/shared_ispell.c: In function ‘shared_ispell_shmem_request’:
src/shared_ispell.c:155:6: error: ‘prev_shmem_request_hook’ undeclared (first use in this function); did you mean ‘prev_shmem_startup_hook’?
155 | if (prev_shmem_request_hook)
| ^~~~~~~~~~~~~~~~~~~~~~~
| prev_shmem_startup_hook
src/shared_ispell.c:155:6: note: each undeclared identifier is reported only once for each function it appears in
src/shared_ispell.c:156:3: warning: implicit declaration of function ‘prev_shmem_request_hook’; did you mean ‘prev_shmem_startup_hook’? [-Wimplicit-function-declaration]
156 | prev_shmem_request_hook();
| ^~~~~~~~~~~~~~~~~~~~~~~
| prev_shmem_startup_hook
At top level:
src/shared_ispell.c:153:1: warning: ‘shared_ispell_shmem_request’ defined but not used [-Wunused-function]
153 | shared_ispell_shmem_request(void)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
make: *** [<встроенное>: src/shared_ispell.o] Ошибка 1
Прошу подсказать что делать ?
sgrinko commented
Проблема ушла.