Re: [HACKERS] Problem with dlopen and PostgreSQL - load of file failed

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "D'Arcy" "J(dot)M(dot)" Cain <darcy(at)druid(dot)net>
Cc: current-users(at)NetBSD(dot)org, hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] Problem with dlopen and PostgreSQL - load of file failed
Date: 1999-07-25 16:06:46
Message-ID: 12434.932918806@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"D'Arcy" "J.M." Cain <darcy(at)druid(dot)net> writes:
> ERROR: Load of file /usr/pgsql/modules/glaccount.so failed: dlopen (/usr/pgsql/modules/glaccount.so) failed

> The error message isn't very informative.

Dynamic loaders tend to be pretty horrid about that :-(. My bet is
a failure to resolve an external reference to another shared library.
Try using "ldd" (or local equivalent) on the shlib to find out what
other shlibs it depends on. Be suspicious if ldd fails to show all the
dependencies you expect (eg, practically anything will depend on libc);
that probably means the linker failed to locate the other shlib when
linking this one. Next make sure all those other shlibs are in the
right places, and are known to the system if your system keeps a table
of shlibs. Then start checking *their* dependencies...

regards, tom lane

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Mark Hollomon 1999-07-25 16:08:51 Re: [HACKERS] plperl intial pass
Previous Message Hub.Org News Admin 1999-07-25 13:07:23