[Date Prev][Date Next] [Chronological] [Thread] [Top]

more about perl backend and external perl modules

root@gnp43:/home/pwadas# slapd -4 -d3872 -h ldap:// 
@(#) $OpenLDAP: slapd 2.3.35 (May 12 2007 16:57:50) $
Error Can't load '/usr/lib/perl/5.8/auto/POSIX/POSIX.so' for module POSIX: 
/usr/lib/perl/5.8/auto/POSIX/POSIX.so: undefined symbol: PL_sig_name at 
/usr/lib/perl/5.8/XSLoader.pm line 70.
 at /usr/lib/perl/5.8/POSIX.pm line 26
Compilation failed in require at /etc/ldap/PerlBackend.pm line 26.
BEGIN failed--compilation aborted at /etc/ldap/PerlBackend.pm line 26.
Compilation failed in require at (eval 2) line 1.
BEGIN failed--compilation aborted at (eval 2) line 1.

WARNING: No dynamic config support for database perl.
Can't call method "init" on an undefined value.

root@gnp43:~/SRC/SLAPD-NEW# perl --version

This is perl, v5.8.8 built for i486-linux-gnu-thread-multi

I got the above error, when I try to start slapd,
with perl backends, and some "use" lines in script.
No matter what perl package I try to use (POSIX, DBI, whatever),
I get similar error regarding perl library.

I tried to rebuild perl and its modules, and
rebuild openldap (tried 2.3.30 and 2.3.35 versions), with
no effect.
Is there some limitation on perl backend, because of
kind of the way it's embedded into slapd, which actually
disallow usage of external modules? It seems slapd runs
fine, when I don't put any "use" lines into backend perl file (*.pm)
Should I try without threading, or what? 

I've seen this thing being reported a few times on
various lists, including some linux distribution bugzillas,
anyway there was no answer, see e.g. this

This slapd 2.3.35 was built with the following options:


and the part from slapd.conf (of course the same happens with only one 
directory in perlModulePath, containing PerlBackend.pm)

database        perl
suffix          "dc=example"
perlModulePath  /etc/ldap /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl
perlModule      PerlBackend

"PerlBackend.pm" is the file from slapd distribution, SampleLDAP, I just 
renamed it.