pg_pathman icon indicating copy to clipboard operation
pg_pathman copied to clipboard

Build error against PostgreSQL 12

Open devrimgunduz opened this issue 5 years ago • 3 comments

Hi,

pg_pathman fails to compile against PostgreSQL 12 beta2. Now that we are in beta, I'd like to start building RPMs for the RPM testing repos. Can you please fix this? Error is below:

Thanks.

/home/devrim/Documents/Devrim/Projects/repo/pgrpms/rpm/redhat/master/pg_pathman/master/pg_pathman-1.5.8/src/include/compat/pg_compat.h:29:10: fatal error: nodes/relation.h: No such file or directory 29 | #include "nodes/relation.h" | ^~~~~~~~~~~~~~~~~~ compilation terminated. In file included from src/relation_info.c:11: /home/devrim/Documents/Devrim/Projects/repo/pgrpms/rpm/redhat/master/pg_pathman/master/pg_pathman-1.5.8/src/include/compat/pg_compat.h:29:10: fatal error: nodes/relation.h: No such file or directory 29 | #include "nodes/relation.h" | ^~~~~~~~~~~~~~~~~~ compilation terminated. In file included from /home/devrim/Documents/Devrim/Projects/repo/pgrpms/rpm/redhat/master/pg_pathman/master/pg_pathman-1.5.8/src/include/relation_info.h:14, from /home/devrim/Documents/Devrim/Projects/repo/pgrpms/rpm/redhat/master/pg_pathman/master/pg_pathman-1.5.8/src/include/pathman.h:15, from src/utils.c:13: /home/devrim/Documents/Devrim/Projects/repo/pgrpms/rpm/redhat/master/pg_pathman/master/pg_pathman-1.5.8/src/include/compat/pg_compat.h:29:10: fatal error: nodes/relation.h: No such file or directory 29 | #include "nodes/relation.h" | ^~~~~~~~~~~~~~~~~~ compilation terminated. make[1]: *** [: src/pl_funcs.o] Error 1 make[1]: *** Waiting for unfinished jobs.... In file included from src/runtime_merge_append.c:13: /home/devrim/Documents/Devrim/Projects/repo/pgrpms/rpm/redhat/master/pg_pathman/master/pg_pathman-1.5.8/src/include/compat/pg_compat.h:29:10: fatal error: nodes/relation.h: No such file or directory 29 | #include "nodes/relation.h" | ^~~~~~~~~~~~~~~~~~ compilation terminated. In file included from src/pg_pathman.c:12: /home/devrim/Documents/Devrim/Projects/repo/pgrpms/rpm/redhat/master/pg_pathman/master/pg_pathman-1.5.8/src/include/compat/pg_compat.h:29:10: fatal error: nodes/relation.h: No such file or directory 29 | #include "nodes/relation.h" | ^~~~~~~~~~~~~~~~~~ compilation terminated. In file included from src/partition_filter.c:11: /home/devrim/Documents/Devrim/Projects/repo/pgrpms/rpm/redhat/master/pg_pathman/master/pg_pathman-1.5.8/src/include/compat/pg_compat.h:29:10: fatal error: nodes/relation.h: No such file or directory 29 | #include "nodes/relation.h" | ^~~~~~~~~~~~~~~~~~ compilation terminated. In file included from src/init.c:14: /home/devrim/Documents/Devrim/Projects/repo/pgrpms/rpm/redhat/master/pg_pathman/master/pg_pathman-1.5.8/src/include/compat/pg_compat.h:29:10: fatal error: nodes/relation.h: No such file or directory 29 | #include "nodes/relation.h" | ^~~~~~~~~~~~~~~~~~ compilation terminated. make[1]: *** [: src/relation_info.o] Error 1 make[1]: *** [: src/utils.o] Error 1 make[1]: *** [: src/runtime_merge_append.o] Error 1 make[1]: *** [: src/pg_pathman.o] Error 1 make[1]: *** [: src/partition_filter.o] Error 1 make[1]: *** [: src/init.o] Error 1 In file included from src/runtime_append.c:11: /home/devrim/Documents/Devrim/Projects/repo/pgrpms/rpm/redhat/master/pg_pathman/master/pg_pathman-1.5.8/src/include/compat/pg_compat.h:29:10: fatal error: nodes/relation.h: No such file or directory 29 | #include "nodes/relation.h" | ^~~~~~~~~~~~~~~~~~ compilation terminated. make[1]: *** [: src/runtime_append.o] Error 1 make[1]: Leaving directory '/home/devrim/Documents/Devrim/Projects/repo/pgrpms/rpm/redhat/master/pg_pathman/master/pg_pathman-1.5.8' error: Bad exit status from /var/tmp/rpm-tmp.Apfule (%build)

devrimgunduz avatar Jul 03 '19 09:07 devrimgunduz

Thank you. I think I will fix it in a week or so.

arssher avatar Jul 04 '19 07:07 arssher

Hi, any updates about this issue?

ohmycto avatar Oct 18 '19 13:10 ohmycto

Here you go: https://github.com/postgrespro/pg_pathman/releases/tag/1.5.10

arssher avatar Dec 03 '19 12:12 arssher