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

Error when building image using docs/citus/Dockerfile #1007

Closed
xin-hedera opened this issue Sep 22, 2023 · 1 comment
Closed

Error when building image using docs/citus/Dockerfile #1007

xin-hedera opened this issue Sep 22, 2023 · 1 comment

Comments

@xin-hedera
Copy link

xin-hedera commented Sep 22, 2023

Error log:

In file included from health_check_worker.c:40:
/usr/include/postgresql/internal/libpq-int.h:86:10: fatal error: common/pg_prng.h: No such file or directory
   86 | #include "common/pg_prng.h"
      |          ^~~~~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [<builtin>: health_check_worker.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:160: monitor] Error 2
make: *** Waiting for unfinished jobs....

The problem is the bullseye-pgdg repo for PG 14 includes libpq-dev version 16, and its internal/libpq-int.h includes common/pg_prng.h which is not present in postgresql-server-dev-14

To fix, can force install libpq5=14.9-1.pgdg110+1 libpq-dev=14.9-1.pgdg110+1

@dimitri
Copy link
Contributor

dimitri commented Sep 25, 2023

I believe this should be fixed now on the main branch, thanks for reporting the issue.

@dimitri dimitri closed this as completed Sep 25, 2023
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