Package: libpq-dev Version: 17.8-0+deb13u1 The Libs.private field in libpq.pc lists the following libraries:
-lpgcommon -lpgport -lssl -lgssapi_krb5 -lm -lldap If we install libpq-dev and then try to link libpq.a respecting its .pc file information, we get: gcc ... /usr/lib/x86_64-linux-gnu/libpq.a -lpgcommon -lpgport -lgssapi_krb5 -lm /usr/lib/x86_64-linux-gnu/libldap.a -lsasl2 /usr/lib/x86_64-linux-gnu/liblber.a /usr/lib/x86_64-linux-gnu/libssl.a /usr/lib/x86_64-linux-gnu/libcrypto.a /usr/lib/x86_64-linux-gnu/libz.a -lzstd -ldl -pthread /usr/bin/ld: cannot find -lpgcommon: No such file or directory /usr/bin/ld: cannot find -lpgport: No such file or directory /usr/bin/ld: cannot find -lgssapi_krb5: No such file or directory /usr/bin/ld: cannot find -lsasl2: No such file or directory /usr/bin/ld: cannot find -lzstd: No such file or directory I am not sure if those libraries are unnecessary, should be unnecessary (at least -lpgcommon -lpgport, by means of being included in libpq.a), or libpq-dev should depend on the packages that contain these libraries (like it does on libssl-dev).

