On Sun, Apr 06, 2008 at 04:25:03PM +0100, Tony Green wrote: > I'm attempting to build some Perl database access modules for Nokia's N800 > handheld Linux device using the Nokia-supplied development environment.
> I have (apparently) successfully built and installed the DBD module, but when (s/DBD/DBI/ I presume.) > I try to build DBD modules the process fails at the start. The problem seems > to be with my DBI build, because I'm getting identical failures with both the > MySQL DBD module and the SQLite one. > > Running "perl Makefile.PL" for either module, I get a failure with an error > message "Can't load '/usr/lib/perl5/auto/DBI/DBI.so' for module > DBI: /usr/lib/perl5/auto/DBI/DBI.so: cannot open shared object file: No such > file or directory > open("/usr/lib/perl5/auto/DBI/DBI.so", O_RDONLY) = 5 > read(5, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0([EMAIL PROTECTED]"..., 512) = 512 > close(5) = 0 So it found a DBI.so file and read the first 512 bytes, > stat64("/scratchbox/devkits/perl/lib/perl/Carp/Heavy.pmc", 0xbff793c0) = -1 Here's perl has started searching for the internals of Carp to use it to report the error: my $libref = dl_load_file($file, $module->dl_load_flags) or croak("Can't load '$file' for module $module: ".dl_error()); > My best guess from this output is that for some reason it doesn't like what > it's read from my DBI module. I wonder if anybody can shed any light on this > please? > > I'm using: > DBI 1.58 > dbd-mysql_4.005 or DBD-SQLite-1.14 > gcc 3.4.4 > on Nokia's development environment, which simulates an armel processor on X86. When you say "simulates an armel processor on X86", does it give you a complete virtual machine that you login to? Where /usr/lib/... is popuated only with libs for the armel processor? Or is it a cross-development platform, where you 'live' in an X86 environment but the tools generate binaries that can be run on an armel processor or via a simulator command? Did the DBI's own "make test" and "make install" work properly? Where exactly did the DBI's "make install" put the DBI.so file? I'm wondering if the DBI.so file you're picking up is the wrong one. Tim.