Re: Testing for a shared library

From: "Dave Page" <dpage(at)vale-housing(dot)co(dot)uk>
To: "Christopher Kings-Lynne" <chriskl(at)familyhealth(dot)com(dot)au>
Cc: "PostgreSQL-development" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Testing for a shared library
Date: 2005-09-07 08:26:35
Message-ID: E7F85A1B5FF8D44C8A1AF6885BC9A0E4AC9F02@ratbert.vale-housing.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> -----Original Message-----
> From: Christopher Kings-Lynne [mailto:chriskl(at)familyhealth(dot)com(dot)au]
> Sent: 07 September 2005 09:16
> To: Dave Page
> Cc: PostgreSQL-development
> Subject: Re: [HACKERS] Testing for a shared library
>
> >>Is there any way of checking to see if a particular shared
> library is
> >>installed?
> >>
> >>eg. select is_shared_library('$libdir/tsearch2');
> >
> >
> > How well do you know the library you are looking for? You
> could just try
> > creating a function from it and seeing if it fails.
>
> I know it pretty well, but it seems kind of lame to have to
> create the
> function and test for it, especialyl if you have a non-error
> tolerating
> environment.

Yeah, but if you need a quick hack...

> Plus, you have to know what exported functions it has and you have to
> worry about creating any input and return types, etc.

That's why I asked how well you know the library :-)

/D

Browse pgsql-hackers by date

  From Date Subject
Next Message Teodor Sigaev 2005-09-07 08:57:46 Re: Testing for a shared library
Previous Message Christopher Kings-Lynne 2005-09-07 08:15:37 Re: Testing for a shared library