Hello,
I'm using debian lenny, kamailio_3.0.0 and perl_5.10.0.
I included the following line in a PERL-script (that I want to be started from the routing-logic in kamailio.cfg) for interaction of PERL with a MySQL Database:
use DBI;
The problem is that I get the follwing error at kamailio-startup:
lenny:/opt/kamailio-3.0.0/sbin# 0(17385) ERROR: perl [openserxs.xs:1027]: perl error: Can't load '/usr/lib/perl5/auto/DBI/DBI.so' for module DBI: /usr/lib/perl5/auto/DBI/DBI.so: undefined symbol: PL_memory_wrap at /usr/lib/perl/5.10/DynaLoader.pm line 196. at /usr/lib/perl5/DBI.pm line 263
The PERL-script itself compiles without problems and other scripts work fine as well.
What can I do???
Thanks for the help in advance.
Regards,
Nicolas
On Wednesday 04 August 2010, Nicolas Rüger wrote:
I'm using debian lenny, kamailio_3.0.0 and perl_5.10.0.
I included the following line in a PERL-script (that I want to be started from the routing-logic in kamailio.cfg) for interaction of PERL with a MySQL Database:
use DBI;
The problem is that I get the follwing error at kamailio-startup:
lenny:/opt/kamailio-3.0.0/sbin# 0(17385) ERROR: perl [openserxs.xs:1027]: perl error: Can't load '/usr/lib/perl5/auto/DBI/DBI.so' for module DBI: /usr/lib/perl5/auto/DBI/DBI.so: undefined symbol: PL_memory_wrap at /usr/lib/perl/5.10/DynaLoader.pm line 196. at /usr/lib/perl5/DBI.pm line 263
The PERL-script itself compiles without problems and other scripts work
Hi Nicolas,
i just did some searching, and it seems something related to a missing perl library, this posts specify some workaround:
http://www.nntp.perl.org/group/perl.dbi.users/2008/08/msg33124.html http://www.opensubscriber.com/message/freeradius- users@lists.freeradius.org/10186494.html
So it looks at the moment a bit like a generic issue in the DBI module to me, but some more input from somebody else which uses DBI with the perl module is of course appreciated.
Cheers,
Henning
Hello Henning,
thank you very much!
I finally used this one (which is the same as your link):
http://lists.cistron.nl/pipermail/freeradius-users/2008-September/msg00378.h...
The explanation here just fixed the problem after I set the environment variable as follows without adapting anything:
export LD_PRELOAD=/usr/lib/libperl.so.5.10
Surprisingly that works fine!
I'd have expected that I've to pre-load the "DBI.so" cause it's been mentioned in the error message but that didn't work...I tried that in several ways before I just copied the command from the link.
Even re-installed DBI package before but didn't help.
Thank you for your help!!! My problem is fixed so far...
Regards,
Nicolas
-------- Original-Nachricht --------
Datum: Thu, 5 Aug 2010 12:58:40 +0200 Von: Henning Westerholt henning.westerholt@1und1.de An: sr-users@lists.sip-router.org CC: "Nicolas Rüger" NicolasRueger@gmx.de Betreff: Re: [SR-Users] DBI Error on startup
On Wednesday 04 August 2010, Nicolas Rüger wrote:
I'm using debian lenny, kamailio_3.0.0 and perl_5.10.0.
I included the following line in a PERL-script (that I want to be
started
from the routing-logic in kamailio.cfg) for interaction of PERL with a MySQL Database:
use DBI;
The problem is that I get the follwing error at kamailio-startup:
lenny:/opt/kamailio-3.0.0/sbin# 0(17385) ERROR: perl
[openserxs.xs:1027]:
perl error: Can't load '/usr/lib/perl5/auto/DBI/DBI.so' for module DBI: /usr/lib/perl5/auto/DBI/DBI.so: undefined symbol: PL_memory_wrap at /usr/lib/perl/5.10/DynaLoader.pm line 196. at /usr/lib/perl5/DBI.pm
line
263
The PERL-script itself compiles without problems and other scripts work
Hi Nicolas,
i just did some searching, and it seems something related to a missing perl library, this posts specify some workaround:
http://www.nntp.perl.org/group/perl.dbi.users/2008/08/msg33124.html http://www.opensubscriber.com/message/freeradius- users@lists.freeradius.org/10186494.html
So it looks at the moment a bit like a generic issue in the DBI module to me, but some more input from somebody else which uses DBI with the perl module is of course appreciated.
Cheers,
Henning
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users