[Scons-users] Fwd: sqlite3.c compilation error while using SCons

Soma Shekara S suo.somashekara.s at gmail.com
Mon Jul 8 05:48:00 EDT 2013


Hi,



I am new to SCons. I am trying to compile sqlite3.c using SCons and
getting below errors.



-------------------------------------------------------

db/src/sqlite3.o: In function `pthreadMutexAlloc':

sqlite3.c:(.text+0x3a98): undefined reference to `pthread_mutexattr_init'

sqlite3.c:(.text+0x3aa6): undefined reference to `pthread_mutexattr_settype'

sqlite3.c:(.text+0x3abc): undefined reference to `pthread_mutexattr_destroy'

db/src/sqlite3.o: In function `pthreadMutexTry':

sqlite3.c:(.text+0x3b57): undefined reference to `pthread_mutex_trylock'

db/src/sqlite3.o: In function `unixDlOpen':

sqlite3.c:(.text+0xd8dd): undefined reference to `dlopen'

db/src/sqlite3.o: In function `unixDlError':

sqlite3.c:(.text+0xd8fc): undefined reference to `dlerror'

db/src/sqlite3.o: In function `unixDlSym':

sqlite3.c:(.text+0xd944): undefined reference to `dlsym'

db/src/sqlite3.o: In function `unixDlClose':

sqlite3.c:(.text+0xd96d): undefined reference to `dlclose'

collect2: ld returned 1 exit status

------------------------------------------------------



I understand that these errors are due to non-availability of pthread and
dl library links. But I don’t know how to declare them, as I am using
someone else` SCons script.

Any help in this regard would be highly appreciated.

FYI, this was successfully compiled using 'make'.

Regards,

Som

--
SOMA SHEKARA S
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://four.pairlist.net/pipermail/scons-users/attachments/20130708/735f2a50/attachment.html


More information about the Scons-users mailing list