Bug 187846 - security/krb5 doesn't buld because of various compiler errors
Summary: security/krb5 doesn't buld because of various compiler errors
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Cy Schubert
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-23 07:00 UTC by Thomas Schweikle
Modified: 2015-06-01 06:31 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Schweikle 2014-03-23 07:00:02 UTC
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.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2014-03-23 15:42:53 UTC
Responsible Changed
From-To: freebsd-ports-bugs->cy

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Xin LI freebsd_committer freebsd_triage 2015-06-01 06:31:35 UTC
I think this is the problem that was addressed in r351495 so close this as resolved (as it's pretty old and there were many updates after that).  Please do let us know if that's not the case and reopen, thanks!