Closed devrimgunduz closed 8 years ago
Hi @devrimgunduz,
Currently I don't have access to a fedora machine. But, I tested pg_shard 1.2.1 on Postgres 9.4.4 on Red Hat Enterprise Linux Server release 7.1 (Maipo)
. Everything seems good (compile & regression tests)
Then, I realized that your compile command seems to include 9.5 libraries such as the following:
-I/usr/pgsql-9.5/include
Could this be the source of the problem? Else, I'll try to simulate exactly your environment.
Thanks!
@onderkalaci Could we try this out on EC2 and see if that solves the problem?
Hey @ozgune @devrimgunduz
I successfully compiled pg_shard 1.2.1 (and 1.2.2) against Postgres 9.4.4 on Fedora 22.
Hi,
Sorry for the delay -- right, the title should be 9.5, not 9.4. Sorry about that.
Regards, Devrim
Closing, too. We could backport 9.5 compatibility to the 1.2
line later, but as 1.2.1
was released three days before the first 9.5 alpha, and as 9.5 isn't even released yet, I don't expect that particular tag to successfully build against 9.5 (as noted in #142).
We did add 9.5 compatibility in in #137, so develop
should build successfully against 9.5. And we build against the latest 9.5 release in Travis now (every commit to develop
and all PRs). Right now that means alpha 2
, but we'll upgrade to the newest releases right after they come out (I hear a beta is upcoming).
Finally, if this is about the Red Hat-flavor-linux issue, @onderkalaci fixed that in #148.
Feel free to open a new issue if I've misinterpreted the core issue of this or #142.
Hi,
I'm getting this while trying to build pg_shard against PG 9.4.4, on Fedora 22:
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 -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -DLINUX_OOM_ADJ=0 -fpic -std=c99 -Wall -Wextra -Werror -Wno-unused-parameter -Iinclude -I/usr/pgsql-9.5/include -Itest/include -I. -I./ -I/usr/pgsql-9.5/include/server -I/usr/pgsql-9.5/include/internal -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include -c -o test/src/create_shards.o test/src/create_shards.c cp sql/pg_shard.sql sql/pg_shard--1.2.sql test/src/fake_fdw.c: In function 'FakeGetForeignPlan': test/src/fake_fdw.c:108:9: error: too few arguments to function 'make_foreignscan' return make_foreignscan(tlist, scan_clauses, scan_relid, NIL, NIL); ^ In file included from test/src/fake_fdw.c:29:0: /usr/pgsql-9.5/include/server/optimizer/planmain.h:46:21: note: declared here extern ForeignScan _make_foreignscan(List qptlist, List qpqual, ^ test/src/fake_fdw.c:109:1: error: control reaches end of non-void function [-Werror=return-type] } ^ cc1: all warnings being treated as errors