Bug 1540300 - [RFE] Support -z defs flag on building
Summary: [RFE] Support -z defs flag on building
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: bind
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
Assignee: Petr Menšík
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-01-30 17:59 UTC by Petr Menšík
Modified: 2020-11-05 13:06 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Petr Menšík 2018-01-30 17:59:00 UTC
Description of problem:
GCC -z defs checks all symbols from shared object can be satisfied from linked libraries. This was for short while enabled by default on Rawhide. It cannot work with bind however, unless --enable-backtrace turned on by default is turned off.

libisc-nosym is built intentionally with backtrace symbol table missing. -z undefs is required for it to compile. But that makes it dependent on very recent GCC 8.0. It would be nice to enable linking check by default.

Automake rule checking support for -z undefs would help here.

Version-Release number of selected component (if applicable):
bind-9.11.2-6.P1.fc28.i686

How reproducible:
always

Steps to Reproduce:
1.
2.
3.

Actual results:
Cannot use
%define _strict_symbol_defs_build 1

Expected results:
Can successfully build bind with
%define _strict_symbol_defs_build 1

Additional info:

[1] https://src.fedoraproject.org/rpms/redhat-rpm-config/blob/master/f/buildflags.md


Note You need to log in before you can comment on or make changes to this bug.