From richard@presenceweb.com Wed Dec 12 09:02:43 2001 Received: from presence1.observatoiredesmarques.fr (presence1.observatoiredesmarques.fr [212.73.199.68]) by postgresql.org (8.11.3/8.11.4) with ESMTP id fBC92hm22090 for ; Wed, 12 Dec 2001 04:02:43 -0500 (EST) (envelope-from richard@presenceweb.com) Received: from presenceweb.com (gatei.observatoiredesmarques.fr [80.8.24.69]) by presence1.observatoiredesmarques.fr (8.9.1/_ODM_070798) with ESMTP id JAA31670 for ; Wed, 12 Dec 2001 09:04:21 GMT Message-ID: <3C171C77.ED75AC5B@presenceweb.com> Date: Wed, 12 Dec 2001 09:59:35 +0100 From: Richard NAGY Organization: Presenceweb / Nameshield X-Mailer: Mozilla 4.72 [fr] (X11; U; Linux 2.2.14-6.1.1smp i686) X-Accept-Language: fr, en MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Big problem about libpq.so.2.1, ldconfig and ldd Content-Type: multipart/alternative; boundary="------------6490C6650B3D6FA7D4927B92" X-Archive-Number: 200112/85 X-Sequence-Number: 2808 --------------6490C6650B3D6FA7D4927B92 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hello, How to solve this ? Please, please, it is urgent. We are in a big trouble! We have noticed a strange behavior. On a machine with 7.0.2, we have this : ldconfig -p |grep libpq.so libpq.so.2.1 (libc6) => /usr/local/pgsql/lib/libpq.so.2.1 libpq.so.2 (libc6) => /usr/local/pgsql/lib/libpq.so.2 libpq.so (libc6) => /usr/local/pgsql/lib/libpq.so On an other machine with 7.1.3, we have this : ldconfig -p |grep libpq.so libpq.so.2 (libc6) => /usr/local/pgsql/lib/libpq.so.2 libpq.so (libc6) => /usr/local/pgsql/lib/libpq.so The interresting thing is the lack of the line : libpq.so.2.1 (libc6) => /usr/local/pgsql/lib/libpq.so.2.1 But, it is the source of our problems. Our programs compiled on the first machine do not work on the second one! Well, not any more due to ??? Have you got an advice about this? Thank you very much. (it is urgent) Note : you can consult a previous mail of me about this. -- Richard NAGY Presenceweb / Nameshield --------------6490C6650B3D6FA7D4927B92 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Hello,

How to solve this ? Please, please, it is urgent. We are in a big trouble!

We have noticed a strange behavior.
On a machine with 7.0.2, we have this :

ldconfig -p |grep libpq.so
        libpq.so.2.1 (libc6) => /usr/local/pgsql/lib/libpq.so.2.1
        libpq.so.2 (libc6) => /usr/local/pgsql/lib/libpq.so.2
        libpq.so (libc6) => /usr/local/pgsql/lib/libpq.so
 
On an other machine with 7.1.3, we have this :

ldconfig -p |grep libpq.so
        libpq.so.2 (libc6) => /usr/local/pgsql/lib/libpq.so.2
        libpq.so (libc6) => /usr/local/pgsql/lib/libpq.so

The interresting thing is the lack of the line : libpq.so.2.1 (libc6) => /usr/local/pgsql/lib/libpq.so.2.1

But, it is the source of our problems. Our programs compiled on the first machine do not work on the second one!
Well, not any more due to ???

Have you got an advice about this?

Thank you very much. (it is urgent)

Note : you can consult a previous mail of me about this.

--
Richard NAGY
Presenceweb / Nameshield
  --------------6490C6650B3D6FA7D4927B92-- From acim@mbl.is Wed Dec 12 09:36:55 2001 Received: from pascal.mbl.is (pascal.mbl.is [193.4.96.33]) by postgresql.org (8.11.3/8.11.4) with ESMTP id fBC9asm30907 for ; Wed, 12 Dec 2001 04:36:55 -0500 (EST) (envelope-from acim@mbl.is) Received: from acim.mbl.is (3-244.mbl.is [192.168.3.244]) by pascal.mbl.is (8.11.6/linuxconf) with ESMTP id fBC9anB09097; Wed, 12 Dec 2001 09:36:50 GMT Subject: Re: Big problem about libpq.so.2.1, ldconfig and ldd From: Boban Acimovic To: Richard NAGY Cc: pgsql-admin@postgresql.org In-Reply-To: <3C171C77.ED75AC5B@presenceweb.com> References: <3C171C77.ED75AC5B@presenceweb.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/0.99.0 (Preview Release) Date: 12 Dec 2001 09:36:49 +0000 Message-Id: <1008149810.26899.0.camel@acim.mbl.is> Mime-Version: 1.0 X-Archive-Number: 200112/86 X-Sequence-Number: 2809 > On a machine with 7.0.2, we have this : > > ldconfig -p |grep libpq.so > libpq.so.2.1 (libc6) => /usr/local/pgsql/lib/libpq.so.2.1 > libpq.so.2 (libc6) => /usr/local/pgsql/lib/libpq.so.2 > libpq.so (libc6) => /usr/local/pgsql/lib/libpq.so > > On an other machine with 7.1.3, we have this : > > ldconfig -p |grep libpq.so > libpq.so.2 (libc6) => /usr/local/pgsql/lib/libpq.so.2 > libpq.so (libc6) => /usr/local/pgsql/lib/libpq.so It should be like this: lrwxrwxrwx 1 root other 12 des 10 14:58 libpq.so -> libpq.so.2.1 lrwxrwxrwx 1 root other 12 des 10 14:58 libpq.so.2 -> libpq.so.2.1 -rwxr-xr-x 1 root other 78114 des 10 14:58 libpq.so.2.1 Hmm, why don't you go to /usr/local/pgsql/lib on your second machine and do "ls -la libpq*". Then figure out what is the real file and what is the symbolic link. Rename the real file to libpq.so.2.1 and then make two symbolic links libpq.so and libpq.so.2 to point to libpq.so.2.1. This is something wrong with your installation on the second machine, but this should resolve the problem. This basically has nothing to do with Postgres (although it is about Postgres library), but this is plain Unix problem with loading libraries. Regards, Boban Acimovic www.mbl.is From richard@presenceweb.com Wed Dec 12 10:02:02 2001 Received: from presence1.observatoiredesmarques.fr (presence1.observatoiredesmarques.fr [212.73.199.68]) by postgresql.org (8.11.3/8.11.4) with ESMTP id fBCA22m31831 for ; Wed, 12 Dec 2001 05:02:02 -0500 (EST) (envelope-from richard@presenceweb.com) Received: from presenceweb.com (gatei.observatoiredesmarques.fr [80.8.24.69]) by presence1.observatoiredesmarques.fr (8.9.1/_ODM_070798) with ESMTP id KAA01443 for ; Wed, 12 Dec 2001 10:03:46 GMT Message-ID: <3C172A6C.32A0AB4F@presenceweb.com> Date: Wed, 12 Dec 2001 10:59:08 +0100 From: Richard NAGY Organization: Presenceweb / Nameshield X-Mailer: Mozilla 4.72 [fr] (X11; U; Linux 2.2.14-6.1.1smp i686) X-Accept-Language: fr, en MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Re: Big problem about libpq.so.2.1, ldconfig and ldd References: <3C171C77.ED75AC5B@presenceweb.com> <1008149810.26899.0.camel@acim.mbl.is> Content-Type: multipart/alternative; boundary="------------2011A48E6EC112422E320EFE" X-Archive-Number: 200112/87 X-Sequence-Number: 2810 --------------2011A48E6EC112422E320EFE Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Boban Acimovic wrote : > > On a machine with 7.0.2, we have this : > > > > ldconfig -p |grep libpq.so > > libpq.so.2.1 (libc6) => /usr/local/pgsql/lib/libpq.so.2.1 > > libpq.so.2 (libc6) => /usr/local/pgsql/lib/libpq.so.2 > > libpq.so (libc6) => /usr/local/pgsql/lib/libpq.so > > > > On an other machine with 7.1.3, we have this : > > > > ldconfig -p |grep libpq.so > > libpq.so.2 (libc6) => /usr/local/pgsql/lib/libpq.so.2 > > libpq.so (libc6) => /usr/local/pgsql/lib/libpq.so > > It should be like this: > > lrwxrwxrwx 1 root other 12 des 10 14:58 libpq.so -> > libpq.so.2.1 > lrwxrwxrwx 1 root other 12 des 10 14:58 libpq.so.2 -> > libpq.so.2.1 > -rwxr-xr-x 1 root other 78114 des 10 14:58 libpq.so.2.1 > > Hmm, why don't you go to /usr/local/pgsql/lib on your second machine and > do "ls -la libpq*". Then figure out what is the real file and what is > the symbolic link. Rename the real file to libpq.so.2.1 and then make > two symbolic links libpq.so and libpq.so.2 to point to libpq.so.2.1. > This is something wrong with your installation on the second machine, > but this should resolve the problem. This basically has nothing to do > with Postgres (although it is about Postgres library), but this is plain > Unix problem with loading libraries. > > Regards, > Boban Acimovic > www.mbl.is Well, all the files were good. It was as it should be. It is strange. But the good news is that I have found one solution : I have rename libpq.so.2.1 to libpq.so.2.1.good Then, I have deleted the 2 old symbolic links and created 3 (yes 3!!) new ones. libpq.so -> libpq.so.2.1.good libpq.so.2 -> libpq.so.2.1.good and the most important one (for my problem) : libpq.so.2.1 -> libpq.so.2.1.good I have typed ldconfig and everything works well!! Strange isn't it ? -- Richard NAGY Presenceweb / Nameshield --------------2011A48E6EC112422E320EFE Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Boban Acimovic wrote :
> On a machine with 7.0.2, we have this :
>
> ldconfig -p |grep libpq.so
>         libpq.so.2.1 (libc6) => /usr/local/pgsql/lib/libpq.so.2.1
>         libpq.so.2 (libc6) => /usr/local/pgsql/lib/libpq.so.2
>         libpq.so (libc6) => /usr/local/pgsql/lib/libpq.so
>
> On an other machine with 7.1.3, we have this :
>
> ldconfig -p |grep libpq.so
>         libpq.so.2 (libc6) => /usr/local/pgsql/lib/libpq.so.2
>         libpq.so (libc6) => /usr/local/pgsql/lib/libpq.so

It should be like this:

lrwxrwxrwx   1 root     other         12 des 10 14:58 libpq.so ->
libpq.so.2.1
lrwxrwxrwx   1 root     other         12 des 10 14:58 libpq.so.2 ->
libpq.so.2.1
-rwxr-xr-x   1 root     other      78114 des 10 14:58 libpq.so.2.1

Hmm, why don't you go to /usr/local/pgsql/lib on your second machine and
do "ls -la libpq*". Then figure out what is the real file and what is
the symbolic link. Rename the real file to libpq.so.2.1 and then make
two symbolic links libpq.so and libpq.so.2 to point to libpq.so.2.1.
This is something wrong with your installation on the second machine,
but this should resolve the problem. This basically has nothing to do
with Postgres (although it is about Postgres library), but this is plain
Unix problem with loading libraries.

Regards,
Boban Acimovic
www.mbl.is

Well, all the files were good. It was as it should be. It is strange.

But the good news is that I have found one solution :

I have rename libpq.so.2.1 to libpq.so.2.1.good
Then, I have deleted the 2 old symbolic links and created 3 (yes 3!!) new ones.
libpq.so -> libpq.so.2.1.good
libpq.so.2 -> libpq.so.2.1.good

and the most important one (for my problem) : libpq.so.2.1 -> libpq.so.2.1.good

I have typed ldconfig and everything works well!!

Strange isn't it ?

--
Richard NAGY
Presenceweb / Nameshield
  --------------2011A48E6EC112422E320EFE--