[Bug 2111] New: Android does not properly implement utmp or wtmp.

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Sun Jun 2 02:47:29 EST 2013


https://bugzilla.mindrot.org/show_bug.cgi?id=2111

            Bug ID: 2111
           Summary: Android does not properly implement utmp or wtmp.
           Product: Portable OpenSSH
           Version: 6.2p1
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: minor
          Priority: P5
         Component: Build system
          Assignee: unassigned-bugs at mindrot.org
          Reporter: nathan.osman at gmail.com

Created attachment 2283
  --> https://bugzilla.mindrot.org/attachment.cgi?id=2283&action=edit
Disables utmp and wtmp for the Android platform.

After applying the latest patches for Android support in OpenSSH that
are set for inclusion in 6.3p1, I received the following errors from
gcc:

  loginrec.c: In function 'construct_utmp':
  loginrec.c:665:17: error: 'DEAD_PROCESS' undeclared (first use in
this function)
  loginrec.c:665:17: note: each undeclared identifier is reported only
once for each function it appears in
  loginrec.c: At top level:
  loginrec.c:727:45: warning: 'struct utmpx' declared inside parameter
list [enabled by default]
  loginrec.c:727:45: warning: its scope is only this definition or
declaration, which is probably not what you want [enabled by default]
  ...

This is because Android does not properly implement utmp or wtmp. It
should be disabled when cross-compiling for the platform. I have
attached a patch that disables both of these.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list