Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 596496 - net-dns/libidn fails to build with -Werror=format-security
Summary: net-dns/libidn fails to build with -Werror=format-security
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
Depends on:
Blocks: fortify-source
  Show dependency tree
Reported: 2016-10-08 00:33 UTC by René Rhéaume
Modified: 2016-10-15 11:59 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---

libidn-1.33-format-security.patch (libidn-1.33-format-security.patch,3.44 KB, patch)
2016-10-08 00:35 UTC, René Rhéaume
Details | Diff
libidn-1.33.ebuild.patch (libidn-1.33.ebuild.patch,343 bytes, patch)
2016-10-08 00:42 UTC, René Rhéaume
Details | Diff
emerge --info output (emerge-info.txt,6.14 KB, text/plain)
2016-10-08 00:43 UTC, René Rhéaume

Note You need to log in before you can comment on or make changes to this bug.
Description René Rhéaume 2016-10-08 00:33:44 UTC
libidn does not compile when -Werror=format-security is in use. The fix is easy to make. It will soon be attached.

Reproducible: Always

Steps to Reproduce:
1. echo 'CFLAGS="$CFLAGS -Wformat -Werror=format-security' >> /etc/portage/make.conf
2. emerge -1 net-libs/libidn
Actual Results:  
ERROR: compile
ERROR: net-dns/libidn-1.33::gentoo failed (compile phase):
  emake failed

Expected Results:  
net-libs/libidn installed or updated on system
Comment 1 René Rhéaume 2016-10-08 00:35:08 UTC
Created attachment 449510 [details, diff]
Comment 2 René Rhéaume 2016-10-08 00:42:36 UTC
Created attachment 449512 [details, diff]
Comment 3 René Rhéaume 2016-10-08 00:43:30 UTC
Created attachment 449514 [details]
emerge --info output
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2016-10-15 11:57:47 UTC
(In reply to René Rhéaume from comment #0)
> libidn does not compile when -Werror=format-security is in use.

Your mistake is to set -Werror=format-security and expect things to compile.
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2016-10-15 11:59:27 UTC
Please send that patch upstream.