I'm having trouble loading modules in pl/perl. If I do something as
create function test () returns integer as '
' language 'plperlu';
I get the following error:
ERROR: creation of function failed: Can't load
'/usr/local/lib/perl5/site_perl/5.6.0/aix/auto/DBI/DBI.so' for module DBI:
readExports: bad magic at /usr/local/lib/perl5/5.6.0/aix/DynaLoader.pm
at /usr/local/lib/perl5/site_perl/5.6.0/aix/DBI.pm line 243
BEGIN failed--compilation aborted at
/usr/local/lib/perl5/site_perl/5.6.0/aix/DBI.pm line 243.
Compilation failed in require at (eval 1) line 2.
BEGIN failed--compilation aborted at (eval 1) line 2.
And it doesn't have to be DBI - any module that uses Dynaloader, that is,
that loads a C library, gives the same error. Now, I don't control the
perl installation on this host, so I'm not able to compile libperl.a as a
shared library, but all code on my platform is position-independent, which
various sources tell me is all I really need. And everything works fine
in pl/perl, except loading modules that use C libraries.
I'm running PostgreSQL 7.4.2, although this has been happening ever since
I started trying, somwhere back in the 7.2's. The host runs AIX 4.3 on an
Where do I go from here?
pgsql-interfaces by date
|Next:||From: brian plummer||Date: 2004-04-19 14:13:09|
|Subject: PostgreSQL: libpq, win32 build|
|Previous:||From: Shelby Cain||Date: 2004-04-15 04:23:42|
|Subject: Re: Bulk updates/inserts|