-
Notifications
You must be signed in to change notification settings - Fork 87
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
Problem with build #627
Comments
Hello, I was able to find a temporary solution for this issue - I added
I am not sure that it is right way, because -lz it is a specific option of GCC but this is working. Could you proposal the true solution to this? Thanks. |
Is |
"raw source tree" indeed is a postgres source tree. E.g. just Here's dockerfile which builds ok on ubuntu 24.04.
|
Yes, I did it and got the following messages:
It does not help.
It does not help, too. All the error messages:
|
Ok, I did it. My '/home/dima/.MY/GitHUB/Postgres/DEV20240722-work2' contains PG source tree (it was cloned from GitHub) and this tree was used to compile my installed PG instance.
I'll try to check it a bit later. Thank you for your help. |
I tested PGXS method with PostgreSQL v16.3 (cloned from GitHub) and got the same problem with undefined references. v16 was compiled with meson.
Errors:
When I add
|
Unfortunately, docker does not work on my ubuntu 24.04 (that works in VM / Hyper-V) - it crashes. So, I can't check this scenario. Ok, I have already been able to build probackup and it is enough to continue. I hope this problem with build will be fixed in the future :) |
I was able to reproduce your problem using the following dockerfile. Please note that even adding
|
Yeah, thanks for reporting. This have to be fixed. |
An equal problem exists when Postgres was compiled with a support of LZ4 (?) library
I have not known how to fix it yet :( UPD. PG_LDFLAGS = -lz -llz4 |
Hello,
Could anyone help me build probackup?
I am trying to build it (Ubuntu 24.04) using your instruction.
PostrgreSQL was compiled with the following steps:
Installed PG instance works as expected.
Build method 1 (PGXS)
Instruction:
What is mean "raw source tree"? I pointed the folder with source that I used to build PG. Is it OK?
My command is:
Errors:
As I understand, a problem with zlib library. How can I fix it?
/sbin/ldconfig -p| grep libz.so
says:Build method 2 (build probackup in contrib folder of PG source tree)
Instruction:
Ok.
I copyed the folder with source code of probackup in '/home/dima/.MY/GitHUB/Postgres/DEV20240722-work2/contrib/pg_probackup':
I opened a terminal in this folder and executed "make"
Error:
As I understand, the problem is here:
pg_probackup/Makefile
Lines 45 to 50 in a2510f5
Makefile.global was generated in "PG_SRC_TREE/build/src" not in "PG_SRC_TREE/src"
I corrected top_builddir with
top_builddir=../../build
but it did not help.Error:
What did I do wrong?
Thanks.
The text was updated successfully, but these errors were encountered: