[Bug 221640] sysutils/consolekit2
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun Aug 20 06:27:14 UTC 2017
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=221640
Bug ID: 221640
Summary: sysutils/consolekit2
Product: Ports & Packages
Version: Latest
Hardware: powerpc
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Individual Port(s)
Assignee: gnome at FreeBSD.org
Reporter: solence at zoho.eu
CC: freebsd-powerpc at FreeBSD.org
CC: freebsd-powerpc at FreeBSD.org
Assignee: gnome at FreeBSD.org
Flags: maintainer-feedback?(gnome at FreeBSD.org)
Building the port on PowerPC fails with two compile errors:
ck-sysdeps-unix.c: In function 'ck_get_socket_peer_credentials':
ck-sysdeps-unix.c:176: error: 'for' loop initial declaration used outside C99
mode
gmake[5]: *** [Makefile:1276: ck-sysdeps-unix.lo] Error 1
ck-get-x11-display-device.c: In function 'get_tty_for_pid':
ck-get-x11-display-device.c:87: error: 'for' loop initial declaration used
outside C99 mode
gmake[4]: *** [Makefile:996: ck-get-x11-display-device.o] Error 1
In both files, as the errors describe, is a for-loop used with an inline
declaration of the iteration variable i:
for (int i = 0; i < cnt; i++) {
This should either be fixed to:
int i;
for (i = 0; i < cnt; i++) {
or the appropriate compiler flags added, so this style is allowed.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the freebsd-ppc
mailing list