undefined symbol

CodeLite installation/troubleshooting forum
olan
CodeLite Curious
Posts: 2
Joined: Wed Jun 08, 2016 8:58 pm
Genuine User: Yes
IDE Question: c++
Contact:

undefined symbol

Post 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
DavidGH
CodeLite Plugin
Posts: 819
Joined: Wed Sep 03, 2008 7:26 pm
Contact:

Re: undefined symbol

Post 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
olan
CodeLite Curious
Posts: 2
Joined: Wed Jun 08, 2016 8:58 pm
Genuine User: Yes
IDE Question: c++
Contact:

Re: undefined symbol

Post 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?
DavidGH
CodeLite Plugin
Posts: 819
Joined: Wed Sep 03, 2008 7:26 pm
Contact:

Re: undefined symbol

Post 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.
Post Reply