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

Cannot compile the extension #140

Open
ericjvandervelden opened this issue Nov 28, 2022 · 0 comments
Open

Cannot compile the extension #140

ericjvandervelden opened this issue Nov 28, 2022 · 0 comments

Comments

@ericjvandervelden
Copy link

Hi,

I have a question, not an issue, I guess. I am on,

[eric@almond postgresql-hll]$ cat /etc/fedora-release
Fedora release 26 (Twenty Six)

[eric@almond postgresql-hll]$ gcc -v
...
gcc version 7.3.1 20180130 (Red Hat 7.3.1-2) (GCC)

[eric@almond postgresql-hll]$ dnf list glibc
Installed Packages
glibc.x86_64 2.25-13.fc26 @@commandline

When I compile the extension, I see,

[eric@almond postgresql-hll]$ make
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 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -DLINUX_OOM_SCORE_ADJ=0 -fPIC -std=c99 -fPIC -Wall -Wextra -Werror -Wno-unused-parameter -Wno-implicit-fallthrough -Iinclude -I/usr/include -I. -I./ -I/usr/include/pgsql/server -I/usr/include/pgsql/internal -D_GNU_SOURCE -I/usr/include/libxml2 -c -o src/hll.o src/hll.c
In file included from /usr/include/pgsql/server/funcapi.h:20:0,
from src/hll.c:28:
src/hll.c: In function ‘hll_hashval_in’:
src/hll.c:1975:36: error: ‘int8in’ undeclared (first use in this function); did you mean ‘int4in’?
Datum dd = DirectFunctionCall1(int8in, PG_GETARG_DATUM(0));
^
/usr/include/pgsql/server/fmgr.h:556:26: note: in definition of macro ‘DirectFunctionCall1’
DirectFunctionCall1Coll(func, InvalidOid, arg1)
^~~~
src/hll.c:1975:36: note: each undeclared identifier is reported only once for each function it appears in
Datum dd = DirectFunctionCall1(int8in, PG_GETARG_DATUM(0));
^
/usr/include/pgsql/server/fmgr.h:556:26: note: in definition of macro ‘DirectFunctionCall1’
DirectFunctionCall1Coll(func, InvalidOid, arg1)
^~~~
src/hll.c: In function ‘hll_hashval_out’:
src/hll.c:1984:36: error: ‘int8out’ undeclared (first use in this function); did you mean ‘int4out’?
Datum dd = DirectFunctionCall1(int8out, PG_GETARG_DATUM(0));
^
/usr/include/pgsql/server/fmgr.h:556:26: note: in definition of macro ‘DirectFunctionCall1’
DirectFunctionCall1Coll(func, InvalidOid, arg1)
^~~~
make: *** [: src/hll.o] Error 1

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

1 participant