ports/187846: ports/krb5 doesn't buld because of various compiler errors

Thomas Schweikle tps at vr-web.de
Sun Mar 23 07:00:03 UTC 2014


>Number:         187846
>Category:       ports
>Synopsis:       ports/krb5 doesn't buld because of various compiler errors
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>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:
>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 at 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:
>Unformatted:


More information about the freebsd-ports-bugs mailing list