Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Aug 2017 06:27:12 +0000
From:      bugzilla-noreply@freebsd.org
To:        gnome@FreeBSD.org
Subject:   maintainer-feedback requested: [Bug 221640] sysutils/consolekit2
Message-ID:  <bug-221640-6497-yFJLt3o9WO@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-221640-6497@https.bugs.freebsd.org/bugzilla/>
References:  <bug-221640-6497@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
solence@zoho.eu has reassigned Bugzilla Automation <bugzilla@FreeBSD.org>'s
request for maintainer-feedback to gnome@FreeBSD.org:
Bug 221640: sysutils/consolekit2
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D221640



--- 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 C=
99
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 =3D 0; i < cnt; i++) {

This should either be fixed to:

int i;
for (i =3D 0; i < cnt; i++) {

or the appropriate compiler flags added, so this style is allowed.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-221640-6497-yFJLt3o9WO>