From nobody@FreeBSD.org  Sun Mar 23 06:50:13 2014
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTPS id 4006CF09
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 23 Mar 2014 06:50:13 +0000 (UTC)
Received: from cgiserv.freebsd.org (cgiserv.freebsd.org [IPv6:2001:1900:2254:206a::50:4])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id 21F047EB
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 23 Mar 2014 06:50:13 +0000 (UTC)
Received: from cgiserv.freebsd.org ([127.0.1.6])
	by cgiserv.freebsd.org (8.14.8/8.14.8) with ESMTP id s2N6oCJs059133
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 23 Mar 2014 06:50:12 GMT
	(envelope-from nobody@cgiserv.freebsd.org)
Received: (from nobody@localhost)
	by cgiserv.freebsd.org (8.14.8/8.14.8/Submit) id s2N6oCwP059129;
	Sun, 23 Mar 2014 06:50:12 GMT
	(envelope-from nobody)
Message-Id: <201403230650.s2N6oCwP059129@cgiserv.freebsd.org>
Date: Sun, 23 Mar 2014 06:50:12 GMT
From: Thomas Schweikle <tps@vr-web.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: ports/krb5 doesn't buld because of various compiler errors
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         187846
>Category:       ports
>Synopsis:       security/krb5 doesn't buld because of various compiler errors
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    cy
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 23 07:00:02 UTC 2014
>Closed-Date:    
>Last-Modified:  Sun Mar 23 15:42:54 UTC 2014
>Originator:     Thomas Schweikle
>Release:        11.0-CURRENT
>Organization:
>Environment:
FreeBSD fbsdc-64.bfs.de 11.0-CURRENT FreeBSD 11.0-CURRENT #14 r263205: Sat Mar 15 19:07:02 CET 2014 root@fbsdc-64.bfs.de:/usr/obj/usr/src/sys/FBSDC-64 amd64
>Description:
cd into /usr/ports/security/sssd, then "make clean build"

gmake[5]: Entering directory `/usr/ports/security/krb5/work/krb5-1.12.1/src/lib/apputils'
cc -DHAVE_CONFIG_H -I../../include -I../../include -DKRB5_DEPRECATED=1 -DKRB5_PRIVATE -I/usr/include -L/usr/lib -L/usr/local/include -O2 -pipe -I/usr/local/include -fno-strict-aliasing -std=gnu99 -Wall -Wcast-align -Wshadow -Wmissing-prototypes -pedantic -Wno-format-zero-length -Woverflow -Wstrict-overflow -Wmissing-format-attribute -Wmissing-prototypes -Wreturn-type -Wmissing-braces -Wparentheses -Wswitch -Wunused-function -Wunused-label -Wunused-variable -Wunused-value -Wunknown-pragmas -Wsign-compare -Wnewline-eof -Werror=uninitialized -Werror=pointer-arith -Werror=declaration-after-statement -Werror-implicit-function-declaration -D_THREAD_SAFE -pthread -c net-server.c
cc: warning: argument unused during compilation: '-L/usr/lib'
cc: warning: argument unused during compilation: '-L/usr/local/include'
In file included from net-server.c:26:
./../include/k5-int.h:638:5: warning: extension used [-Wlanguage-extension-token]
asm volatile ("" : : "g" (ptr), "g" (len));
^
net-server.c:509:14: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
if (sock >= FD_SETSIZE) {
~~~~ ^ ~~~~~~~~~~
net-server.c:586:14: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
if (sock >= FD_SETSIZE) {
~~~~ ^ ~~~~~~~~~~
net-server.c:995:10: error: use of undeclared identifier 'RTM_OLDADD'
case RTM_OLDADD: return "RTM_OLDADD";
^
net-server.c:996:10: error: use of undeclared identifier 'RTM_OLDDEL'
case RTM_OLDDEL: return "RTM_OLDDEL";
^
net-server.c:1029:10: error: use of undeclared identifier 'RTM_OLDADD'
case RTM_OLDADD:
^
net-server.c:1030:10: error: use of undeclared identifier 'RTM_OLDDEL'
case RTM_OLDDEL:
^
net-server.c:1328:27: warning: cast from 'unsigned char *' to 'struct in6_pktinfo *' increases required alignment from 1 to 4
[-Wcast-align]
pktinfo = (struct in6_pktinfo *)CMSG_DATA(cmsgptr);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
net-server.c:1329:18: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in6 *' increases required alignment from 1 to 4
[-Wcast-align]
((struct sockaddr_in6 *)to)->sin6_addr = pktinfo->ipi6_addr;
^~~~~~~~~~~~~~~~~~~~~~~~~
net-server.c:1330:18: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in6 *' increases required alignment from 1 to 4
[-Wcast-align]
((struct sockaddr_in6 *)to)->sin6_family = AF_INET6;
^~~~~~~~~~~~~~~~~~~~~~~~~
net-server.c:1406:37: warning: cast from 'unsigned char *' to 'struct in6_pktinfo *' increases required alignment from 1 to 4
[-Wcast-align]
struct in6_pktinfo *p = (struct in6_pktinfo *)CMSG_DATA(cmsgptr);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
net-server.c:1408:17: warning: cast from 'const struct sockaddr *' to 'const struct sockaddr_in6 *' increases required alignment
from 1 to 4 [-Wcast-align]
(const struct sockaddr_in6 *)from;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
net-server.c:1634:11: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
if (s >= FD_SETSIZE) {
~ ^ ~~~~~~~~~~
net-server.c:1939:19: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
for (s = 0; s < FD_SETSIZE; s++) {
~ ^ ~~~~~~~~~~
10 warnings and 4 errors generated.
gmake[5]: *** [net-server.o] Error 1
gmake[5]: Leaving directory `/usr/ports/security/krb5/work/krb5-1.12.1/src/lib/apputils'
gmake[4]: *** [all-recurse] Error 1
gmake[4]: Leaving directory `/usr/ports/security/krb5/work/krb5-1.12.1/src/lib'
gmake[3]: *** [all-recurse] Error 1
gmake[3]: Leaving directory `/usr/ports/security/krb5/work/krb5-1.12.1/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[2]: stopped in /usr/ports/security/krb5
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/security/krb5
*** Error code 1

Stop.
make: stopped in /usr/ports/security/sssd

was reported before as http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/187789 but closed instead reassigned to ports/krb5.
>How-To-Repeat:
cd /usr/ports
svn up
cd security/sssd
make clean build

or

cd /usr/ports
svn up
cd security/krb5
make clean build

In both cases port security/krb5 doesn't build and exausts various errors. Setting "MAKE_JOBS_UNSAFE=yes" does not lead to successfully building.
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->cy 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sun Mar 23 15:42:53 UTC 2014 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=187846 
>Unformatted:
