in reply to perl: symbol lookup error:/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/auto/DBI/DBI.so: undefined symbol: Perl_Tstack_sp_ptr

How did you install DBI?

And what's your code?

  • Comment on Re: perl: symbol lookup error:/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/auto/DBI/DBI.so: undefined symbol: Perl_Tstack_sp_ptr

Replies are listed 'Best First'.
Re^2: perl: symbol lookup error:/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/auto/DBI/DBI.so: undefined symbol: Perl_Tstack_sp_ptr
by simul (Novice) on Feb 26, 2009 at 14:05 UTC
    I don't know if it's any help but *if* you're embedding perl in a shred libray, and *if* that library is, in tern calling "use DBI", and *if* you're developing on a unix system... then that shared library, in addition to setting up DynaLoader xs_init stuff, needs to add this to xs_init:
    #ifdef unix dlopen("libperl.so", RTLD_LAZY|RTLD_GLOBAL); #endif
    or else it won't work.