Thread: BUG #18424: Build failure when static linking with openldap

BUG #18424: Build failure when static linking with openldap

From
PG Bug reporting form
Date:
The following bug has been logged on the website:

Bug reference:      18424
Logged by:          Arun
Email address:      arun007@pm.me
PostgreSQL version: 16.2
Operating system:   Linux
Description:

Static linking openldap results in failure with the following error:

 libpq.so.5.16:                 U pthread_exit@GLIBC_2.2.5

libpq must not be calling any function which invokes exit


PG Bug reporting form <noreply@postgresql.org> writes:
> Static linking openldap results in failure with the following error:
>  libpq.so.5.16:                 U pthread_exit@GLIBC_2.2.5
> libpq must not be calling any function which invokes exit

[ shrug... ]  So don't do that.  Statically linking libraries from
different sources is a pretty evil idea anyway, because it makes
package updates much harder.

Having said that, if you're hacking the makefiles enough to make
the link static, you can surely find and remove that check.  Just
don't expect us to take a patch to that effect.

            regards, tom lane