FTBFS: _FORTIFY_SOURCE redefined

Bug #2058222 reported by Shengjing Zhu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kronosnet (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

https://launchpad.net/ubuntu/+source/kronosnet/1.28-2

https://launchpadlibrarian.net/718935265/buildlog_ubuntu-noble-amd64.kronosnet_1.28-2_BUILDING.txt.gz

Making all in .
make[4]: Entering directory '/<<PKGBUILDDIR>>/libnozzle'
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=0 -O3 -ggdb3 -Werror -Wall -Wextra -fPIC -DPIC -pie -fstack-protector-strong -fexceptions -D_GLIBCXX_ASSERTIONS -Wl,-z,now -fstack-clash-protection -fcf-protection=full -mstackrealign -D_FORTIFY_SOURCE=3 -Wno-unused-parameter -pthread -I/usr/include/libnl3 -I/usr/include/libnl3 -g -O2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fdebug-prefix-map=/<<PKGBUILDDIR>>=/usr/src/kronosnet-1.28-2 -c -o libnozzle_la-libnozzle.lo `test -f 'libnozzle.c' || echo './'`libnozzle.c
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=0 -O3 -ggdb3 -Werror -Wall -Wextra -fPIC -DPIC -pie -fstack-protector-strong -fexceptions -D_GLIBCXX_ASSERTIONS -Wl,-z,now -fstack-clash-protection -fcf-protection=full -mstackrealign -D_FORTIFY_SOURCE=3 -Wno-unused-parameter -pthread -I/usr/include/libnl3 -I/usr/include/libnl3 -g -O2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fdebug-prefix-map=/<<PKGBUILDDIR>>=/usr/src/kronosnet-1.28-2 -c -o libnozzle_la-internals.lo `test -f 'internals.c' || echo './'`internals.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=0 -O3 -ggdb3 -Werror -Wall -Wextra -fPIC -DPIC -fstack-protector-strong -fexceptions -D_GLIBCXX_ASSERTIONS -Wl,-z,now -fstack-clash-protection -fcf-protection=full -mstackrealign -D_FORTIFY_SOURCE=3 -Wno-unused-parameter -pthread -I/usr/include/libnl3 -I/usr/include/libnl3 -g -O2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fdebug-prefix-map=/<<PKGBUILDDIR>>=/usr/src/kronosnet-1.28-2 -c internals.c -fPIC -DPIC -o .libs/libnozzle_la-internals.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=0 -O3 -ggdb3 -Werror -Wall -Wextra -fPIC -DPIC -fstack-protector-strong -fexceptions -D_GLIBCXX_ASSERTIONS -Wl,-z,now -fstack-clash-protection -fcf-protection=full -mstackrealign -D_FORTIFY_SOURCE=3 -Wno-unused-parameter -pthread -I/usr/include/libnl3 -I/usr/include/libnl3 -g -O2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fdebug-prefix-map=/<<PKGBUILDDIR>>=/usr/src/kronosnet-1.28-2 -c libnozzle.c -fPIC -DPIC -o .libs/libnozzle_la-libnozzle.o
<command-line>: error: "_FORTIFY_SOURCE" redefined [-Werror]
<built-in>: note: this is the location of the previous definition
<command-line>: error: "_FORTIFY_SOURCE" redefined [-Werror]
<command-line>: note: this is the location of the previous definition
<command-line>: error: "_FORTIFY_SOURCE" redefined [-Werror]
<built-in>: note: this is the location of the previous definition
<command-line>: error: "_FORTIFY_SOURCE" redefined [-Werror]
<command-line>: note: this is the location of the previous definition
cc1: all warnings being treated as errors
make[4]: *** [Makefile:614: libnozzle_la-internals.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
cc1: all warnings being treated as errors
make[4]: *** [Makefile:607: libnozzle_la-libnozzle.lo] Error 1
make[4]: Leaving directory '/<<PKGBUILDDIR>>/libnozzle'
make[3]: *** [Makefile:671: all-recursive] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/libnozzle'
make[2]: *** [Makefile:563: all-recursive] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [Makefile:473: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j4 returned exit code 2
make: *** [debian/rules:11: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2

Related branches

Shengjing Zhu (zhsj)
tags: added: ftbfs update-excuse
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package kronosnet - 1.28-2ubuntu1

---------------
kronosnet (1.28-2ubuntu1) noble; urgency=medium

  * d/rules: don't disable fortify feature. (LP: #2058222)
    It adds -D_FORTIFY_SOURCE=0 in Ubuntu and conflicts upstream -D_FORTIFY_SOURCE=3
    option.

 -- Shengjing Zhu <email address hidden> Thu, 14 Mar 2024 17:23:08 +0800

Changed in kronosnet (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.