[Pkg-nagios-devel] Bug#849323: Bug#849323: icinga: FTBFS with -Wl, -Bsymbolic-functions

Markus Frosch lazyfrosch at debian.org
Mon Jan 2 09:11:08 UTC 2017

On 25.12.2016 14:55, Bas Couwenberg wrote:
> icinga (1.13.4-1) FTBFS on Ubuntu because they include
> -Wl,-Bsymbolic-functions in LDFLAGS. [0]
> The attached patch strips -Wl,-Bsymbolic-functions from LDFLAGS which
> should resolve this issue.
> [0] https://launchpadlibrarian.net/299806145/buildlog_ubuntu-zesty-amd64.icinga_1.13.4-1_BUILDING.txt.gz

Hey Bas,
this does not seem to have anything todo with this compiler flags.

"-fPIE -pie" vs. "-fPIC"

Which basically comes from hardening:

# DEB_BUILD_MAINT_OPTIONS=hardening=+all dpkg-buildflags
CFLAGS=-g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security

Btw. dropping "-Wl,-Bsymbolic-functions" doesn't help in my tests with xenial. It's not even stripping the flags via DEB_LDFLAGS_STRIP, bc
it seems not to be coming from dpkg-buildflags.

I'm no expert on C, but I think -fPIE -pie is just the wrong method for a module, in our case, we are using symbols of the main process,
which is loading the module. So no linking can occur.

We have to discuss how to fix it properly.

Markus Frosch
markus at lazyfrosch.de / lazyfrosch at debian.org

More information about the Pkg-nagios-devel mailing list