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

Compilation error on Debian Sid #1

Closed
Maliuta opened this issue Oct 17, 2019 · 3 comments
Closed

Compilation error on Debian Sid #1

Maliuta opened this issue Oct 17, 2019 · 3 comments

Comments

@Maliuta
Copy link

Maliuta commented Oct 17, 2019

While compiling on a Debian Sid installation I ran into the following errors:

/usr/bin/clang-9 -Wno-ignored-attributes -fno-strict-aliasing -fwrapv -O2  -I../../../src/include  -D_GNU_SOURCE -I/usr/include/libxml2  -flto=thin -emit-llvm -c -o walwriter.bc walwriter.c
parse_expr.c: In function ‘transformColumnRef’:
parse_expr.c:531:2: warning: enumeration value ‘EXPR_KIND_PUBLICATION_WHERE’ not handled in switch [-Wswitch]
  531 |  switch (pstate->p_expr_kind)
      |  ^~~~~~
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -fprofile-arcs -ftest-coverage -pg -DLINUX_PROFILE -fno-omit-frame-pointer -I. -I. -I../../../src/include  -D_GNU_SOURCE -I/usr/include/libxml2   -c -o parse_func.o parse_func.c -MMD -MP -MF .deps/parse_func.Po
pg_publication.c: In function ‘publication_add_relation’:
pg_publication.c:200:11: warning: passing argument 3 of ‘addRangeTableEntryForRelation’ makes integer from pointer without a cast [-Wint-conversion]
  200 |           NULL, false, false);
      |           ^~~~
      |           |
      |           void *
In file included from pg_publication.c:39:
../../../src/include/parser/parse_relation.h:70:23: note: expected ‘int’ but argument is of type ‘void *’
   70 | extern RangeTblEntry *addRangeTableEntryForRelation(ParseState *pstate,
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pg_publication.c:199:8: error: too few arguments to function ‘addRangeTableEntryForRelation’
  199 |  rte = addRangeTableEntryForRelation(pstate, targetrel->relation,
      |        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from pg_publication.c:39:
../../../src/include/parser/parse_relation.h:70:23: note: declared here
   70 | extern RangeTblEntry *addRangeTableEntryForRelation(ParseState *pstate,
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/bin/clang-9 -Wno-ignored-attributes -fno-strict-aliasing -fwrapv -O2  -I../../../src/include  -D_GNU_SOURCE -I/usr/include/libxml2  -flto=thin -emit-llvm -c -o tqueue.bc tqueue.c

parse_expr.c:531:10: warning: enumeration value 'EXPR_KIND_PUBLICATION_WHERE' not handled in switch [-Wswitch]
/usr/bin/clang-9 -Wno-ignored-attributes -fno-strict-aliasing -fwrapv -O2  -I../../../src/include  -D_GNU_SOURCE -I/usr/include/libxml2  -flto=thin -emit-llvm -c -o spi.bc spi.c
        switch (pstate->p_expr_kind)
                ^

The compile attempt exited as:

make: *** [GNUmakefile:11: all-src-recurse] Error 2

Can I also make a request for more documentation on krahodb - a basic "What it is" (i.e. is it a fork of PostgreSQL that is a drop in replacement) "How to configure it" "How to use it" would be helpful.

Thanks

Nikolai

@davecramer
Copy link
Contributor

I have the same error on macos

@eulerto
Copy link
Contributor

eulerto commented Oct 21, 2019

@Maliuta @davecramer I applied some fixes.

@davecramer
Copy link
Contributor

seems to work now, thanks

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

3 participants