bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug libctf/27360] libctf.so.0: undefined symbol: bsearch_r


From: nick.alcock at oracle dot com
Subject: [Bug libctf/27360] libctf.so.0: undefined symbol: bsearch_r
Date: Fri, 09 Apr 2021 15:17:47 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=27360

--- Comment #12 from Nick Alcock <nick.alcock at oracle dot com> ---
In particular, the relink line I see is:

cd /home/oranix/oracle/private/binutils-gdb/foo/libctf; /bin/sh
/home/oranix/oracle/private/binutils-gdb/foo/libctf/libtool  --tag CC
--mode=relink gcc -std=gnu99 -Wall -W -Wall -Wno-narrowing -Wwrite-strings
-Wmissing-format-attribute -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -pedantic -Wno-long-long -I../../libctf/../zlib
-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -version-info 0:0:0
-Wl,--version-script=../../libctf/libctf.ver
-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -o libctf.la -rpath
/usr/local/lib libctf_la-ctf-archive.lo libctf_la-ctf-dump.lo
libctf_la-ctf-create.lo libctf_la-ctf-decl.lo libctf_la-ctf-error.lo
libctf_la-ctf-hash.lo libctf_la-ctf-labels.lo libctf_la-ctf-dedup.lo
libctf_la-ctf-link.lo libctf_la-ctf-lookup.lo libctf_la-ctf-open.lo
libctf_la-ctf-serialize.lo libctf_la-ctf-sha1.lo libctf_la-ctf-string.lo
libctf_la-ctf-subr.lo libctf_la-ctf-types.lo libctf_la-ctf-util.lo
libctf_la-ctf-open-bfd.lo ../bfd/libbfd.la
-L/home/oranix/oracle/private/binutils-gdb/foo/libctf/../libiberty/pic -liberty
-L./../zlib -lz -ldl

Note that -L is used to point to the in-tree PIC libiberty (which is always an
.a file) right before -liberty is pulled in, so we don't end up trying to look
at /usr/local/lib/libiberty.a or something (which might not contain the symbols
we need).

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]