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

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D221640

            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@FreeBSD.org
          Reporter: solence@zoho.eu
                CC: freebsd-powerpc@FreeBSD.org
                CC: freebsd-powerpc@FreeBSD.org
          Assignee: gnome@FreeBSD.org
             Flags: maintainer-feedback?(gnome@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 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.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



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