About Monkey 2 › Forums › Monkey 2 Programming Help › Sqlite fails to build on linux
This topic contains 1 reply, has 2 voices, and was last updated by abakobo 2 weeks, 1 day ago.
Viewing 2 posts - 1 through 2 (of 2 total)
-
AuthorPosts
-
February 19, 2019 at 11:48 am #16071
the sqlite bananas fails to compile on linux. I’ve done some quick research, and it sounds like a linker flag problem (-ldl?)
Here is the output:
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849Mx2cc version 1.1.15***** Making app '/home/viavacavi/Dropbox/monkey2/bananas/sqlitetest/sqlitetest.monkey2' (linux release x64 gcc) *****Parsing...Semanting...Translating...Compiling...Linking /home/viavacavi/Dropbox/monkey2/bananas/sqlitetest/sqlitetest.products/Linux/Sqlitetest...Build error: System command failed:g++ -s -O3 -o "/home/viavacavi/Dropbox/monkey2/bananas/sqlitetest/sqlitetest.products/Linux/Sqlitetest" "/home/viavacavi/Dropbox/monkey2/bananas/sqlitetest/sqlitetest.buildv1.1.15/linux_release/build/r5b58089e.cpp_r.o" "/home/viavacavi/Dropbox/monkey2/bananas/sqlitetest/sqlitetest.buildv1.1.15/linux_release/build/r73a64ed5.cpp_r.o" "/home/viavacavi/Dropbox/monkey2/bananas/sqlitetest/sqlitetest.buildv1.1.15/linux_release/build/r4d8c9f55.cpp_r.o" "/home/viavacavi/Dropbox/monkey2/bananas/sqlitetest/sqlitetest.buildv1.1.15/linux_release/build/r897528f5.cpp_r.o" "/home/viavacavi/Dropbox/monkey2/bananas/sqlitetest/sqlitetest.buildv1.1.15/linux_release/build/sqlitetestb4f98a14.cpp.o" "/home/viavacavi/Dropbox/monkey2/modules/sqlite/sqlite.buildv1.1.15/linux_release/sqlite.a" "/home/viavacavi/Dropbox/monkey2/modules/libc/libc.buildv1.1.15/linux_release/libc.a" "/home/viavacavi/Dropbox/monkey2/modules/monkey/monkey.buildv1.1.15/linux_release/monkey.a"/usr/bin/ld: /home/viavacavi/Dropbox/monkey2/modules/sqlite/sqlite.buildv1.1.15/linux_release/sqlite.a(sqlite3e31ba218.c.o): in function `pthreadMutexTry':sqlite3.c:(.text+0x44c5): undefined reference to `pthread_mutex_trylock'/usr/bin/ld: /home/viavacavi/Dropbox/monkey2/modules/sqlite/sqlite.buildv1.1.15/linux_release/sqlite.a(sqlite3e31ba218.c.o): in function `vdbeIncrFree':sqlite3.c:(.text+0xb908): undefined reference to `pthread_join'/usr/bin/ld: /home/viavacavi/Dropbox/monkey2/modules/sqlite/sqlite.buildv1.1.15/linux_release/sqlite.a(sqlite3e31ba218.c.o): in function `vdbePmaReaderNext':sqlite3.c:(.text+0xecca): undefined reference to `pthread_join'/usr/bin/ld: sqlite3.c:(.text+0xece8): undefined reference to `pthread_create'/usr/bin/ld: /home/viavacavi/Dropbox/monkey2/modules/sqlite/sqlite.buildv1.1.15/linux_release/sqlite.a(sqlite3e31ba218.c.o): in function `pthreadMutexAlloc':sqlite3.c:(.text+0x120b7): undefined reference to `pthread_mutexattr_init'/usr/bin/ld: sqlite3.c:(.text+0x120c4): undefined reference to `pthread_mutexattr_settype'/usr/bin/ld: sqlite3.c:(.text+0x120d7): undefined reference to `pthread_mutexattr_destroy'/usr/bin/ld: /home/viavacavi/Dropbox/monkey2/modules/sqlite/sqlite.buildv1.1.15/linux_release/sqlite.a(sqlite3e31ba218.c.o): in function `vdbeSorterFlushPMA':sqlite3.c:(.text+0x13be4): undefined reference to `pthread_join'/usr/bin/ld: sqlite3.c:(.text+0x13d18): undefined reference to `pthread_create'/usr/bin/ld: /home/viavacavi/Dropbox/monkey2/modules/sqlite/sqlite.buildv1.1.15/linux_release/sqlite.a(sqlite3e31ba218.c.o): in function `sqlite3VdbeSorterReset':sqlite3.c:(.text+0x164ea): undefined reference to `pthread_join'/usr/bin/ld: /home/viavacavi/Dropbox/monkey2/modules/sqlite/sqlite.buildv1.1.15/linux_release/sqlite.a(sqlite3e31ba218.c.o): in function `vdbeMergeEngineInit':sqlite3.c:(.text+0x1d3a8): undefined reference to `pthread_create'/usr/bin/ld: /home/viavacavi/Dropbox/monkey2/modules/sqlite/sqlite.buildv1.1.15/linux_release/sqlite.a(sqlite3e31ba218.c.o): in function `unixDlError':sqlite3.c:(.text+0x29d8f): undefined reference to `dlerror'/usr/bin/ld: /home/viavacavi/Dropbox/monkey2/modules/sqlite/sqlite.buildv1.1.15/linux_release/sqlite.a(sqlite3e31ba218.c.o): in function `sqlite3VdbeExec':sqlite3.c:(.text+0x84e97): undefined reference to `pthread_join'/usr/bin/ld: sqlite3.c:(.text+0x89da2): undefined reference to `pthread_create'/usr/bin/ld: /home/viavacavi/Dropbox/monkey2/modules/sqlite/sqlite.buildv1.1.15/linux_release/sqlite.a(sqlite3e31ba218.c.o): in function `unixDlClose':sqlite3.c:(.text+0x4a24): undefined reference to `dlclose'/usr/bin/ld: /home/viavacavi/Dropbox/monkey2/modules/sqlite/sqlite.buildv1.1.15/linux_release/sqlite.a(sqlite3e31ba218.c.o): in function `unixDlSym':sqlite3.c:(.text+0x4a37): undefined reference to `dlsym'/usr/bin/ld: /home/viavacavi/Dropbox/monkey2/modules/sqlite/sqlite.buildv1.1.15/linux_release/sqlite.a(sqlite3e31ba218.c.o): in function `unixDlOpen':sqlite3.c:(.text+0x4a49): undefined reference to `dlopen'collect2: error: ld returned 1 exit status***** Fatal mx2cc error *****Internal mx2cc build errorany tips on how I can get this working? I’m in the middle of a huge project and I’m stuck on this spot right now. I’ve filed a bug report, but I understand that things are slow right now with Mark taking on a new job. Any help would be appreciated
Thanks in advance
February 20, 2019 at 1:32 pm #16076Sorry to not be able to help you. I don’t know where the linker flags are.
Mark usually checks for github issues on the weekend. -
AuthorPosts
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.