maintainer-feedback requested: [Bug 221640] sysutils/consolekit2

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Aug 20 06:27:12 UTC 2017


solence at zoho.eu has reassigned Bugzilla Automation <bugzilla at FreeBSD.org>'s
request for maintainer-feedback to gnome at FreeBSD.org:
Bug 221640: sysutils/consolekit2
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=221640



--- Description ---
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.


More information about the freebsd-gnome mailing list