[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#583846: fails loading backends

Package: soci
Severity: grave


I'm trying to make a trivial example program using libsoci and failing
at it:

$ cat a.cpp
#include <soci/soci.h>

        soci::session dbh("sqlite3://a.sq3");

$ g++ a.cpp -lsoci
/usr/bin/ld: cannot find -lsoci
collect2: ld returned 1 exit status

$ ls -1 /usr/lib/libsoci*.a

It seems the package renamed the lib to "soci_core-gcc-3_0"

$ g++ a.cpp -lsoci_core-gcc-3_0
$ ./a.out
$ ./a.out
terminate called after throwing an instance of 'soci::soci_error'
  what():  Failed to find shared library for backend sqlite3
$ $ strace ./a.out 2>&1 | grep sqli
open("./libsoci_sqlite3.so", O_RDONLY)  = -1 ENOENT (No such file or directory)
write(2, "Failed to find shared library fo"..., 49Failed to find shared library for backend sqlite3) = 49

But the code to dynamically load backends don't know about the
"-gcc-3_0" thing nor that it should look for the module on /usr/lib/

Is the package broken or I am missing something?


-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.29-2-686 (SMP w/1 CPU core)
Locale: LANG=es_AR.UTF-8, LC_CTYPE=es_AR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Reply to: