From: | Uilian Ries <uilianries(at)gmail(dot)com> |
---|---|
To: | pgsql-general(at)lists(dot)postgresql(dot)org |
Subject: | Are compression requirements needed when building only libraries? |
Date: | 2025-10-09 11:10:05 |
Message-ID: | CAEvaW23OxaGd=2rTzE4-38WiN-=O_dGPLBB-ZEd61WoasWDq0Q@mail.gmail.com |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Greetings!
I'm building PostgreSQL 17.5 locally, on Ubuntu 22.04, and using a CPU
architecture x86_64.
I noted the meson_options.txt file contains a few optional dependencies,
like zstd, zlib, lz4, libxml, and libxslt, which mostly seem to be related
to compression.
However, even when I build all libraries using those options enabled, I
can't see them listed as a dependency of the libraries:
conan(at)ae7c3785243c:~/project$ ldd
/home/conan/.conan2/p/b/libpqa632efa337a6e/p/lib/libpgtypes.so.3.17
linux-vdso.so.1 => (0x00007ffe83592000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
(0x0000765dc9754000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x0000765dc938a000)
/lib64/ld-linux-x86-64.so.2 (0x0000765dc9971000)
conan(at)ae7c3785243c:~/project$ ldd
/home/conan/.conan2/p/b/libpqa632efa337a6e/p/lib/libecpg.so.6.17
linux-vdso.so.1 => (0x00007fff30dd9000)
libpgtypes.so.3 => not found
libpq.so.5 => not found
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
(0x00007ad2a1096000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007ad2a0ccc000)
/lib64/ld-linux-x86-64.so.2 (0x00007ad2a12b3000)
conan(at)ae7c3785243c:~/project$ ldd
/home/conan/.conan2/p/b/libpqa632efa337a6e/p/lib/libecpg.so.6.17
linux-vdso.so.1 => (0x00007ffe4e3b7000)
libpgtypes.so.3 => not found
libpq.so.5 => not found
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
(0x00007035b616b000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007035b5da1000)
/lib64/ld-linux-x86-64.so.2 (0x00007035b6388000)
conan(at)ae7c3785243c:~/project$ ldd
/home/conan/.conan2/p/b/libpqa632efa337a6e/p/lib/libecpg_compat.so.3.17
linux-vdso.so.1 => (0x00007fffdd7b8000)
libecpg.so.6 => not found
libpgtypes.so.3 => not found
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
(0x0000779677994000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007796775ca000)
/lib64/ld-linux-x86-64.so.2 (0x0000779677bb1000)
conan(at)ae7c3785243c:~/project$ ldd
/home/conan/.conan2/p/b/libpqa632efa337a6e/p/lib/libpq.so.5.17
linux-vdso.so.1 => (0x00007ffc1dba7000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x0000799a6e881000)
libssl.so.3 => not found
libcrypto.so.3 => not found
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
(0x0000799a6e664000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x0000799a6e29a000)
/lib64/ld-linux-x86-64.so.2 (0x0000799a6eb8a000)
But can I find them listed as dependencies of the tools:
pg_dump:
linux-vdso.so.1 => (0x00007ffcab9d3000)
libpq.so.5 => not found
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007af540feb000)
liblz4.so.1 => /usr/lib/x86_64-linux-gnu/liblz4.so.1 (0x00007af540dd3000)
libzstd.so.1 => /usr/lib/x86_64-linux-gnu/libzstd.so.1 (0x00007af540b76000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
(0x00007af540959000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007af54058f000)
So, my question is: *Is it correct to affirm I don't need those
dependencies when only interested in building and consuming the libraries? *
I'm asking because I don't see a specific option in the meson_option.txt to
disable/enable producing the executables, but only general options for
dependencies.
Regards!
From | Date | Subject | |
---|---|---|---|
Next Message | Ron Johnson | 2025-10-09 13:49:34 | Re: Pgbackrest changing RepoServer to new one |
Previous Message | Roberto Nunnari | 2025-10-09 09:03:31 | High latency and profiling |