Date: Thu, 12 Feb 2015 07:51:20 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 197561] security/krb5: Due to use of -Werror, krb5 does not build with gcc-5 Message-ID: <bug-197561-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=197561 Bug ID: 197561 Summary: security/krb5: Due to use of -Werror, krb5 does not build with gcc-5 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: cy@FreeBSD.org Reporter: marino@FreeBSD.org Assignee: cy@FreeBSD.org Flags: maintainer-feedback?(cy@FreeBSD.org) GCC 5, like each release of GCC, comes with new error detections and warnings. This is exactly why building ports with -Werror is heavily discourages (in fact there is a standard blanket to remove these when found). In the case of krb5, it fails here: cc_file.c: In function 'fcc_next_cred': cc_file.c:368:9: error: 'maxsize' may be used uninitialized in this function [-Werror=maybe-uninitialized] ret = load_data(context, id, maxsize, buf); ^ cc_file.c:1091:12: note: 'maxsize' was declared here size_t maxsize; ^ cc_file.c: In function 'read_principal': cc_file.c:414:9: error: 'maxsize' may be used uninitialized in this function [-Werror=maybe-uninitialized] ret = load_principal(context, id, maxsize, &buf); ^ cc1: some warnings being treated as errors Makefile:779: recipe for target 'cc_file.so' failed gmake[4]: *** [cc_file.so] Error 1 gmake[4]: Leaving directory '/wrkdirs/security/krb5/work/krb5-1.13/src/lib/krb5/ccache' Makefile:1107: recipe for target 'all-recurse' failed gmake[3]: *** [all-recurse] Error 1 gmake[3]: Leaving directory '/wrkdirs/security/krb5/work/krb5-1.13/src/lib/krb5' Makefile:951: recipe for target 'all-recurse' failed gmake[2]: *** [all-recurse] Error 1 gmake[2]: Leaving directory '/wrkdirs/security/krb5/work/krb5-1.13/src/lib' Makefile:1526: recipe for target 'all-recurse' failed gmake[1]: *** [all-recurse] Error 1 gmake[1]: Leaving directory '/wrkdirs/security/krb5/work/krb5-1.13/src' ===> Compilation failed unexpectedly. Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to the maintainer. *** Error code 1 Stop. make: stopped in /usr/ports/security/krb5 => Cleaning up wrkdir ===> Cleaning for krb5-1.13_1 At least 103 other ports depend on krb5 directly or indirectly on DragonFly (there's no kerberos in base) proposed fix: 1) just remove -Werror from cflags 2) resolved the warning above. --- Comment #1 from Bugzilla Automation <bugzilla@FreeBSD.org> --- Auto-assigned to maintainer cy@FreeBSD.org -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-197561-13>