Page 1 of 1

undefined symbol

Posted: Wed Jun 08, 2016 9:03 pm
by olan
can not lanuch codelite on Fedora 23
got following error message:
symbol lookup error: /usr/lib/llvm/libclang.so: undefined symbol: LLVMInitializeBPFTarget
I was using rpm packages, any suggestions are welcome

Re: undefined symbol

Posted: Thu Jun 09, 2016 12:19 am
by DavidGH
Hi,

I don't know why you're getting that. Did the CodeLite rpm previously work, but has now stopped? Or have you only just installed it?

Testing my virtualbox 32-bit fc23 install, CodeLite runs OK. After an update it still does.

Do you have a /usr/lib/llvm/libclang.so? If so, do you also have a /usr/lib/llvm/libLLVM-3.7.so, which I would guess is a libclang.so dependency?
Running objdump -TC /usr/lib/llvm/libclang.so shows that LLVMInitializeBPFTarget is undefined. However running the same command on /usr/lib/llvm/libLLVM-3.7.so shows it present and defined there.
If you don't have the above two libs, you'll need to install the appropriate rpm (clang?)

Regards,

David

Re: undefined symbol

Posted: Fri Jun 10, 2016 8:41 pm
by olan
i followed the codelite rpm page to issue following rpm command:
[root@localhost olan]# rpm -Uvh http://repos.codelite.org/rpms-9.1/fedo ... x86_64.rpm
Retrieving http://repos.codelite.org/rpms-9.1/fedo ... x86_64.rpm
error: Failed dependencies:
clang is needed by codelite-9.1-1.fc23.x86_64
libssh is needed by codelite-9.1-1.fc23.x86_64
xterm is needed by codelite-9.1-1.fc23.x86_64

Which version of clang, libssh and xterm rpm I should get?

Re: undefined symbol

Posted: Fri Jun 10, 2016 8:52 pm
by DavidGH
i followed the codelite rpm page to issue following rpm command:
[root@localhost olan]# rpm -Uvh http://repos.codelite.org/rpms-9.1/fedo ... x86_64.rpm
I'm confused. Your previous post had:
symbol lookup error: /usr/lib/llvm/libclang.so: undefined symbol: LLVMInitializeBPFTarget
and /usr/lib/ is where llvm is found in a 32-bit installation (that's why I tested on my 32-bit guest). Yet now you are downloading the 64-bit rpm.
Which is right?
Which version of clang, libssh and xterm rpm I should get?
The ones supplied by fedora 23. I've not tried it today, but
#>dnf install clang libssh xterm
is likely to work.