Package: libsqlite3-dev
Version: 3.7.7-2
Severity: important

Dear Maintainer,
*** Please consider answering these questions, where appropiate ***

   * What led up to the situation?
   * What exactly did you do (or not do) that was effective (or
     ineffective)?
Save the following code to tmp.c:

#include <sqlite3.h>

int main()
{
    sqlite3*        sql_handle;

    sqlite3_open("test", &sql_handle);

    return 0;
}

Then compile it:

$ gcc tmp.c -static -L/usr/lib -lsqlite3

   * What was the outcome of this action?

The compilation fails:

/usr/lib/libsqlite3.a(sqlite3.o): In function `pthreadMutexTry':
(.text+0x73c5): undefined reference to `pthread_mutex_trylock'
/usr/lib/libsqlite3.a(sqlite3.o): In function `pthreadMutexFree':
(.text+0x90d5): undefined reference to `pthread_mutex_destroy'
/usr/lib/libsqlite3.a(sqlite3.o): In function `pthreadMutexAlloc':
(.text+0x13d01): undefined reference to `pthread_mutex_init'
/usr/lib/libsqlite3.a(sqlite3.o): In function `pthreadMutexAlloc':
(.text+0x13d44): undefined reference to `pthread_mutexattr_init'
/usr/lib/libsqlite3.a(sqlite3.o): In function `pthreadMutexAlloc':
(.text+0x13d51): undefined reference to `pthread_mutexattr_settype'
/usr/lib/libsqlite3.a(sqlite3.o): In function `pthreadMutexAlloc':
(.text+0x13d5c): undefined reference to `pthread_mutex_init'
/usr/lib/libsqlite3.a(sqlite3.o): In function `pthreadMutexAlloc':
(.text+0x13d64): undefined reference to `pthread_mutexattr_destroy'
/usr/lib/libsqlite3.a(sqlite3.o): In function `unixDlError':
(.text+0x29ed9): undefined reference to `dlerror'
/usr/lib/libsqlite3.a(sqlite3.o): In function `unixDlSym':
(.text+0x16d7): undefined reference to `dlsym'
/usr/lib/libsqlite3.a(sqlite3.o): In function `pthreadMutexLeave':
(.text+0x73b1): undefined reference to `pthread_mutex_unlock'
/usr/lib/libsqlite3.a(sqlite3.o): In function `pthreadMutexEnter':
(.text+0x73e1): undefined reference to `pthread_mutex_lock'
/usr/lib/libsqlite3.a(sqlite3.o): In function `unixDlClose':
(.text+0x76f4): undefined reference to `dlclose'
/usr/lib/libsqlite3.a(sqlite3.o): In function `unixDlOpen':
(.text+0x7709): undefined reference to `dlopen'
/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.6.1/libgcc_eh.a(unwind-dw2
-fde-glibc.o): In function `__register_frame_info_bases':
(.text+0x16a4): undefined reference to `pthread_mutex_lock'
/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.6.1/libgcc_eh.a(unwind-dw2
-fde-glibc.o): In function `__register_frame_info_table_bases':
(.text+0x176b): undefined reference to `pthread_mutex_lock'
/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.6.1/libgcc_eh.a(unwind-dw2
-fde-glibc.o): In function `__deregister_frame_info_bases':
(.text+0x180e): undefined reference to `pthread_mutex_lock'
/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.6.1/libgcc_eh.a(unwind-dw2
-fde-glibc.o): In function `__deregister_frame_info_bases':
(.text+0x1896): undefined reference to `pthread_mutex_unlock'
/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.6.1/libgcc_eh.a(unwind-dw2
-fde-glibc.o): In function `_Unwind_Find_FDE':
(.text+0x1946): undefined reference to `pthread_mutex_lock'
/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.6.1/libgcc_eh.a(unwind-dw2
-fde-glibc.o): In function `_Unwind_Find_FDE':
(.text+0x1997): undefined reference to `pthread_mutex_unlock'
/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.6.1/libgcc_eh.a(unwind-dw2
-fde-glibc.o): In function `__register_frame_info_bases':
(.text+0x16c3): undefined reference to `pthread_mutex_unlock'
/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.6.1/libgcc_eh.a(unwind-dw2
-fde-glibc.o): In function `__register_frame_info_table_bases':
(.text+0x178a): undefined reference to `pthread_mutex_unlock'

   * What outcome did you expect instead?
The compilation should be successful.

*** End of the template - remove these lines ***



-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (900, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.0.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libsqlite3-dev depends on:
ii  libc6-dev     2.13-21
ii  libsqlite3-0  3.7.7-2

libsqlite3-dev recommends no packages.

Versions of packages libsqlite3-dev suggests:
pn  sqlite3-doc  <none>

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to