Problem with dlopen and PostgreSQL - load of file failed
Note: Sent to NetBSD and PostgreSQL mailing lists as I am not sure
exactly where the problem lies.
I am running PostgreSQL 6.5 on a NetBSD system running -current. When
I try to include my user defined type I get the following error.
ERROR: Load of file /usr/pgsql/modules/glaccount.so failed: dlopen (/usr/pgsql/modules/glaccount.so) failed
The file definitely exists and is world readable as the following indicates.
[db@smaug:/usr/db] $ ls -l /usr/pgsql/modules/glaccount.so
-rwxr-xr-x 1 pgsql pgsql 3826 Jul 25 05:04 /usr/pgsql/modules/glaccount.so
[db@smaug:/usr/db] $ file /usr/pgsql/modules/glaccount.so
/usr/pgsql/modules/glaccount.so: ELF 32-bit LSB shared object, Intel 80386, version 1, not stripped
The error message isn't very informative. Is there some way to get more
information on why the load failed?
Thanks for any help.
--
D'Arcy J.M. Cain <darcy@{druid|vex}.net> | Democracy is three wolves
http://www.druid.net/darcy/ | and a sheep voting on
+1 416 424 2871 (DoD#0082) (eNTP) | what's for dinner.
"D'Arcy" == J M <D> writes:
D'Arcy> ERROR: Load of file /usr/pgsql/modules/glaccount.so
D'Arcy> failed: dlopen (/usr/pgsql/modules/glaccount.so) failed
D'Arcy> The error message isn't very informative. Is there some
D'Arcy> way to get more information on why the load failed?
For more information you can try to set LD_DEBUG to a non-null value
in the execution environment - the shared loader should give you a
hint what's going on; as an alternative, you can add a call to
dlerror() at the place in question and print the string returned.
(The code should probably do that anyway, but if it already does and
dlerror() returned a null pointer that would be a bug in the shared
loader.)
Import Notes
Reply to msg id not found: DArcyJ.M.CainsmessageofSun25Jul1999090605-0400EDT