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

Can it support postgresql 9.5.4 ? #92

Open
killerwzb opened this issue Nov 25, 2020 · 1 comment
Open

Can it support postgresql 9.5.4 ? #92

killerwzb opened this issue Nov 25, 2020 · 1 comment

Comments

@killerwzb
Copy link

Hi:
I build rum with postgresql 9.5.4 ,but get a error following like this:
[wzbwangzhibin@iZ2vcdckpocdm6q53dl4onZ rum]$ 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 -g -lpthread -fpic -I. -I./ -I/home/wzbwangzhibin/tongdb/include/postgresql/server -I/home/wzbwangzhibin/tongdb/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:27:0:
src/rum.h:15:26: fatal error: access/amapi.h: No such file or directory
#include "access/amapi.h"
^
compilation terminated.
make: *** [src/rumsort.o] Error 1

Can you tell me how to build it with postgresql 9.5.4?

@df7cb
Copy link
Contributor

df7cb commented Jun 14, 2022

Fwiw, the version requirement needs to be bumped further. Currently, README.md says

Before build and install **rum** you should ensure following:

* PostgreSQL version is 9.6+.

But now it should be 11+ since 10 raises this error:

16:17:50 gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -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 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I. -I./ -I/usr/include/postgresql/10/server -I/usr/include/postgresql/internal  -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/include/mit-krb5  -c -o src/rumsort.o src/rumsort.c
16:17:50 In file included from src/rumsort.c:41:
16:17:50 src/tuplesort10.c: In function ‘tuplesort_begin_heap’:
16:17:50 src/tuplesort10.c:785:77: error: macro "TRACE_POSTGRESQL_SORT_START" requires 6 arguments, but only 5 given
16:17:50   785 |                                                                 randomAccess);
16:17:50       |                                                                             ^

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