From: Tom Lane <tgl@sss.pgh.pa.us>
To: Constantin Teodorescu <teo@flex.ro>
Cc: pgsql-hackers@postgreSQL.org
Cc: pgsql-interfaces@postgreSQL.org
Subject: Re: [INTERFACES] crypt not included when compiling libpgtcl !!!!!!!
Date: Fri, 06 Nov 1998 10:27:03 -0500
Message-ID: <15411.910366023@sss.pgh.pa.us> (raw)
In-Reply-To: <3642B0F1.F5357EA5@flex.ro>
Constantin Teodorescu <teo@flex.ro> writes:
> Tom Lane wrote:
>> Would you check whether it works to add the following patch to
>> src/interfaces/libpq's Makefile, and then build libpgtcl *without*
>> a reference to crypt? (I can't test it here since crypt is part of
>> libc on my machine...)
>
> [ Still doesn't work ]
Odd. Perhaps your system doesn't support libraries referring to other
shared libraries? (Seems unlikely, but...) In that case you'd be
getting the static libpq.a bound into libpgtcl.so, minus crypt of
course, and then this would happen.
If that's what's happening you should easily be able to tell from the
sizes of libpgtcl.so and libpq.so. On my machine, libpgtcl is actually
smaller than libpq (about half as big, in fact). If libpq is getting
bound into libpgtcl.so then libpgtcl.so would have to be bigger than
libpq.so. Which one is bigger on your machine?
Also, do you have any sort of utility that shows directly what a
program's shared library requirements are? For example, on HPUX
I can do
$ chatr /usr/local/pgsql/bin/pgtclsh
/usr/local/pgsql/bin/pgtclsh:
shared executable
shared library dynamic path search:
SHLIB_PATH disabled second
embedded path enabled first /usr/local/pgsql/lib
shared library list:
static pgtclsh
dynamic ../../interfaces/libpgtcl/libpgtcl.sl
dynamic ../../interfaces/libpq/libpq.sl
dynamic /usr/lib/libdld.sl
dynamic /lib/libcurses.sl
dynamic /lib/libc.sl
shared library binding:
deferred
$ chatr /usr/local/pgsql/lib/libpgtcl.sl
/usr/local/pgsql/lib/libpgtcl.sl:
shared library
shared library list:
dynamic ../libpq/libpq.sl
On Linux I think the corresponding command is "ldd".
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: tgl@sss.pgh.pa.us, teo@flex.ro, pgsql-hackers@postgreSQL.org
Subject: Re: [INTERFACES] crypt not included when compiling libpgtcl !!!!!!!
In-Reply-To: <15411.910366023@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox