As per subject. I got this issue while building x11/rxvt-unicode
Code:
c++ -I.. -I. -I. -I./../libev -I./../libptytty/src -I./../libecb -DHAVE_CONFIG_H -I/usr/local/include -D_THREAD_SAFE -I/usr/local/include -D_THREAD_SAFE -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include -O2 -pipe -fno-strict-aliasing -w -I/usr/local/include -D_REENTRANT -I/usr/local/include/gdk-pixbuf-2.0 -I/usr/local/include/libpng -I/usr/local/include/glib-2.0 -I/usr/local/include/startup-notification-1.0 -c ptytty_wrapper.C
In file included from ptytty_wrapper.C:11:
./../libptytty/src/logging.C: In function 'void fill_utmpx(utmpx*, bool, int, const char*, const char*, const char*)':
./../libptytty/src/logging.C:267: error: 'id' was not declared in this scope
In file included from ptytty_wrapper.C:13:
./../libptytty/src/ptytty.C: In member function 'virtual bool ptytty_unix::get()':
./../libptytty/src/ptytty.C:386: error: 'ttyslot' was not declared in this scope
*** Error code 1
Stop in /usr/ports/x11/rxvt-unicode/work/rxvt-unicode-9.14/src.
*** Error code 1
Stop in /usr/ports/x11/rxvt-unicode/work/rxvt-unicode-9.14.
*** Error code 1
Stop in /usr/ports/x11/rxvt-unicode.
*** Error code 1
Stop in /usr/ports/x11/rxvt-unicode.