link sqlite against dietlibc

Michael Graßl <[email protected]> Tue, 24 Aug 2010 17:51:56 +0200
Newsgroups gmane.linux.lib.dietlibc
Message-ID <[email protected]>
  Hello


I tried to link sqlite against the  dietlibc-dev (debia sid 0.32) ond my 
amd64 but i got some errors.

Any ideas how to fix them which value should PTHREAD_MUTEX_RECURSIVE 
have and whats wrong with unixDlError ?

Best regards,
Mike

diet -v gcc -Werror -ggdb3 -c sqlite3.c
gcc -include /usr/lib/diet/include/dietref.h -Werror -ggdb3 -c sqlite3.c 
-isystem /usr/lib/diet/include -D__dietlibc__
sqlite3.c: In function 'pthreadMutexAlloc':
sqlite3.c:15993: error: 'PTHREAD_MUTEX_RECURSIVE' undeclared (first use 
in this function)
sqlite3.c:15993: error: (Each undeclared identifier is reported only once
sqlite3.c:15993: error: for each function it appears in.)
cc1: warnings being treated as errors
sqlite3.c: In function 'unixDlError':
sqlite3.c:27231: error: assignment discards qualifiers from pointer 
target type
make: *** [sqlite3.o] Fehler 1