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

From: Martin Goodson <kaemaril(at)googlemail(dot)com>
To: Adrian Klaver <adrian(dot)klaver(at)aklaver(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 19:01:52
Message-ID: ed3234dd-9941-5bea-1e7e-2df8454bb228@googlemail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 17/05/2017 17:19, Adrian Klaver wrote:
> Spun up a RH 7.3 instance and tried the compile and got the same error.
Good to know it's reproducible, and not just me :)

> To fix, find the checking library in /lib64/libldap_r-2.4.so.2.
>
> [root(at)localhost repmgr-2.0]# cd /lib64/
> [root(at)localhost lib64]# ls -l libldap*
> lrwxrwxrwx. 1 root root 20 Dec 8 09:23 libldap-2.4.so.2 ->
> libldap-2.4.so.2.5.6
> -rwxr-xr-x. 1 root root 317200 Apr 29 2013 libldap-2.4.so.2.5.6
> lrwxrwxrwx. 1 root root 22 Dec 8 09:23 libldap_r-2.4.so.2 ->
> libldap_r-2.4.so.2.5.6
> -rwxr-xr-x. 1 root root 335264 Apr 29 2013 libldap_r-2.4.so.2.5.6
>
> Ok, there are two copies, retain one and unlink other.
>
> [root(at)localhost lib64]# unlink libldap_r-2.4.so.2
> "
>
>
> I did the above and success:
>
> PATH=/opt/PostgreSQL/9.6/bin:$PATH make USE_PGXS=1 clean all
> ...
> I am going to agree with John's comment upstream that unlinking a file
> seems to be dubious. You might want to try linking the file back up
> again after you have installed repmgr and see if it causes any issues.
>
I'll have a word with our UNIX team about unlinking this (and relinking
afterward) tomorrow (they're gone for the night ... :) ) and report
back, but it certainly is looking promising again! :)

Here's what I currently see in /lib64 for libldap files ...

$ ls -l /lib64/libldap*

lrwxrwxrwx 1 root root 21 May 11 12:42 /lib64/libldap-2.4.so.2 ->
libldap-2.4.so.2.10.3
-rwxr-xr-x 1 root root 337K Feb 23 2016 /lib64/libldap-2.4.so.2.10.3
lrwxrwxrwx 1 root root 23 May 11 12:42 /lib64/libldap_r-2.4.so.2 ->
libldap_r-2.4.so.2.10.3
-rwxr-xr-x 1 root root 365K Feb 23 2016 /lib64/libldap_r-2.4.so.2.10.3
lrwxrwxrwx 1 root root 23 May 16 17:06 /lib64/libldap_r.so ->
libldap_r-2.4.so.2.10.3
lrwxrwxrwx 1 root root 21 May 16 17:06 /lib64/libldap.so ->
libldap-2.4.so.2.10.3

Regards,

Martin.
--
Martin Goodson

"Have you thought up some clever plan, Doctor?"
"Yes, Jamie, I believe I have."
"What're you going to do?"
"Bung a rock at it."

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2017-05-17 19:11:10 Re: EnterpriseDB installed PostgreSQL 9.6 vs. REPMGR. Round 4 - compilation issues on RHEL 7.2
Previous Message Martin Goodson 2017-05-17 18:53:13 Re: EnterpriseDB installed PostgreSQL 9.6 vs. REPMGR. Round 4 - compilation issues on RHEL 7.2