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: allan at archlinux dot org
Subject: [Bug libctf/27360] libctf.so.0: undefined symbol: bsearch_r
Date: Wed, 10 Mar 2021 01:44:04 +0000

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

--- Comment #6 from Allan McRae <allan at archlinux dot org> ---
I can still replicate on git master (160fe1933736c123e15199080874fcab8b9ecc65).

I build with the following configuration:

CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt"
CXXFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt"
LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now"

  ../binutils-gdb/configure \
    --prefix=/usr \
    --with-lib-path=/usr/lib:/usr/local/lib \
    --with-bugurl=https://bugs.archlinux.org/ \
    --enable-cet \
    --enable-deterministic-archives \
    --enable-gold \
    --enable-ld=default \
    --enable-lto \
    --enable-plugins \
    --enable-relro \
    --enable-shared \
    --enable-targets=x86_64-pep \
    --enable-threads \
    --disable-gdb \
    --disable-werror \
    --with-debuginfod \
    --with-pic \
    --with-system-zlib


Removing "--enable-shared" from configre, or "-fno-plt" from CFLAGS or
"-Wl,-z,now" from LDFLAGS does not give this error.

Not ld in the build tree is fine.  It is the installed file (which is relinked
during "make install") that shows the issue.

-- 
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]