BUG #18424: Build failure when static linking with openldap

Started by PG Bug reporting formabout 2 years ago2 messagesbugs
Jump to latest
#1PG Bug reporting form
noreply@postgresql.org

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

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: PG Bug reporting form (#1)
Re: BUG #18424: Build failure when static linking with openldap

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