Open davidnich opened 8 years ago
a workaround is to launch such processes like this:
LD_PRELOAD="/appl/isepl/dev02/lib/libqore.so.5.13.0 /appl/isepl/dev02/lib/modules/openldap.qmod" cmd
the same issue reproduced during https://bugs.qoretechnologies.com/issues/1406
it seems that the solution is to link openldap library statically into module-openldap, otherwise we will always melt ldap.h from openldap with ldap_get_option implementation from (for example) oracle.
the question is whether we are able to link module-openldap with libldap statically and NOT export the ldap symbols...
another problem is that not all linux distros provide static ldap libs (RHEL 7 has only shared ldap libs, for one)...
it is not that easy to link ldap statically to module-openldap:
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libldap_r.a(open.o): relocation R_X86_64_PC32 against symbol `ldap_int_global_options' can not be used when making a shared object; recompile with -fPIC
ex:
tested on RHEL 5, CentOS 7, Fedora 23 - same results as above