This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: Undefined symbol
- From: Carlo Kok <ck at remobjects dot com>
- To: "libc-help at sourceware dot org" <libc-help at sourceware dot org>
- Date: Wed, 22 Feb 2017 12:25:28 +0100
- Subject: Re: Undefined symbol
- Authentication-results: sourceware.org; auth=none
- References: <f59d4949-2865-2610-1d3b-c3faf486b311@remobjects.com>
On 2017-02-13 08:45, Carlo Kok wrote:
Hi,
When running my own generated library/executable I'm getting:
LD_LIBRARY_PATH=. ./ConsoleApplication347
./ConsoleApplication347: symbol lookup error: ./ConsoleApplication347:
undefined symbol:
(theres nothing after undefined symbol)
How can I figure out what's wrong with these executables?
Full log:
https://gist.github.com/carlokok/1dd510a16e1922271b520f1c00b14656
readelf -s for ConsoleApplication347:
https://gist.github.com/carlokok/0950e4b33e0bf421852b3ac58fc18aea
readelf -s for ClassLibrary22.so:
https://gist.github.com/carlokok/109a03620abb95bdad6479426e3dce11
This turned out to be due to a bad relocation:
0000002755d0 01f900000007 R_X86_64_JUMP_SLO 0000000000274800
pthread_mutex_timedloc + 0
0000002755d8 000000000007 R_X86_64_JUMP_SLO 0 <<<
0000002755e0 022900000007 R_X86_64_JUMP_SLO 0000000000274820 uname + 0
--
Carlo Kok
RemObjects Software