8000 src/rum.h:792:2: error: unknown type name 'RBTNode' on `env make USE_PGXS=1` · Issue #52 · postgrespro/rum · GitHub
[go: up one dir, main page]

Skip to content

src/rum.h:792:2: error: unknown type name 'RBTNode' on env make USE_PGXS=1 #52

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
gnikitenko opened this issue Jan 22, 2019 · 2 comments

Comments

@gnikitenko
Copy link

Hello!

For some time i was using docker's postgres by FROM postgres:alpine with installation of rum included in dockerfile below.
My last image was built 2 month ago, so i decided to rebuild it
And i'm currently expiriencing this problem while building an image:

Cloning into 'rum'...
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -fPIC -I. -I./ -I/usr/local/include/postgresql/server -I/usr/local/include/postgresql/internal  -D_GNU_SOURCE -I/usr/include/libxml2   -c -o src/rumsort.o src/rumsort.c
In file included from src/rumsort.c:142:0:
src/rum.h:792:2: error: unknown type name 'RBTNode'
  RBTNode  rbnode;
  ^~~~~~~
make: *** [<builtin>: src/rumsort.o] Error 1
ERROR: Service 'postgres' failed to build: The command '/bin/sh -c cd /tmp &&     apk add --no-cache --virtual .build-deps git make gcc coreutils libc-dev &&     git clone https://github.com/postgrespro/rum &&     cd rum &&     env make USE_PGXS=1 &&     env make USE_PGXS=1 install &&     cd .. &&     apk del .build-deps &&     rm -rf rum/' returned a non-zero code: 2

I believe it happens right at the env make USE_PGXS=1
Dockerfile:

FROM postgres:alpine

COPY ./create-extension-rum.sh /docker-entrypoint-initdb.d/
COPY ./create-extension-uuid-ossp.sh /docker-entrypoint-initdb.d/

RUN cd /tmp && \
    apk add --no-cache --virtual .build-deps git make gcc coreutils libc-dev && \
    git clone https://github.com/postgrespro/rum && \
    cd rum && \
    env make USE_PGXS=1 && \
    env make USE_PGXS=1 install && \
    cd .. && \
    apk del .build-deps && \
rm -rf rum/ 
@za-arthur
Copy link
Contributor

Hello,
Thank you for the issue! I guess you have PostgreSQL 11.0 in your docker image?
There was renames of PostgreSQL structures and functions of rbtree implementation.
Please try it now.

@gnikitenko
Copy link
Author

Seems like it is 11.
Thank you, worked like a charm.

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

2 participants
0