Re: EnterpriseDB installed PostgreSQL 9.6 vs. REPMGR. Round 4 - compilation issues on RHEL 7.2

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Martin Goodson <kaemaril(at)googlemail(dot)com>, pgsql-general(at)postgresql(dot)org
Cc: Devrim Gündüz <devrim(at)gunduz(dot)org>
Subject: Re: EnterpriseDB installed PostgreSQL 9.6 vs. REPMGR. Round 4 - compilation issues on RHEL 7.2
Date: 2017-05-17 15:15:13
Message-ID: d52e8c2f-5736-6304-37e0-973c3b55dad5@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 05/17/2017 07:26 AM, Martin Goodson wrote:
> On 16/05/2017 18:46, Adrian Klaver wrote:
>> Per Tom's suggestion try
>>
>> ldd /db_demo/app/postgres/9.6.2-3/lib/libldap_r-2.4.so.2
>
> Hello. Apologies for the delay in replying - medical appointment this
> morning :) Anyway, executed that command as suggested and this is the
> output I got.
>
> pginst(at)testdemo00:/db_demo/app/postgres/9.6.2-3/lib$ ls -lrt *ldap*
>
> -rwxr-xr-x 1 pginst gpginst 354K Mar 13 11:25 libldap-2.4.so.2
> -rwxr-xr-x 1 pginst gpginst 383K Mar 13 11:25 libldap_r-2.4.so.2
>

>
> pginst(at)testdemo00:/db_demo/app/postgres/9.6.2-3/lib$ ldd libldap_r-2.4.so.2
> linux-vdso.so.1 => (0x00007ffcd12e4000)
> liblber-2.4.so.2 =>
> /db_demo/app/postgres/9.6.2-3/lib/./liblber-2.4.so.2 (0x00007f20ff9a1000)
> libresolv.so.2 => /lib64/libresolv.so.2 (0x00007f20ff77d000)
> libsasl2.so.3 =>
> /db_demo/app/postgres/9.6.2-3/lib/./libsasl2.so.3 (0x00007f20ff55b000)
> libssl.so.1.0.0 =>
> /db_demo/app/postgres/9.6.2-3/lib/./libssl.so.1.0.0 (0x00007f20ff2ec000)
> libcrypto.so.1.0.0 =>
> /db_demo/app/postgres/9.6.2-3/lib/./libcrypto.so.1.0.0 (0x00007f20feeb5000)
> libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f20fec99000)
> libc.so.6 => /lib64/libc.so.6 (0x00007f20fe8d7000)
> libdl.so.2 => /lib64/libdl.so.2 (0x00007f20fe6d2000)
> /lib64/ld-linux-x86-64.so.2 (0x00007f20ffe14000)

So the EDB install is using its own library for liblber

Per Tom's suggestion:

nm -D /db_demo/app/postgres/9.6.2-3/lib/liblber-2.4.so.2

What has me confused is this:

/lib64/libldap_r-2.4.so.2: undefined reference to `ber_sockbuf_io_udp'

It is referring to a library path outside the EDB install.

Not sure why it is picking that up?

To get a handle on this:

whereis libldap_r

and then

ls -al whatever files are found above

ldd whatever files are found above

>
> (I noticed there was a second file in there with roughly the same name
> ... ish. Just in case it might be relevent, I did that one too :) )
>
> Hope that info's helpful!
>
> Regards,
>
> Martin.
>

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Sandeep Gupta 2017-05-17 15:42:52 Re: sorry, too many clients already error
Previous Message Martin Goodson 2017-05-17 14:26:52 Re: EnterpriseDB installed PostgreSQL 9.6 vs. REPMGR. Round 4 - compilation issues on RHEL 7.2