Page 1 of 1

symbol lookup error

PostPosted: Mon Aug 01, 2011 20:23
by TForsman
Everything went fine to compile minetest, but when trying to run it, i get:

minetest: symbol lookup error: minetest: undefined symbol: _ZN6JMutexC1Ev


a bit of strace minetest:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all

arch_prctl(ARCH_SET_FS, 0x7fb868fa6740) = 0
mprotect(0x7fb8637c5000, 4096, PROT_READ) = 0
mprotect(0x7fb8639cd000, 4096, PROT_READ) = 0
mprotect(0x7fb865da3000, 16384, PROT_READ) = 0
mprotect(0x7fb866245000, 4096, PROT_READ) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fb868fa5000
mprotect(0x7fb86652b000, 28672, PROT_READ) = 0
mprotect(0x7fb866e04000, 4096, PROT_READ) = 0
mprotect(0x7fb868fe6000, 4096, PROT_READ) = 0
munmap(0x7fb868fb3000, 201320)          = 0
set_tid_address(0x7fb868fa6a10)         = 11592
set_robust_list(0x7fb868fa6a20, 0x18)   = 0
futex(0x7fff3f423abc, FUTEX_WAKE_PRIVATE, 1) = 0
futex(0x7fff3f423abc, 0x189 /* FUTEX_??? */, 1, NULL, 7fb868fa6740) = -1 EAGAIN (Resource temporarily unavailable)
rt_sigaction(SIGRTMIN, {0x7fb866bf3a90, [], SA_RESTORER|SA_SIGINFO, 0x7fb866bfd490}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0x7fb866bf3b20, [], SA_RESTORER|SA_RESTART|SA_SIGINFO, 0x7fb866bfd490}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0
brk(0)                                  = 0x21e1000
brk(0x2202000)                          = 0x2202000
futex(0x7fb8637c60ec, FUTEX_WAKE_PRIVATE, 2147483647) = 0
mmap(NULL, 233472, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fb868f6c000
getpid()                                = 11592
getpid()                                = 11592
getpid()                                = 11592
futex(0x7fb8680fe00c, FUTEX_WAKE_PRIVATE, 2147483647) = 0
open("/proc/self/status", O_RDONLY)     = 3
lseek(3, 0, SEEK_SET)                   = 0
read(3, "Name:\tminetest\nState:\tR (running)"..., 256) = 256
close(3)                                = 0
open("/proc/self/status", O_RDONLY)     = 3
lseek(3, 0, SEEK_SET)                   = 0
read(3, "Name:\tminetest\nState:\tR (running)"..., 256) = 256
close(3)                                = 0
futex(0x7fb866534ca8, FUTEX_WAKE_PRIVATE, 2147483647) = 0
writev(2, [{"minetest"..., 8}, {": "..., 2}, {"symbol lookup error"..., 19}, {": "..., 2}, {"minetest"..., 8}, {": "..., 2}, {"undefined symbol: _ZN6JMutexC1Ev"..., 32}, {""..., 0}, {""..., 0}, {"\n"..., 1}], 10minetest: symbol lookup error: minetest: undefined symbol: _ZN6JMutexC1Ev
) = 74
exit_group(127)                         = ?


Any pointers would be nice, that might causing this issue

PostPosted: Sat Feb 11, 2012 23:24
by TForsman
Tested again to build it. Still same issue from commit:

commit 993821a92448bf3573ac56dbfe67ee4b54172d06
Author: Perttu Ahola <celeron55@gmail.com>
Date: Fri Feb 3 14:50:49 2012 +0200

builds fine, still cant run it.

PostPosted: Sun Feb 12, 2012 04:58
by Menche
TForsman wrote:undefined symbol: _ZN6JMutexC1Ev

Is jthread installed, and has the game found it? All I could make sense of that is that it might have to do with jmutex, which is something from the jthread library.

PostPosted: Sun Feb 12, 2012 08:36
by TForsman
Thank you, that was the problem. used jthread 1.3.0 and setup with cmake. reverted to 1.2.1 and use a normal configure, make, makeinstall and now minetest works.

Thank you for the pointer, appriciated alot. Possible now to make a package in Foresight Linux for all users :)