+ case "${usergroup_phase}" in
+ local run_cmd
+ run_cmd=run_su
+ shift
+ run_su /usr/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/latd-1.21/work.log
+ su pbulk -c '"$@"' make /usr/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/latd-1.21/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
WARNING: [license.mk] Every package should define a LICENSE.
===> Building for latd-1.21
--- llogin.o ---
--- utils.o ---
--- llogin.o ---
if c++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"latd\" -DVERSION=\"1.21\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_PTY_H=1 -DHAVE_TERMIOS_H=1 -DHAVE_MCHECK_H=1 -DHAVE_NETINET_ETHER_H=1 -DHAVE_NET_ETHERNET_H=1 -DHAVE_FEATURES_H=1 -DHAVE_OPENPTY=1 -DLOGIN_BIN=\"/bin/login\" -DLATCP_SOCKNAME=\"/var/run/latcp\" -DLLOGIN_SOCKNAME=\"/var/run/latlogin\" -I. -I. -DLATD_CONF=\"/usr/pkg/etc/latd.conf\" -DSBINDIR=\"/usr/pkg/sbin\" -DBINDIR=\"/usr/pkg/bin\"   -DPREFIX="\"/usr/pkg\"" -fno-rtti -fno-exceptions -Wstrict-prototypes -Wno-unused -pipe -O2 -DENABLE_DEFAULT_SERVICE -W -MT llogin.o -MD -MP -MF ".deps/llogin.Tpo"  -c -o llogin.o `test -f 'llogin.cc' || echo './'`llogin.cc;  then mv -f ".deps/llogin.Tpo" ".deps/llogin.Po";  else rm -f ".deps/llogin.Tpo"; exit 1;  fi
--- utils.o ---
if c++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"latd\" -DVERSION=\"1.21\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_PTY_H=1 -DHAVE_TERMIOS_H=1 -DHAVE_MCHECK_H=1 -DHAVE_NETINET_ETHER_H=1 -DHAVE_NET_ETHERNET_H=1 -DHAVE_FEATURES_H=1 -DHAVE_OPENPTY=1 -DLOGIN_BIN=\"/bin/login\" -DLATCP_SOCKNAME=\"/var/run/latcp\" -DLLOGIN_SOCKNAME=\"/var/run/latlogin\" -I. -I. -DLATD_CONF=\"/usr/pkg/etc/latd.conf\" -DSBINDIR=\"/usr/pkg/sbin\" -DBINDIR=\"/usr/pkg/bin\"   -DPREFIX="\"/usr/pkg\"" -fno-rtti -fno-exceptions -Wstrict-prototypes -Wno-unused -pipe -O2 -DENABLE_DEFAULT_SERVICE -W -MT utils.o -MD -MP -MF ".deps/utils.Tpo"  -c -o utils.o `test -f 'utils.cc' || echo './'`utils.cc;  then mv -f ".deps/utils.Tpo" ".deps/utils.Po";  else rm -f ".deps/utils.Tpo"; exit 1;  fi
--- llogin.o ---
cc1plus: warning: command-line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
--- utils.o ---
cc1plus: warning: command-line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
--- llogin.o ---
In file included from /usr/include/c++/11/backward/strstream:50,
                 from llogin.cc:52:
/usr/include/c++/11/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. [-Wcpp]
   32 | #warning \
      |  ^~~~~~~
--- main.o ---
if c++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"latd\" -DVERSION=\"1.21\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_PTY_H=1 -DHAVE_TERMIOS_H=1 -DHAVE_MCHECK_H=1 -DHAVE_NETINET_ETHER_H=1 -DHAVE_NET_ETHERNET_H=1 -DHAVE_FEATURES_H=1 -DHAVE_OPENPTY=1 -DLOGIN_BIN=\"/bin/login\" -DLATCP_SOCKNAME=\"/var/run/latcp\" -DLLOGIN_SOCKNAME=\"/var/run/latlogin\" -I. -I. -DLATD_CONF=\"/usr/pkg/etc/latd.conf\" -DSBINDIR=\"/usr/pkg/sbin\" -DBINDIR=\"/usr/pkg/bin\"   -DPREFIX="\"/usr/pkg\"" -fno-rtti -fno-exceptions -Wstrict-prototypes -Wno-unused -pipe -O2 -DENABLE_DEFAULT_SERVICE -W -MT main.o -MD -MP -MF ".deps/main.Tpo"  -c -o main.o `test -f 'main.cc' || echo './'`main.cc;  then mv -f ".deps/main.Tpo" ".deps/main.Po";  else rm -f ".deps/main.Tpo"; exit 1;  fi
cc1plus: warning: command-line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
In file included from /usr/include/c++/11/backward/strstream:50,
                 from main.cc:44:
/usr/include/c++/11/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. [-Wcpp]
   32 | #warning \
      |  ^~~~~~~
--- llogin.o ---
In file included from llogin.cc:57:
lat.h:34:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   34 |     unsigned char  cmd             __attribute__ ((packed));
      |                                                           ^
lat.h:35:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   35 |     unsigned char  num_slots       __attribute__ ((packed));
      |                                                           ^
lat.h:38:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   38 |     unsigned char  sequence_number __attribute__ ((packed));
      |                                                           ^
lat.h:39:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   39 |     unsigned char  ack_number      __attribute__ ((packed));
      |                                                           ^
lat.h:45:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   45 |   unsigned char  cmd             __attribute__ ((packed));
      |                                                         ^
lat.h:46:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   46 |   unsigned char  dummy           __attribute__ ((packed));
      |                                                         ^
lat.h:47:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   47 |   unsigned char  hiver           __attribute__ ((packed)); // Highest protocol version
      |                                                         ^
lat.h:48:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   48 |   unsigned char  lover           __attribute__ ((packed)); // Lowest protocol version
      |                                                         ^
lat.h:49:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   49 |   unsigned char  latver          __attribute__ ((packed)); // LAT version No. (5)
      |                                                         ^
lat.h:50:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   50 |   unsigned char  latver_eco      __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                         ^
lat.h:59:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   59 |     unsigned char  cmd             __attribute__ ((packed));
      |                                                           ^
lat.h:60:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   60 |     unsigned char  dummy           __attribute__ ((packed));
      |                                                           ^
lat.h:61:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   61 |     unsigned char  hiver           __attribute__ ((packed)); // Highest protocol version
      |                                                           ^
lat.h:62:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   62 |     unsigned char  lover           __attribute__ ((packed)); // Lowest protocol version
      |                                                           ^
lat.h:63:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   63 |     unsigned char  latver          __attribute__ ((packed)); // LAT version No. (5)
      |                                                           ^
lat.h:64:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   64 |     unsigned char  latver_eco      __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                           ^
lat.h:75:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   75 |   unsigned char  cmd             __attribute__ ((packed)); // always 0x28
      |                                                         ^
lat.h:76:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   76 |   unsigned char  circuit_timer   __attribute__ ((packed)); // in 10s milliseconds
      |                                                         ^
lat.h:77:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   77 |   unsigned char  hiver           __attribute__ ((packed)); // Highest protocol version
      |                                                         ^
lat.h:78:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   78 |   unsigned char  lover           __attribute__ ((packed)); // Lowest protocol version
      |                                                         ^
lat.h:79:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   79 |   unsigned char  latver          __attribute__ ((packed)); // LAT version No. (5)
      |                                                         ^
lat.h:80:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   80 |   unsigned char  latver_eco      __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                         ^
lat.h:81:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   81 |   unsigned char  incarnation     __attribute__ ((packed)); // Message incarnation
      |                                                         ^
lat.h:82:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   82 |   unsigned char  flags           __attribute__ ((packed)); // Change flags
      |                                                         ^
lat.h:84:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   84 |   unsigned char  multicast_timer __attribute__ ((packed)); // Multicast timer (seconds)
      |                                                         ^
lat.h:85:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   85 |   unsigned char  node_status     __attribute__ ((packed)); // 2 (accepting connections)
      |                                                         ^
lat.h:86:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   86 |   unsigned char  group_length    __attribute__ ((packed));
      |                                                         ^
lat.h:99:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   99 |     unsigned char  latver      __attribute__ ((packed)); // LAT version No. (5)
      |                                                       ^
lat.h:100:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  100 |     unsigned char  latver_eco  __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                       ^
lat.h:101:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  101 |     unsigned char  maxsessions __attribute__ ((packed));
      |                                                       ^
lat.h:102:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  102 |     unsigned char  exqueued    __attribute__ ((packed)); // Extra data link buffer queued
      |                                                       ^
lat.h:103:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  103 |     unsigned char  circtimer   __attribute__ ((packed)); // in 10s of milliseconds
      |                                                       ^
lat.h:104:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  104 |     unsigned char  keepalive   __attribute__ ((packed)); // in seconds
      |                                                       ^
lat.h:106:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  106 |     unsigned char  prodtype    __attribute__ ((packed));
      |                                                       ^
lat.h:107:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  107 |     unsigned char  prodver     __attribute__ ((packed));
      |                                                       ^
lat.h:119:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  119 |     unsigned char  latver      __attribute__ ((packed)); // LAT version No. (5)
      |                                                       ^
lat.h:120:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  120 |     unsigned char  latver_eco  __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                       ^
lat.h:121:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  121 |     unsigned char  maxsessions __attribute__ ((packed));
      |                                                       ^
lat.h:122:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  122 |     unsigned char  exqueued    __attribute__ ((packed));
      |                                                       ^
lat.h:123:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  123 |     unsigned char  circtimer   __attribute__ ((packed));
      |                                                       ^
lat.h:124:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  124 |     unsigned char  keepalive   __attribute__ ((packed));
      |                                                       ^
lat.h:126:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  126 |     unsigned char  prodtype    __attribute__ ((packed));
      |                                                       ^
lat.h:127:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  127 |     unsigned char  prodver     __attribute__ ((packed));
      |                                                       ^
lat.h:139:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  139 |     unsigned char local_session  __attribute__ ((packed));
      |                                                         ^
lat.h:140:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  140 |     unsigned char remote_session __attribute__ ((packed));
      |                                                         ^
lat.h:141:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  141 |     unsigned char length         __attribute__ ((packed));
      |                                                         ^
lat.h:142:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  142 |     unsigned char cmd            __attribute__ ((packed));
      |                                                         ^
lat.h:148:48: warning: 'packed' attribute ignored for field of type 'LAT_Header' [-Wattributes]
  148 |     LAT_Header  header  __attribute__ ((packed));
      |                                                ^
lat.h:149:48: warning: 'packed' attribute ignored for field of type 'LAT_SlotCmd' [-Wattributes]
  149 |     LAT_SlotCmd slot    __attribute__ ((packed));
      |                                                ^
lat.h:154:56: warning: 'packed' attribute ignored for field of type 'LAT_Header' [-Wattributes]
  154 |     LAT_Header    header        __attribute__ ((packed));
      |                                                        ^
lat.h:155:56: warning: 'packed' attribute ignored for field of type 'LAT_SlotCmd' [-Wattributes]
  155 |     LAT_SlotCmd   slot          __attribute__ ((packed));
      |                                                        ^
lat.h:156:56: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  156 |     unsigned char serviceclass  __attribute__ ((packed));
      |                                                        ^
lat.h:157:56: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  157 |     unsigned char attslotsize   __attribute__ ((packed));
      |                                                        ^
lat.h:158:56: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  158 |     unsigned char dataslotsize  __attribute__ ((packed));
      |                                                        ^
lat.h:163:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  163 |     unsigned char  cmd           __attribute__ ((packed));
      |                                                         ^
lat.h:164:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  164 |     unsigned char  format        __attribute__ ((packed));
      |                                                         ^
lat.h:165:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  165 |     unsigned char  hiver         __attribute__ ((packed)); // Highest protocol version
      |                                                         ^
lat.h:166:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  166 |     unsigned char  lover         __attribute__ ((packed)); // Lowest protocol version
      |                                                         ^
lat.h:167:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  167 |     unsigned char  latver        __attribute__ ((packed)); // LAT version No. (5)
      |                                                         ^
lat.h:168:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  168 |     unsigned char  latver_eco    __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                         ^
lat.h:172:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  172 |     unsigned char  opcode        __attribute__ ((packed));
      |                                                         ^
lat.h:173:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  173 |     unsigned char  modifier      __attribute__ ((packed));
      |                                                         ^
lat.h:200:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  200 |     unsigned char  cmd           __attribute__ ((packed));
      |                                                         ^
lat.h:201:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  201 |     unsigned char  format        __attribute__ ((packed));
      |                                                         ^
lat.h:202:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  202 |     unsigned char  hiver         __attribute__ ((packed)); // Highest protocol version
      |                                                         ^
lat.h:203:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  203 |     unsigned char  lover         __attribute__ ((packed)); // Lowest protocol version
      |                                                         ^
lat.h:204:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  204 |     unsigned char  latver        __attribute__ ((packed)); // LAT version No. (5)
      |                                                         ^
lat.h:205:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  205 |     unsigned char  latver_eco    __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                         ^
lat.h:208:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  208 |     unsigned char  entry_count   __attribute__ ((packed));
      |                                                         ^
llogin.cc: In function 'bool open_socket(bool)':
<command-line>: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
llogin.cc:339:43: note: in expansion of macro 'VERSION'
  339 |     send_msg(latcp_socket, LATCP_VERSION, VERSION, strlen(VERSION)+1);
      |                                           ^~~~~~~
llogin.cc: In function 'int terminal(int, int, int, int, int, char*)':
llogin.cc:435:18: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)' declared with attribute 'warn_unused_result' [-Wunused-result]
  435 |             write(latfd, inbuf, len);
      |             ~~~~~^~~~~~~~~~~~~~~~~~~
llogin.cc:454:22: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)' declared with attribute 'warn_unused_result' [-Wunused-result]
  454 |                 write(termfd, inbuf, len);
      |                 ~~~~~^~~~~~~~~~~~~~~~~~~~
--- circuit.o ---
if c++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"latd\" -DVERSION=\"1.21\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_PTY_H=1 -DHAVE_TERMIOS_H=1 -DHAVE_MCHECK_H=1 -DHAVE_NETINET_ETHER_H=1 -DHAVE_NET_ETHERNET_H=1 -DHAVE_FEATURES_H=1 -DHAVE_OPENPTY=1 -DLOGIN_BIN=\"/bin/login\" -DLATCP_SOCKNAME=\"/var/run/latcp\" -DLLOGIN_SOCKNAME=\"/var/run/latlogin\" -I. -I. -DLATD_CONF=\"/usr/pkg/etc/latd.conf\" -DSBINDIR=\"/usr/pkg/sbin\" -DBINDIR=\"/usr/pkg/bin\"   -DPREFIX="\"/usr/pkg\"" -fno-rtti -fno-exceptions -Wstrict-prototypes -Wno-unused -pipe -O2 -DENABLE_DEFAULT_SERVICE -W -MT circuit.o -MD -MP -MF ".deps/circuit.Tpo"  -c -o circuit.o `test -f 'circuit.cc' || echo './'`circuit.cc;  then mv -f ".deps/circuit.Tpo" ".deps/circuit.Po";  else rm -f ".deps/circuit.Tpo"; exit 1;  fi
cc1plus: warning: command-line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
--- main.o ---
In file included from main.cc:46:
lat.h:34:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   34 |     unsigned char  cmd             __attribute__ ((packed));
      |                                                           ^
lat.h:35:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   35 |     unsigned char  num_slots       __attribute__ ((packed));
      |                                                           ^
lat.h:38:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   38 |     unsigned char  sequence_number __attribute__ ((packed));
      |                                                           ^
lat.h:39:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   39 |     unsigned char  ack_number      __attribute__ ((packed));
      |                                                           ^
lat.h:45:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   45 |   unsigned char  cmd             __attribute__ ((packed));
      |                                                         ^
lat.h:46:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   46 |   unsigned char  dummy           __attribute__ ((packed));
      |                                                         ^
lat.h:47:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   47 |   unsigned char  hiver           __attribute__ ((packed)); // Highest protocol version
      |                                                         ^
lat.h:48:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   48 |   unsigned char  lover           __attribute__ ((packed)); // Lowest protocol version
      |                                                         ^
lat.h:49:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   49 |   unsigned char  latver          __attribute__ ((packed)); // LAT version No. (5)
      |                                                         ^
lat.h:50:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   50 |   unsigned char  latver_eco      __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                         ^
lat.h:59:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   59 |     unsigned char  cmd             __attribute__ ((packed));
      |                                                           ^
lat.h:60:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   60 |     unsigned char  dummy           __attribute__ ((packed));
      |                                                           ^
lat.h:61:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   61 |     unsigned char  hiver           __attribute__ ((packed)); // Highest protocol version
      |                                                           ^
lat.h:62:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   62 |     unsigned char  lover           __attribute__ ((packed)); // Lowest protocol version
      |                                                           ^
lat.h:63:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   63 |     unsigned char  latver          __attribute__ ((packed)); // LAT version No. (5)
      |                                                           ^
lat.h:64:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   64 |     unsigned char  latver_eco      __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                           ^
lat.h:75:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   75 |   unsigned char  cmd             __attribute__ ((packed)); // always 0x28
      |                                                         ^
lat.h:76:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   76 |   unsigned char  circuit_timer   __attribute__ ((packed)); // in 10s milliseconds
      |                                                         ^
lat.h:77:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   77 |   unsigned char  hiver           __attribute__ ((packed)); // Highest protocol version
      |                                                         ^
lat.h:78:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   78 |   unsigned char  lover           __attribute__ ((packed)); // Lowest protocol version
      |                                                         ^
lat.h:79:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   79 |   unsigned char  latver          __attribute__ ((packed)); // LAT version No. (5)
      |                                                         ^
lat.h:80:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   80 |   unsigned char  latver_eco      __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                         ^
lat.h:81:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   81 |   unsigned char  incarnation     __attribute__ ((packed)); // Message incarnation
      |                                                         ^
lat.h:82:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   82 |   unsigned char  flags           __attribute__ ((packed)); // Change flags
      |                                                         ^
lat.h:84:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   84 |   unsigned char  multicast_timer __attribute__ ((packed)); // Multicast timer (seconds)
      |                                                         ^
lat.h:85:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   85 |   unsigned char  node_status     __attribute__ ((packed)); // 2 (accepting connections)
      |                                                         ^
lat.h:86:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   86 |   unsigned char  group_length    __attribute__ ((packed));
      |                                                         ^
lat.h:99:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   99 |     unsigned char  latver      __attribute__ ((packed)); // LAT version No. (5)
      |                                                       ^
lat.h:100:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  100 |     unsigned char  latver_eco  __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                       ^
lat.h:101:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  101 |     unsigned char  maxsessions __attribute__ ((packed));
      |                                                       ^
lat.h:102:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  102 |     unsigned char  exqueued    __attribute__ ((packed)); // Extra data link buffer queued
      |                                                       ^
lat.h:103:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  103 |     unsigned char  circtimer   __attribute__ ((packed)); // in 10s of milliseconds
      |                                                       ^
lat.h:104:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  104 |     unsigned char  keepalive   __attribute__ ((packed)); // in seconds
      |                                                       ^
lat.h:106:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  106 |     unsigned char  prodtype    __attribute__ ((packed));
      |                                                       ^
lat.h:107:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  107 |     unsigned char  prodver     __attribute__ ((packed));
      |                                                       ^
lat.h:119:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  119 |     unsigned char  latver      __attribute__ ((packed)); // LAT version No. (5)
      |                                                       ^
lat.h:120:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  120 |     unsigned char  latver_eco  __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                       ^
lat.h:121:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  121 |     unsigned char  maxsessions __attribute__ ((packed));
      |                                                       ^
lat.h:122:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  122 |     unsigned char  exqueued    __attribute__ ((packed));
      |                                                       ^
lat.h:123:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  123 |     unsigned char  circtimer   __attribute__ ((packed));
      |                                                       ^
lat.h:124:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  124 |     unsigned char  keepalive   __attribute__ ((packed));
      |                                                       ^
lat.h:126:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  126 |     unsigned char  prodtype    __attribute__ ((packed));
      |                                                       ^
lat.h:127:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  127 |     unsigned char  prodver     __attribute__ ((packed));
      |                                                       ^
lat.h:139:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  139 |     unsigned char local_session  __attribute__ ((packed));
      |                                                         ^
lat.h:140:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  140 |     unsigned char remote_session __attribute__ ((packed));
      |                                                         ^
lat.h:141:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  141 |     unsigned char length         __attribute__ ((packed));
      |                                                         ^
lat.h:142:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  142 |     unsigned char cmd            __attribute__ ((packed));
      |                                                         ^
lat.h:148:48: warning: 'packed' attribute ignored for field of type 'LAT_Header' [-Wattributes]
  148 |     LAT_Header  header  __attribute__ ((packed));
      |                                                ^
lat.h:149:48: warning: 'packed' attribute ignored for field of type 'LAT_SlotCmd' [-Wattributes]
  149 |     LAT_SlotCmd slot    __attribute__ ((packed));
      |                                                ^
lat.h:154:56: warning: 'packed' attribute ignored for field of type 'LAT_Header' [-Wattributes]
  154 |     LAT_Header    header        __attribute__ ((packed));
      |                                                        ^
lat.h:155:56: warning: 'packed' attribute ignored for field of type 'LAT_SlotCmd' [-Wattributes]
  155 |     LAT_SlotCmd   slot          __attribute__ ((packed));
      |                                                        ^
lat.h:156:56: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  156 |     unsigned char serviceclass  __attribute__ ((packed));
      |                                                        ^
lat.h:157:56: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  157 |     unsigned char attslotsize   __attribute__ ((packed));
      |                                                        ^
lat.h:158:56: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  158 |     unsigned char dataslotsize  __attribute__ ((packed));
      |                                                        ^
lat.h:163:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  163 |     unsigned char  cmd           __attribute__ ((packed));
      |                                                         ^
lat.h:164:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  164 |     unsigned char  format        __attribute__ ((packed));
      |                                                         ^
lat.h:165:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  165 |     unsigned char  hiver         __attribute__ ((packed)); // Highest protocol version
      |                                                         ^
lat.h:166:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  166 |     unsigned char  lover         __attribute__ ((packed)); // Lowest protocol version
      |                                                         ^
lat.h:167:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  167 |     unsigned char  latver        __attribute__ ((packed)); // LAT version No. (5)
      |                                                         ^
lat.h:168:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  168 |     unsigned char  latver_eco    __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                         ^
lat.h:172:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  172 |     unsigned char  opcode        __attribute__ ((packed));
      |                                                         ^
lat.h:173:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  173 |     unsigned char  modifier      __attribute__ ((packed));
      |                                                         ^
lat.h:200:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  200 |     unsigned char  cmd           __attribute__ ((packed));
      |                                                         ^
lat.h:201:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  201 |     unsigned char  format        __attribute__ ((packed));
      |                                                         ^
lat.h:202:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  202 |     unsigned char  hiver         __attribute__ ((packed)); // Highest protocol version
      |                                                         ^
lat.h:203:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  203 |     unsigned char  lover         __attribute__ ((packed)); // Lowest protocol version
      |                                                         ^
lat.h:204:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  204 |     unsigned char  latver        __attribute__ ((packed)); // LAT version No. (5)
      |                                                         ^
lat.h:205:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  205 |     unsigned char  latver_eco    __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                         ^
lat.h:208:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  208 |     unsigned char  entry_count   __attribute__ ((packed));
      |                                                         ^
In file included from main.cc:53:
server.h:237:9: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
  237 |         const bool operator==(serviceinfo &si)  { return (si == name);}
      |         ^~~~~
server.h:238:9: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
  238 |         const bool operator==(const std::string &nm) { return (nm == name);}
      |         ^~~~~
server.h:239:9: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
  239 |         const bool operator!=(serviceinfo &si)  { return (si != name);}
      |         ^~~~~
server.h:240:9: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
  240 |         const bool operator!=(const std::string &nm) { return (nm != name);}
      |         ^~~~~
--- circuit.o ---
In file included from /usr/include/c++/11/backward/strstream:50,
                 from circuit.cc:19:
/usr/include/c++/11/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. [-Wcpp]
   32 | #warning \
      |  ^~~~~~~
--- main.o ---
server.h:206:105: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  206 |         serviceinfo(std::string n, int r, bool s, std::string i = std::string(""), int mc=0, char* comm="",
      |                                                                                                         ^~
main.cc: In function 'int main(int, char**)':
main.cc:222:14: warning: ignoring return value of 'int chdir(const char*)' declared with attribute 'warn_unused_result' [-Wunused-result]
  222 |         chdir("/");
      |         ~~~~~^~~~~
--- clientsession.o ---
if c++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"latd\" -DVERSION=\"1.21\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_PTY_H=1 -DHAVE_TERMIOS_H=1 -DHAVE_MCHECK_H=1 -DHAVE_NETINET_ETHER_H=1 -DHAVE_NET_ETHERNET_H=1 -DHAVE_FEATURES_H=1 -DHAVE_OPENPTY=1 -DLOGIN_BIN=\"/bin/login\" -DLATCP_SOCKNAME=\"/var/run/latcp\" -DLLOGIN_SOCKNAME=\"/var/run/latlogin\" -I. -I. -DLATD_CONF=\"/usr/pkg/etc/latd.conf\" -DSBINDIR=\"/usr/pkg/sbin\" -DBINDIR=\"/usr/pkg/bin\"   -DPREFIX="\"/usr/pkg\"" -fno-rtti -fno-exceptions -Wstrict-prototypes -Wno-unused -pipe -O2 -DENABLE_DEFAULT_SERVICE -W -MT clientsession.o -MD -MP -MF ".deps/clientsession.Tpo"  -c -o clientsession.o `test -f 'clientsession.cc' || echo './'`clientsession.cc;  then mv -f ".deps/clientsession.Tpo" ".deps/clientsession.Po";  else rm -f ".deps/clientsession.Tpo"; exit 1;  fi
cc1plus: warning: command-line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
--- circuit.o ---
In file included from circuit.cc:27:
lat.h:34:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   34 |     unsigned char  cmd             __attribute__ ((packed));
      |                                                           ^
lat.h:35:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   35 |     unsigned char  num_slots       __attribute__ ((packed));
      |                                                           ^
lat.h:38:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   38 |     unsigned char  sequence_number __attribute__ ((packed));
      |                                                           ^
lat.h:39:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   39 |     unsigned char  ack_number      __attribute__ ((packed));
      |                                                           ^
lat.h:45:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   45 |   unsigned char  cmd             __attribute__ ((packed));
      |                                                         ^
lat.h:46:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   46 |   unsigned char  dummy           __attribute__ ((packed));
      |                                                         ^
lat.h:47:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   47 |   unsigned char  hiver           __attribute__ ((packed)); // Highest protocol version
      |                                                         ^
lat.h:48:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   48 |   unsigned char  lover           __attribute__ ((packed)); // Lowest protocol version
      |                                                         ^
lat.h:49:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   49 |   unsigned char  latver          __attribute__ ((packed)); // LAT version No. (5)
      |                                                         ^
lat.h:50:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   50 |   unsigned char  latver_eco      __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                         ^
lat.h:59:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   59 |     unsigned char  cmd             __attribute__ ((packed));
      |                                                           ^
lat.h:60:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   60 |     unsigned char  dummy           __attribute__ ((packed));
      |                                                           ^
lat.h:61:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   61 |     unsigned char  hiver           __attribute__ ((packed)); // Highest protocol version
      |                                                           ^
lat.h:62:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   62 |     unsigned char  lover           __attribute__ ((packed)); // Lowest protocol version
      |                                                           ^
lat.h:63:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   63 |     unsigned char  latver          __attribute__ ((packed)); // LAT version No. (5)
      |                                                           ^
lat.h:64:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   64 |     unsigned char  latver_eco      __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                           ^
lat.h:75:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   75 |   unsigned char  cmd             __attribute__ ((packed)); // always 0x28
      |                                                         ^
lat.h:76:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   76 |   unsigned char  circuit_timer   __attribute__ ((packed)); // in 10s milliseconds
      |                                                         ^
lat.h:77:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   77 |   unsigned char  hiver           __attribute__ ((packed)); // Highest protocol version
      |                                                         ^
lat.h:78:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   78 |   unsigned char  lover           __attribute__ ((packed)); // Lowest protocol version
      |                                                         ^
lat.h:79:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   79 |   unsigned char  latver          __attribute__ ((packed)); // LAT version No. (5)
      |                                                         ^
lat.h:80:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   80 |   unsigned char  latver_eco      __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                         ^
lat.h:81:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   81 |   unsigned char  incarnation     __attribute__ ((packed)); // Message incarnation
      |                                                         ^
lat.h:82:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   82 |   unsigned char  flags           __attribute__ ((packed)); // Change flags
      |                                                         ^
lat.h:84:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   84 |   unsigned char  multicast_timer __attribute__ ((packed)); // Multicast timer (seconds)
      |                                                         ^
lat.h:85:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   85 |   unsigned char  node_status     __attribute__ ((packed)); // 2 (accepting connections)
      |                                                         ^
lat.h:86:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   86 |   unsigned char  group_length    __attribute__ ((packed));
      |                                                         ^
lat.h:99:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   99 |     unsigned char  latver      __attribute__ ((packed)); // LAT version No. (5)
      |                                                       ^
lat.h:100:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  100 |     unsigned char  latver_eco  __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                       ^
lat.h:101:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  101 |     unsigned char  maxsessions __attribute__ ((packed));
      |                                                       ^
lat.h:102:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  102 |     unsigned char  exqueued    __attribute__ ((packed)); // Extra data link buffer queued
      |                                                       ^
lat.h:103:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  103 |     unsigned char  circtimer   __attribute__ ((packed)); // in 10s of milliseconds
      |                                                       ^
lat.h:104:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  104 |     unsigned char  keepalive   __attribute__ ((packed)); // in seconds
      |                                                       ^
lat.h:106:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  106 |     unsigned char  prodtype    __attribute__ ((packed));
      |                                                       ^
lat.h:107:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  107 |     unsigned char  prodver     __attribute__ ((packed));
      |                                                       ^
lat.h:119:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  119 |     unsigned char  latver      __attribute__ ((packed)); // LAT version No. (5)
      |                                                       ^
lat.h:120:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  120 |     unsigned char  latver_eco  __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                       ^
lat.h:121:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  121 |     unsigned char  maxsessions __attribute__ ((packed));
      |                                                       ^
lat.h:122:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  122 |     unsigned char  exqueued    __attribute__ ((packed));
      |                                                       ^
lat.h:123:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  123 |     unsigned char  circtimer   __attribute__ ((packed));
      |                                                       ^
lat.h:124:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  124 |     unsigned char  keepalive   __attribute__ ((packed));
      |                                                       ^
lat.h:126:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  126 |     unsigned char  prodtype    __attribute__ ((packed));
      |                                                       ^
lat.h:127:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  127 |     unsigned char  prodver     __attribute__ ((packed));
      |                                                       ^
lat.h:139:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  139 |     unsigned char local_session  __attribute__ ((packed));
      |                                                         ^
lat.h:140:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  140 |     unsigned char remote_session __attribute__ ((packed));
      |                                                         ^
lat.h:141:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  141 |     unsigned char length         __attribute__ ((packed));
      |                                                         ^
lat.h:142:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  142 |     unsigned char cmd            __attribute__ ((packed));
      |                                                         ^
lat.h:148:48: warning: 'packed' attribute ignored for field of type 'LAT_Header' [-Wattributes]
  148 |     LAT_Header  header  __attribute__ ((packed));
      |                                                ^
lat.h:149:48: warning: 'packed' attribute ignored for field of type 'LAT_SlotCmd' [-Wattributes]
  149 |     LAT_SlotCmd slot    __attribute__ ((packed));
      |                                                ^
lat.h:154:56: warning: 'packed' attribute ignored for field of type 'LAT_Header' [-Wattributes]
  154 |     LAT_Header    header        __attribute__ ((packed));
      |                                                        ^
lat.h:155:56: warning: 'packed' attribute ignored for field of type 'LAT_SlotCmd' [-Wattributes]
  155 |     LAT_SlotCmd   slot          __attribute__ ((packed));
      |                                                        ^
lat.h:156:56: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  156 |     unsigned char serviceclass  __attribute__ ((packed));
      |                                                        ^
lat.h:157:56: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  157 |     unsigned char attslotsize   __attribute__ ((packed));
      |                                                        ^
lat.h:158:56: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  158 |     unsigned char dataslotsize  __attribute__ ((packed));
      |                                                        ^
lat.h:163:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  163 |     unsigned char  cmd           __attribute__ ((packed));
      |                                                         ^
lat.h:164:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  164 |     unsigned char  format        __attribute__ ((packed));
      |                                                         ^
lat.h:165:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  165 |     unsigned char  hiver         __attribute__ ((packed)); // Highest protocol version
      |                                                         ^
lat.h:166:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  166 |     unsigned char  lover         __attribute__ ((packed)); // Lowest protocol version
      |                                                         ^
lat.h:167:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  167 |     unsigned char  latver        __attribute__ ((packed)); // LAT version No. (5)
      |                                                         ^
lat.h:168:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  168 |     unsigned char  latver_eco    __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                         ^
lat.h:172:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  172 |     unsigned char  opcode        __attribute__ ((packed));
      |                                                         ^
lat.h:173:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  173 |     unsigned char  modifier      __attribute__ ((packed));
      |                                                         ^
lat.h:200:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  200 |     unsigned char  cmd           __attribute__ ((packed));
      |                                                         ^
lat.h:201:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  201 |     unsigned char  format        __attribute__ ((packed));
      |                                                         ^
lat.h:202:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  202 |     unsigned char  hiver         __attribute__ ((packed)); // Highest protocol version
      |                                                         ^
lat.h:203:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  203 |     unsigned char  lover         __attribute__ ((packed)); // Lowest protocol version
      |                                                         ^
lat.h:204:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  204 |     unsigned char  latver        __attribute__ ((packed)); // LAT version No. (5)
      |                                                         ^
lat.h:205:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  205 |     unsigned char  latver_eco    __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                         ^
lat.h:208:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  208 |     unsigned char  entry_count   __attribute__ ((packed));
      |                                                         ^
--- clientsession.o ---
In file included from /usr/include/c++/11/backward/strstream:50,
                 from clientsession.cc:26:
/usr/include/c++/11/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. [-Wcpp]
   32 | #warning \
      |  ^~~~~~~
--- circuit.o ---
In file included from circuit.cc:36:
server.h:237:9: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
  237 |         const bool operator==(serviceinfo &si)  { return (si == name);}
      |         ^~~~~
server.h:238:9: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
  238 |         const bool operator==(const std::string &nm) { return (nm == name);}
      |         ^~~~~
server.h:239:9: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
  239 |         const bool operator!=(serviceinfo &si)  { return (si != name);}
      |         ^~~~~
server.h:240:9: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
  240 |         const bool operator!=(const std::string &nm) { return (nm != name);}
      |         ^~~~~
server.h:206:105: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  206 |         serviceinfo(std::string n, int r, bool s, std::string i = std::string(""), int mc=0, char* comm="",
      |                                                                                                         ^~
--- connection.o ---
if c++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"latd\" -DVERSION=\"1.21\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_PTY_H=1 -DHAVE_TERMIOS_H=1 -DHAVE_MCHECK_H=1 -DHAVE_NETINET_ETHER_H=1 -DHAVE_NET_ETHERNET_H=1 -DHAVE_FEATURES_H=1 -DHAVE_OPENPTY=1 -DLOGIN_BIN=\"/bin/login\" -DLATCP_SOCKNAME=\"/var/run/latcp\" -DLLOGIN_SOCKNAME=\"/var/run/latlogin\" -I. -I. -DLATD_CONF=\"/usr/pkg/etc/latd.conf\" -DSBINDIR=\"/usr/pkg/sbin\" -DBINDIR=\"/usr/pkg/bin\"   -DPREFIX="\"/usr/pkg\"" -fno-rtti -fno-exceptions -Wstrict-prototypes -Wno-unused -pipe -O2 -DENABLE_DEFAULT_SERVICE -W -MT connection.o -MD -MP -MF ".deps/connection.Tpo"  -c -o connection.o `test -f 'connection.cc' || echo './'`connection.cc;  then mv -f ".deps/connection.Tpo" ".deps/connection.Po";  else rm -f ".deps/connection.Tpo"; exit 1;  fi
cc1plus: warning: command-line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
In file included from /usr/include/c++/11/backward/strstream:50,
                 from connection.cc:22:
/usr/include/c++/11/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. [-Wcpp]
   32 | #warning \
      |  ^~~~~~~
--- clientsession.o ---
In file included from clientsession.cc:30:
lat.h:34:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   34 |     unsigned char  cmd             __attribute__ ((packed));
      |                                                           ^
lat.h:35:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   35 |     unsigned char  num_slots       __attribute__ ((packed));
      |                                                           ^
lat.h:38:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   38 |     unsigned char  sequence_number __attribute__ ((packed));
      |                                                           ^
lat.h:39:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   39 |     unsigned char  ack_number      __attribute__ ((packed));
      |                                                           ^
lat.h:45:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   45 |   unsigned char  cmd             __attribute__ ((packed));
      |                                                         ^
lat.h:46:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   46 |   unsigned char  dummy           __attribute__ ((packed));
      |                                                         ^
lat.h:47:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   47 |   unsigned char  hiver           __attribute__ ((packed)); // Highest protocol version
      |                                                         ^
lat.h:48:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   48 |   unsigned char  lover           __attribute__ ((packed)); // Lowest protocol version
      |                                                         ^
lat.h:49:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   49 |   unsigned char  latver          __attribute__ ((packed)); // LAT version No. (5)
      |                                                         ^
lat.h:50:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   50 |   unsigned char  latver_eco      __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                         ^
lat.h:59:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   59 |     unsigned char  cmd             __attribute__ ((packed));
      |                                                           ^
lat.h:60:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   60 |     unsigned char  dummy           __attribute__ ((packed));
      |                                                           ^
lat.h:61:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   61 |     unsigned char  hiver           __attribute__ ((packed)); // Highest protocol version
      |                                                           ^
lat.h:62:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   62 |     unsigned char  lover           __attribute__ ((packed)); // Lowest protocol version
      |                                                           ^
lat.h:63:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   63 |     unsigned char  latver          __attribute__ ((packed)); // LAT version No. (5)
      |                                                           ^
lat.h:64:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   64 |     unsigned char  latver_eco      __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                           ^
lat.h:75:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   75 |   unsigned char  cmd             __attribute__ ((packed)); // always 0x28
      |                                                         ^
lat.h:76:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   76 |   unsigned char  circuit_timer   __attribute__ ((packed)); // in 10s milliseconds
      |                                                         ^
lat.h:77:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   77 |   unsigned char  hiver           __attribute__ ((packed)); // Highest protocol version
      |                                                         ^
lat.h:78:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   78 |   unsigned char  lover           __attribute__ ((packed)); // Lowest protocol version
      |                                                         ^
lat.h:79:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   79 |   unsigned char  latver          __attribute__ ((packed)); // LAT version No. (5)
      |                                                         ^
lat.h:80:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   80 |   unsigned char  latver_eco      __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                         ^
lat.h:81:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   81 |   unsigned char  incarnation     __attribute__ ((packed)); // Message incarnation
      |                                                         ^
lat.h:82:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   82 |   unsigned char  flags           __attribute__ ((packed)); // Change flags
      |                                                         ^
lat.h:84:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   84 |   unsigned char  multicast_timer __attribute__ ((packed)); // Multicast timer (seconds)
      |                                                         ^
lat.h:85:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   85 |   unsigned char  node_status     __attribute__ ((packed)); // 2 (accepting connections)
      |                                                         ^
lat.h:86:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   86 |   unsigned char  group_length    __attribute__ ((packed));
      |                                                         ^
lat.h:99:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   99 |     unsigned char  latver      __attribute__ ((packed)); // LAT version No. (5)
      |                                                       ^
lat.h:100:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  100 |     unsigned char  latver_eco  __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                       ^
lat.h:101:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  101 |     unsigned char  maxsessions __attribute__ ((packed));
      |                                                       ^
lat.h:102:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  102 |     unsigned char  exqueued    __attribute__ ((packed)); // Extra data link buffer queued
      |                                                       ^
lat.h:103:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  103 |     unsigned char  circtimer   __attribute__ ((packed)); // in 10s of milliseconds
      |                                                       ^
lat.h:104:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  104 |     unsigned char  keepalive   __attribute__ ((packed)); // in seconds
      |                                                       ^
lat.h:106:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  106 |     unsigned char  prodtype    __attribute__ ((packed));
      |                                                       ^
lat.h:107:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  107 |     unsigned char  prodver     __attribute__ ((packed));
      |                                                       ^
lat.h:119:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  119 |     unsigned char  latver      __attribute__ ((packed)); // LAT version No. (5)
      |                                                       ^
lat.h:120:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  120 |     unsigned char  latver_eco  __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                       ^
lat.h:121:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  121 |     unsigned char  maxsessions __attribute__ ((packed));
      |                                                       ^
lat.h:122:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  122 |     unsigned char  exqueued    __attribute__ ((packed));
      |                                                       ^
lat.h:123:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  123 |     unsigned char  circtimer   __attribute__ ((packed));
      |                                                       ^
lat.h:124:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  124 |     unsigned char  keepalive   __attribute__ ((packed));
      |                                                       ^
lat.h:126:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  126 |     unsigned char  prodtype    __attribute__ ((packed));
      |                                                       ^
lat.h:127:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  127 |     unsigned char  prodver     __attribute__ ((packed));
      |                                                       ^
lat.h:139:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  139 |     unsigned char local_session  __attribute__ ((packed));
      |                                                         ^
lat.h:140:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  140 |     unsigned char remote_session __attribute__ ((packed));
      |                                                         ^
lat.h:141:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  141 |     unsigned char length         __attribute__ ((packed));
      |                                                         ^
lat.h:142:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  142 |     unsigned char cmd            __attribute__ ((packed));
      |                                                         ^
lat.h:148:48: warning: 'packed' attribute ignored for field of type 'LAT_Header' [-Wattributes]
  148 |     LAT_Header  header  __attribute__ ((packed));
      |                                                ^
lat.h:149:48: warning: 'packed' attribute ignored for field of type 'LAT_SlotCmd' [-Wattributes]
  149 |     LAT_SlotCmd slot    __attribute__ ((packed));
      |                                                ^
lat.h:154:56: warning: 'packed' attribute ignored for field of type 'LAT_Header' [-Wattributes]
  154 |     LAT_Header    header        __attribute__ ((packed));
      |                                                        ^
lat.h:155:56: warning: 'packed' attribute ignored for field of type 'LAT_SlotCmd' [-Wattributes]
  155 |     LAT_SlotCmd   slot          __attribute__ ((packed));
      |                                                        ^
lat.h:156:56: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  156 |     unsigned char serviceclass  __attribute__ ((packed));
      |                                                        ^
lat.h:157:56: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  157 |     unsigned char attslotsize   __attribute__ ((packed));
      |                                                        ^
lat.h:158:56: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  158 |     unsigned char dataslotsize  __attribute__ ((packed));
      |                                                        ^
lat.h:163:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  163 |     unsigned char  cmd           __attribute__ ((packed));
      |                                                         ^
lat.h:164:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  164 |     unsigned char  format        __attribute__ ((packed));
      |                                                         ^
lat.h:165:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  165 |     unsigned char  hiver         __attribute__ ((packed)); // Highest protocol version
      |                                                         ^
lat.h:166:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  166 |     unsigned char  lover         __attribute__ ((packed)); // Lowest protocol version
      |                                                         ^
lat.h:167:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  167 |     unsigned char  latver        __attribute__ ((packed)); // LAT version No. (5)
      |                                                         ^
lat.h:168:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  168 |     unsigned char  latver_eco    __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                         ^
lat.h:172:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  172 |     unsigned char  opcode        __attribute__ ((packed));
      |                                                         ^
lat.h:173:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  173 |     unsigned char  modifier      __attribute__ ((packed));
      |                                                         ^
lat.h:200:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  200 |     unsigned char  cmd           __attribute__ ((packed));
      |                                                         ^
lat.h:201:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  201 |     unsigned char  format        __attribute__ ((packed));
      |                                                         ^
lat.h:202:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  202 |     unsigned char  hiver         __attribute__ ((packed)); // Highest protocol version
      |                                                         ^
lat.h:203:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  203 |     unsigned char  lover         __attribute__ ((packed)); // Lowest protocol version
      |                                                         ^
lat.h:204:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  204 |     unsigned char  latver        __attribute__ ((packed)); // LAT version No. (5)
      |                                                         ^
lat.h:205:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  205 |     unsigned char  latver_eco    __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                         ^
lat.h:208:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  208 |     unsigned char  entry_count   __attribute__ ((packed));
      |                                                         ^
In file included from clientsession.cc:37:
server.h:237:9: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
  237 |         const bool operator==(serviceinfo &si)  { return (si == name);}
      |         ^~~~~
server.h:238:9: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
  238 |         const bool operator==(const std::string &nm) { return (nm == name);}
      |         ^~~~~
server.h:239:9: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
  239 |         const bool operator!=(serviceinfo &si)  { return (si != name);}
      |         ^~~~~
server.h:240:9: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
  240 |         const bool operator!=(const std::string &nm) { return (nm != name);}
      |         ^~~~~
server.h:206:105: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  206 |         serviceinfo(std::string n, int r, bool s, std::string i = std::string(""), int mc=0, char* comm="",
      |                                                                                                         ^~
clientsession.cc: In member function 'virtual void ClientSession::disconnect_session(int)':
clientsession.cc:85:14: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)' declared with attribute 'warn_unused_result' [-Wunused-result]
   85 |         write(master_fd, msg, strlen(msg));
      |         ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
clientsession.cc:86:14: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)' declared with attribute 'warn_unused_result' [-Wunused-result]
   86 |         write(master_fd, "\n", 1);
      |         ~~~~~^~~~~~~~~~~~~~~~~~~~
--- interfaces.o ---
--- connection.o ---
In file included from connection.cc:26:
lat.h:34:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   34 |     unsigned char  cmd             __attribute__ ((packed));
      |                                                           ^
lat.h:35:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   35 |     unsigned char  num_slots       __attribute__ ((packed));
      |                                                           ^
--- interfaces.o ---
if c++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"latd\" -DVERSION=\"1.21\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_PTY_H=1 -DHAVE_TERMIOS_H=1 -DHAVE_MCHECK_H=1 -DHAVE_NETINET_ETHER_H=1 -DHAVE_NET_ETHERNET_H=1 -DHAVE_FEATURES_H=1 -DHAVE_OPENPTY=1 -DLOGIN_BIN=\"/bin/login\" -DLATCP_SOCKNAME=\"/var/run/latcp\" -DLLOGIN_SOCKNAME=\"/var/run/latlogin\" -I. -I. -DLATD_CONF=\"/usr/pkg/etc/latd.conf\" -DSBINDIR=\"/usr/pkg/sbin\" -DBINDIR=\"/usr/pkg/bin\"   -DPREFIX="\"/usr/pkg\"" -fno-rtti -fno-exceptions -Wstrict-prototypes -Wno-unused -pipe -O2 -DENABLE_DEFAULT_SERVICE -W -MT interfaces.o -MD -MP -MF ".deps/interfaces.Tpo"  -c -o interfaces.o `test -f 'interfaces.cc' || echo './'`interfaces.cc;  then mv -f ".deps/interfaces.Tpo" ".deps/interfaces.Po";  else rm -f--- connection.o ---
lat.h:38:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   38 |     unsigned char  sequence_number __attribute__ ((packed));
      |                                                           ^
--- interfaces.o ---
 ".deps/interfaces.Tpo"; exit 1;  fi
--- connection.o ---
lat.h:39:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   39 |     unsigned char  ack_number      __attribute__ ((packed));
      |                                                           ^
lat.h:45:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   45 |   unsigned char  cmd             __attribute__ ((packed));
      |                                                         ^
lat.h:46:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   46 |   unsigned char  dummy           __attribute__ ((packed));
      |                                                         ^
lat.h:47:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   47 |   unsigned char  hiver           __attribute__ ((packed)); // Highest protocol version
      |                                                         ^
lat.h:48:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   48 |   unsigned char  lover           __attribute__ ((packed)); // Lowest protocol version
      |                                                         ^
lat.h:49:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   49 |   unsigned char  latver          __attribute__ ((packed)); // LAT version No. (5)
      |                                                         ^
lat.h:50:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   50 |   unsigned char  latver_eco      __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                         ^
lat.h:59:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   59 |     unsigned char  cmd             __attribute__ ((packed));
      |                                                           ^
lat.h:60:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   60 |     unsigned char  dummy           __attribute__ ((packed));
      |                                                           ^
lat.h:61:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   61 |     unsigned char  hiver           __attribute__ ((packed)); // Highest protocol version
      |                                                           ^
lat.h:62:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   62 |     unsigned char  lover           __attribute__ ((packed)); // Lowest protocol version
      |                                                           ^
lat.h:63:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   63 |     unsigned char  latver          __attribute__ ((packed)); // LAT version No. (5)
      |                                                           ^
lat.h:64:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   64 |     unsigned char  latver_eco      __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                           ^
lat.h:75:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   75 |   unsigned char  cmd             __attribute__ ((packed)); // always 0x28
      |                                                         ^
lat.h:76:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   76 |   unsigned char  circuit_timer   __attribute__ ((packed)); // in 10s milliseconds
      |                                                         ^
lat.h:77:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   77 |   unsigned char  hiver           __attribute__ ((packed)); // Highest protocol version
      |                                                         ^
lat.h:78:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   78 |   unsigned char  lover           __attribute__ ((packed)); // Lowest protocol version
      |                                                         ^
lat.h:79:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   79 |   unsigned char  latver          __attribute__ ((packed)); // LAT version No. (5)
      |                                                         ^
lat.h:80:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   80 |   unsigned char  latver_eco      __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                         ^
lat.h:81:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   81 |   unsigned char  incarnation     __attribute__ ((packed)); // Message incarnation
      |                                                         ^
lat.h:82:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   82 |   unsigned char  flags           __attribute__ ((packed)); // Change flags
      |                                                         ^
lat.h:84:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   84 |   unsigned char  multicast_timer __attribute__ ((packed)); // Multicast timer (seconds)
      |                                                         ^
lat.h:85:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   85 |   unsigned char  node_status     __attribute__ ((packed)); // 2 (accepting connections)
      |                                                         ^
lat.h:86:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   86 |   unsigned char  group_length    __attribute__ ((packed));
      |                                                         ^
lat.h:99:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   99 |     unsigned char  latver      __attribute__ ((packed)); // LAT version No. (5)
      |                                                       ^
lat.h:100:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  100 |     unsigned char  latver_eco  __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                       ^
lat.h:101:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  101 |     unsigned char  maxsessions __attribute__ ((packed));
      |                                                       ^
lat.h:102:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  102 |     unsigned char  exqueued    __attribute__ ((packed)); // Extra data link buffer queued
      |                                                       ^
lat.h:103:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  103 |     unsigned char  circtimer   __attribute__ ((packed)); // in 10s of milliseconds
      |                                                       ^
lat.h:104:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  104 |     unsigned char  keepalive   __attribute__ ((packed)); // in seconds
      |                                                       ^
lat.h:106:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  106 |     unsigned char  prodtype    __attribute__ ((packed));
      |                                                       ^
lat.h:107:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  107 |     unsigned char  prodver     __attribute__ ((packed));
      |                                                       ^
lat.h:119:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  119 |     unsigned char  latver      __attribute__ ((packed)); // LAT version No. (5)
      |                                                       ^
lat.h:120:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  120 |     unsigned char  latver_eco  __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                       ^
lat.h:121:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  121 |     unsigned char  maxsessions __attribute__ ((packed));
      |                                                       ^
lat.h:122:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  122 |     unsigned char  exqueued    __attribute__ ((packed));
      |                                                       ^
lat.h:123:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  123 |     unsigned char  circtimer   __attribute__ ((packed));
      |                                                       ^
lat.h:124:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  124 |     unsigned char  keepalive   __attribute__ ((packed));
      |                                                       ^
lat.h:126:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  126 |     unsigned char  prodtype    __attribute__ ((packed));
      |                                                       ^
lat.h:127:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  127 |     unsigned char  prodver     __attribute__ ((packed));
      |                                                       ^
lat.h:139:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  139 |     unsigned char local_session  __attribute__ ((packed));
      |                                                         ^
lat.h:140:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  140 |     unsigned char remote_session __attribute__ ((packed));
      |                                                         ^
lat.h:141:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  141 |     unsigned char length         __attribute__ ((packed));
      |                                                         ^
lat.h:142:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  142 |     unsigned char cmd            __attribute__ ((packed));
      |                                                         ^
lat.h:148:48: warning: 'packed' attribute ignored for field of type 'LAT_Header' [-Wattributes]
  148 |     LAT_Header  header  __attribute__ ((packed));
      |                                                ^
lat.h:149:48: warning: 'packed' attribute ignored for field of type 'LAT_SlotCmd' [-Wattributes]
  149 |     LAT_SlotCmd slot    __attribute__ ((packed));
      |                                                ^
lat.h:154:56: warning: 'packed' attribute ignored for field of type 'LAT_Header' [-Wattributes]
  154 |     LAT_Header    header        __attribute__ ((packed));
      |                                                        ^
lat.h:155:56: warning: 'packed' attribute ignored for field of type 'LAT_SlotCmd' [-Wattributes]
  155 |     LAT_SlotCmd   slot          __attribute__ ((packed));
      |                                                        ^
lat.h:156:56: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  156 |     unsigned char serviceclass  __attribute__ ((packed));
      |                                                        ^
lat.h:157:56: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  157 |     unsigned char attslotsize   __attribute__ ((packed));
      |                                                        ^
lat.h:158:56: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  158 |     unsigned char dataslotsize  __attribute__ ((packed));
      |                                                        ^
lat.h:163:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  163 |     unsigned char  cmd           __attribute__ ((packed));
      |                                                         ^
lat.h:164:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  164 |     unsigned char  format        __attribute__ ((packed));
      |                                                         ^
lat.h:165:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  165 |     unsigned char  hiver         __attribute__ ((packed)); // Highest protocol version
      |                                                         ^
lat.h:166:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  166 |     unsigned char  lover         __attribute__ ((packed)); // Lowest protocol version
      |                                                         ^
lat.h:167:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  167 |     unsigned char  latver        __attribute__ ((packed)); // LAT version No. (5)
      |                                                         ^
lat.h:168:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  168 |     unsigned char  latver_eco    __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                         ^
lat.h:172:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  172 |     unsigned char  opcode        __attribute__ ((packed));
      |                                                         ^
lat.h:173:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  173 |     unsigned char  modifier      __attribute__ ((packed));
      |                                                         ^
lat.h:200:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  200 |     unsigned char  cmd           __attribute__ ((packed));
      |                                                         ^
lat.h:201:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  201 |     unsigned char  format        __attribute__ ((packed));
      |                                                         ^
lat.h:202:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  202 |     unsigned char  hiver         __attribute__ ((packed)); // Highest protocol version
      |                                                         ^
lat.h:203:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  203 |     unsigned char  lover         __attribute__ ((packed)); // Lowest protocol version
      |                                                         ^
lat.h:204:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  204 |     unsigned char  latver        __attribute__ ((packed)); // LAT version No. (5)
      |                                                         ^
lat.h:205:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  205 |     unsigned char  latver_eco    __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                         ^
lat.h:208:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  208 |     unsigned char  entry_count   __attribute__ ((packed));
      |                                                         ^
--- interfaces.o ---
cc1plus: warning: command-line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
--- connection.o ---
In file included from connection.cc:39:
server.h:237:9: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
  237 |         const bool operator==(serviceinfo &si)  { return (si == name);}
      |         ^~~~~
server.h:238:9: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
  238 |         const bool operator==(const std::string &nm) { return (nm == name);}
      |         ^~~~~
server.h:239:9: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
  239 |         const bool operator!=(serviceinfo &si)  { return (si != name);}
      |         ^~~~~
server.h:240:9: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
  240 |         const bool operator!=(const std::string &nm) { return (nm != name);}
      |         ^~~~~
server.h:206:105: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  206 |         serviceinfo(std::string n, int r, bool s, std::string i = std::string(""), int mc=0, char* comm="",
      |                                                                                                         ^~
connection.cc: In member function 'bool LATConnection::process_session_cmd(unsigned char*, int, unsigned char*)':
connection.cc:333:66: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  333 |                             if (newsession->new_session(remnode, "","",
      |                                                                  ^~
connection.cc:333:69: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  333 |                             if (newsession->new_session(remnode, "","",
      |                                                                     ^~
connection.cc:394:66: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  394 |                             if (newsession->new_session(remnode, "", (char *)portname,
      |                                                                  ^~
--- lat_messages.o ---
if c++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"latd\" -DVERSION=\"1.21\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_PTY_H=1 -DHAVE_TERMIOS_H=1 -DHAVE_MCHECK_H=1 -DHAVE_NETINET_ETHER_H=1 -DHAVE_NET_ETHERNET_H=1 -DHAVE_FEATURES_H=1 -DHAVE_OPENPTY=1 -DLOGIN_BIN=\"/bin/login\" -DLATCP_SOCKNAME=\"/var/run/latcp\" -DLLOGIN_SOCKNAME=\"/var/run/latlogin\" -I. -I. -DLATD_CONF=\"/usr/pkg/etc/latd.conf\" -DSBINDIR=\"/usr/pkg/sbin\" -DBINDIR=\"/usr/pkg/bin\"   -DPREFIX="\"/usr/pkg\"" -fno-rtti -fno-exceptions -Wstrict-prototypes -Wno-unused -pipe -O2 -DENABLE_DEFAULT_SERVICE -W -MT lat_messages.o -MD -MP -MF ".deps/lat_messages.Tpo"  -c -o lat_messages.o `test -f 'lat_messages.cc' || echo './'`lat_messages.cc;  then mv -f ".deps/lat_messages.Tpo" ".deps/lat_messages.Po";  else rm -f ".deps/lat_messages.Tpo"; exit 1;  fi
cc1plus: warning: command-line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
lat_messages.cc: In static member function 'static char* lat_messages::session_disconnect_msg(int)':
lat_messages.cc:22:22: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
   22 |     case 0x0: return "Unknown";
      |                      ^~~~~~~~~
lat_messages.cc:24:22: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
   24 |     case 0x1: return "User requested disconnect";
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~
lat_messages.cc:26:22: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
   26 |     case 0x2: return "System shutdown in progress";
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lat_messages.cc:28:22: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
   28 |     case 0x3: return "Invalid slot received";
      |                      ^~~~~~~~~~~~~~~~~~~~~~~
lat_messages.cc:30:22: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
   30 |     case 0x4: return "Invalid service class";
      |                      ^~~~~~~~~~~~~~~~~~~~~~~
lat_messages.cc:32:22: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
   32 |     case 0x5: return "Insufficient resources";
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~
lat_messages.cc:34:22: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
   34 |     case 0x6: return "Service in use";
      |                      ^~~~~~~~~~~~~~~~
lat_messages.cc:36:22: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
   36 |     case 0x7: return "No such service";
      |                      ^~~~~~~~~~~~~~~~~
lat_messages.cc:38:22: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
   38 |     case 0x8: return "Service is disabled";
      |                      ^~~~~~~~~~~~~~~~~~~~~
lat_messages.cc:40:22: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
   40 |     case 0x9: return "Service is not offered by requested port";
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lat_messages.cc:42:22: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
   42 |     case 0xa: return "Port name is unknown";
      |                      ^~~~~~~~~~~~~~~~~~~~~~
lat_messages.cc:44:22: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
   44 |     case 0xb: return "Invalid password";
      |                      ^~~~~~~~~~~~~~~~~~
lat_messages.cc:46:22: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
   46 |     case 0xc: return "Entry is not in the queue";
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~
lat_messages.cc:48:22: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
   48 |     case 0xd: return "Immediate access rejected";
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~
lat_messages.cc:50:22: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
   50 |     case 0xe: return "Access denied";
      |                      ^~~~~~~~~~~~~~~
lat_messages.cc:52:22: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
   52 |     case 0xf: return "Corrupted solicit request";
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~
lat_messages.cc: In static member function 'static char* lat_messages::connection_disconnect_msg(int)':
lat_messages.cc:62:23: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
   62 |     case 0x00: return "Unknown";
      |                       ^~~~~~~~~
lat_messages.cc:64:23: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
   64 |     case 0x01: return "No more slots on circuit";
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~
lat_messages.cc:66:23: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
   66 |     case 0x02: return "Illegal message or slot format received";
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lat_messages.cc:68:23: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
   68 |     case 0x03: return "VC_Halt from user";
      |                       ^~~~~~~~~~~~~~~~~~~
lat_messages.cc:70:23: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
   70 |     case 0x04: return "No progress being made";
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~
lat_messages.cc:72:23: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
   72 |     case 0x05: return "Time limit expired";
      |                       ^~~~~~~~~~~~~~~~~~~~
lat_messages.cc:74:23: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
   74 |     case 0x06: return "Retransmission limit reached";
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lat_messages.cc:76:23: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
   76 |     case 0x07: return "Insufficient resources to satisfy request";
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lat_messages.cc:78:23: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
   78 |     case 0x08: return "Server circuit timer out of range";
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lat_messages.cc:80:23: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
   80 |     case 0x09: return "Number of virtual circuits exceeded";
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--- latcpcircuit.o ---
if c++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"latd\" -DVERSION=\"1.21\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_PTY_H=1 -DHAVE_TERMIOS_H=1 -DHAVE_MCHECK_H=1 -DHAVE_NETINET_ETHER_H=1 -DHAVE_NET_ETHERNET_H=1 -DHAVE_FEATURES_H=1 -DHAVE_OPENPTY=1 -DLOGIN_BIN=\"/bin/login\" -DLATCP_SOCKNAME=\"/var/run/latcp\" -DLLOGIN_SOCKNAME=\"/var/run/latlogin\" -I. -I. -DLATD_CONF=\"/usr/pkg/etc/latd.conf\" -DSBINDIR=\"/usr/pkg/sbin\" -DBINDIR=\"/usr/pkg/bin\"   -DPREFIX="\"/usr/pkg\"" -fno-rtti -fno-exceptions -Wstrict-prototypes -Wno-unused -pipe -O2 -DENABLE_DEFAULT_SERVICE -W -MT latcpcircuit.o -MD -MP -MF ".deps/latcpcircuit.Tpo"  -c -o latcpcircuit.o `test -f 'latcpcircuit.cc' || echo './'`latcpcircuit.cc;  then mv -f ".deps/latcpcircuit.Tpo" ".deps/latcpcircuit.Po";  else rm -f ".deps/latcpcircuit.Tpo"; exit 1;  fi
cc1plus: warning: command-line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
In file included from /usr/include/c++/11/backward/strstream:50,
                 from latcpcircuit.cc:19:
/usr/include/c++/11/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. [-Wcpp]
   32 | #warning \
      |  ^~~~~~~
In file included from latcpcircuit.cc:26:
lat.h:34:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   34 |     unsigned char  cmd             __attribute__ ((packed));
      |                                                           ^
lat.h:35:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   35 |     unsigned char  num_slots       __attribute__ ((packed));
      |                                                           ^
lat.h:38:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   38 |     unsigned char  sequence_number __attribute__ ((packed));
      |                                                           ^
lat.h:39:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   39 |     unsigned char  ack_number      __attribute__ ((packed));
      |                                                           ^
lat.h:45:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   45 |   unsigned char  cmd             __attribute__ ((packed));
      |                                                         ^
lat.h:46:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   46 |   unsigned char  dummy           __attribute__ ((packed));
      |                                                         ^
lat.h:47:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   47 |   unsigned char  hiver           __attribute__ ((packed)); // Highest protocol version
      |                                                         ^
lat.h:48:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   48 |   unsigned char  lover           __attribute__ ((packed)); // Lowest protocol version
      |                                                         ^
lat.h:49:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   49 |   unsigned char  latver          __attribute__ ((packed)); // LAT version No. (5)
      |                                                         ^
lat.h:50:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   50 |   unsigned char  latver_eco      __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                         ^
lat.h:59:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   59 |     unsigned char  cmd             __attribute__ ((packed));
      |                                                           ^
lat.h:60:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   60 |     unsigned char  dummy           __attribute__ ((packed));
      |                                                           ^
lat.h:61:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   61 |     unsigned char  hiver           __attribute__ ((packed)); // Highest protocol version
      |                                                           ^
lat.h:62:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   62 |     unsigned char  lover           __attribute__ ((packed)); // Lowest protocol version
      |                                                           ^
lat.h:63:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   63 |     unsigned char  latver          __attribute__ ((packed)); // LAT version No. (5)
      |                                                           ^
lat.h:64:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   64 |     unsigned char  latver_eco      __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                           ^
lat.h:75:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   75 |   unsigned char  cmd             __attribute__ ((packed)); // always 0x28
      |                                                         ^
lat.h:76:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   76 |   unsigned char  circuit_timer   __attribute__ ((packed)); // in 10s milliseconds
      |                                                         ^
lat.h:77:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   77 |   unsigned char  hiver           __attribute__ ((packed)); // Highest protocol version
      |                                                         ^
lat.h:78:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   78 |   unsigned char  lover           __attribute__ ((packed)); // Lowest protocol version
      |                                                         ^
lat.h:79:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   79 |   unsigned char  latver          __attribute__ ((packed)); // LAT version No. (5)
      |                                                         ^
lat.h:80:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   80 |   unsigned char  latver_eco      __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                         ^
lat.h:81:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   81 |   unsigned char  incarnation     __attribute__ ((packed)); // Message incarnation
      |                                                         ^
lat.h:82:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   82 |   unsigned char  flags           __attribute__ ((packed)); // Change flags
      |                                                         ^
lat.h:84:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   84 |   unsigned char  multicast_timer __attribute__ ((packed)); // Multicast timer (seconds)
      |                                                         ^
lat.h:85:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   85 |   unsigned char  node_status     __attribute__ ((packed)); // 2 (accepting connections)
      |                                                         ^
lat.h:86:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   86 |   unsigned char  group_length    __attribute__ ((packed));
      |                                                         ^
lat.h:99:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   99 |     unsigned char  latver      __attribute__ ((packed)); // LAT version No. (5)
      |                                                       ^
lat.h:100:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  100 |     unsigned char  latver_eco  __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                       ^
lat.h:101:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  101 |     unsigned char  maxsessions __attribute__ ((packed));
      |                                                       ^
lat.h:102:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  102 |     unsigned char  exqueued    __attribute__ ((packed)); // Extra data link buffer queued
      |                                                       ^
lat.h:103:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  103 |     unsigned char  circtimer   __attribute__ ((packed)); // in 10s of milliseconds
      |                                                       ^
lat.h:104:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  104 |     unsigned char  keepalive   __attribute__ ((packed)); // in seconds
      |                                                       ^
lat.h:106:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  106 |     unsigned char  prodtype    __attribute__ ((packed));
      |                                                       ^
lat.h:107:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  107 |     unsigned char  prodver     __attribute__ ((packed));
      |                                                       ^
lat.h:119:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  119 |     unsigned char  latver      __attribute__ ((packed)); // LAT version No. (5)
      |                                                       ^
lat.h:120:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  120 |     unsigned char  latver_eco  __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                       ^
lat.h:121:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  121 |     unsigned char  maxsessions __attribute__ ((packed));
      |                                                       ^
lat.h:122:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  122 |     unsigned char  exqueued    __attribute__ ((packed));
      |                                                       ^
lat.h:123:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  123 |     unsigned char  circtimer   __attribute__ ((packed));
      |                                                       ^
lat.h:124:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  124 |     unsigned char  keepalive   __attribute__ ((packed));
      |                                                       ^
lat.h:126:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  126 |     unsigned char  prodtype    __attribute__ ((packed));
      |                                                       ^
lat.h:127:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  127 |     unsigned char  prodver     __attribute__ ((packed));
      |                                                       ^
lat.h:139:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  139 |     unsigned char local_session  __attribute__ ((packed));
      |                                                         ^
lat.h:140:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  140 |     unsigned char remote_session __attribute__ ((packed));
      |                                                         ^
lat.h:141:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  141 |     unsigned char length         __attribute__ ((packed));
      |                                                         ^
lat.h:142:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  142 |     unsigned char cmd            __attribute__ ((packed));
      |                                                         ^
lat.h:148:48: warning: 'packed' attribute ignored for field of type 'LAT_Header' [-Wattributes]
  148 |     LAT_Header  header  __attribute__ ((packed));
      |                                                ^
lat.h:149:48: warning: 'packed' attribute ignored for field of type 'LAT_SlotCmd' [-Wattributes]
  149 |     LAT_SlotCmd slot    __attribute__ ((packed));
      |                                                ^
lat.h:154:56: warning: 'packed' attribute ignored for field of type 'LAT_Header' [-Wattributes]
  154 |     LAT_Header    header        __attribute__ ((packed));
      |                                                        ^
lat.h:155:56: warning: 'packed' attribute ignored for field of type 'LAT_SlotCmd' [-Wattributes]
  155 |     LAT_SlotCmd   slot          __attribute__ ((packed));
      |                                                        ^
lat.h:156:56: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  156 |     unsigned char serviceclass  __attribute__ ((packed));
      |                                                        ^
lat.h:157:56: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  157 |     unsigned char attslotsize   __attribute__ ((packed));
      |                                                        ^
lat.h:158:56: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  158 |     unsigned char dataslotsize  __attribute__ ((packed));
      |                                                        ^
lat.h:163:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  163 |     unsigned char  cmd           __attribute__ ((packed));
      |                                                         ^
lat.h:164:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  164 |     unsigned char  format        __attribute__ ((packed));
      |                                                         ^
lat.h:165:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  165 |     unsigned char  hiver         __attribute__ ((packed)); // Highest protocol version
      |                                                         ^
lat.h:166:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  166 |     unsigned char  lover         __attribute__ ((packed)); // Lowest protocol version
      |                                                         ^
lat.h:167:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  167 |     unsigned char  latver        __attribute__ ((packed)); // LAT version No. (5)
      |                                                         ^
lat.h:168:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  168 |     unsigned char  latver_eco    __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                         ^
lat.h:172:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  172 |     unsigned char  opcode        __attribute__ ((packed));
      |                                                         ^
lat.h:173:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  173 |     unsigned char  modifier      __attribute__ ((packed));
      |                                                         ^
lat.h:200:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  200 |     unsigned char  cmd           __attribute__ ((packed));
      |                                                         ^
lat.h:201:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  201 |     unsigned char  format        __attribute__ ((packed));
      |                                                         ^
lat.h:202:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  202 |     unsigned char  hiver         __attribute__ ((packed)); // Highest protocol version
      |                                                         ^
lat.h:203:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  203 |     unsigned char  lover         __attribute__ ((packed)); // Lowest protocol version
      |                                                         ^
lat.h:204:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  204 |     unsigned char  latver        __attribute__ ((packed)); // LAT version No. (5)
      |                                                         ^
lat.h:205:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  205 |     unsigned char  latver_eco    __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                         ^
lat.h:208:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  208 |     unsigned char  entry_count   __attribute__ ((packed));
      |                                                         ^
In file included from latcpcircuit.cc:35:
server.h:237:9: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
  237 |         const bool operator==(serviceinfo &si)  { return (si == name);}
      |         ^~~~~
server.h:238:9: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
  238 |         const bool operator==(const std::string &nm) { return (nm == name);}
      |         ^~~~~
server.h:239:9: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
  239 |         const bool operator!=(serviceinfo &si)  { return (si != name);}
      |         ^~~~~
server.h:240:9: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
  240 |         const bool operator!=(const std::string &nm) { return (nm != name);}
      |         ^~~~~
server.h:206:105: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  206 |         serviceinfo(std::string n, int r, bool s, std::string i = std::string(""), int mc=0, char* comm="",
      |                                                                                                         ^~
latcpcircuit.cc: In member function 'virtual bool LATCPCircuit::do_command()':
<command-line>: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
latcpcircuit.cc:87:39: note: in expansion of macro 'VERSION'
   87 |             send_reply(LATCP_VERSION, VERSION, -1);
      |                                       ^~~~~~~
latcpcircuit.cc:92:40: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
   92 |             send_reply(LATCP_ERRORMSG, "latcp version does not match latd version " VERSION, -1);
latcpcircuit.cc:173:31: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  173 |         send_reply(LATCP_ACK, "", -1);
      |                               ^~
latcpcircuit.cc:180:31: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  180 |         send_reply(LATCP_ACK, "", -1);
      |                               ^~
latcpcircuit.cc:188:31: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  188 |         send_reply(LATCP_ACK, "", -1);
      |                               ^~
latcpcircuit.cc:195:31: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  195 |         send_reply(LATCP_ACK, "", -1);
      |                               ^~
latcpcircuit.cc:213:35: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  213 |             send_reply(LATCP_ACK, "", -1);
      |                                   ^~
latcpcircuit.cc:215:40: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  215 |             send_reply(LATCP_ERRORMSG, "Local service does not exist", -1);
      |                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
latcpcircuit.cc:230:35: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  230 |             send_reply(LATCP_ACK, "", -1);
      |                                   ^~
latcpcircuit.cc:232:40: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  232 |             send_reply(LATCP_ERRORMSG, "Local service does not exist", -1);
      |                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
latcpcircuit.cc:266:35: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  266 |             send_reply(LATCP_ACK, "", -1);
      |                                   ^~
latcpcircuit.cc:268:40: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  268 |             send_reply(LATCP_ERRORMSG, "Local service already exists", -1);
      |                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
latcpcircuit.cc:283:35: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  283 |             send_reply(LATCP_ACK, "", -1);
      |                                   ^~
latcpcircuit.cc:285:40: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  285 |             send_reply(LATCP_ERRORMSG, "Local service does not exist", -1);
      |                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
latcpcircuit.cc:299:35: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  299 |             send_reply(LATCP_ACK, "", -1);
      |                                   ^~
latcpcircuit.cc:301:40: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  301 |             send_reply(LATCP_ERRORMSG, "Local port does not exist", -1);
      |                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
latcpcircuit.cc:315:31: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  315 |         send_reply(LATCP_ACK, "", -1);
      |                               ^~
latcpcircuit.cc:329:31: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  329 |         send_reply(LATCP_ACK, "", -1);
      |                               ^~
latcpcircuit.cc:343:31: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  343 |         send_reply(LATCP_ACK, "", -1);
      |                               ^~
latcpcircuit.cc:383:40: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  383 |             send_reply(LATCP_ERRORMSG, "Local port (tty) already in use", -1);
      |                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
latcpcircuit.cc:386:35: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  386 |             send_reply(LATCP_ACK, "", -1); // all OK
      |                                   ^~
--- llogincircuit.o ---
if c++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"latd\" -DVERSION=\"1.21\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_PTY_H=1 -DHAVE_TERMIOS_H=1 -DHAVE_MCHECK_H=1 -DHAVE_NETINET_ETHER_H=1 -DHAVE_NET_ETHERNET_H=1 -DHAVE_FEATURES_H=1 -DHAVE_OPENPTY=1 -DLOGIN_BIN=\"/bin/login\" -DLATCP_SOCKNAME=\"/var/run/latcp\" -DLLOGIN_SOCKNAME=\"/var/run/latlogin\" -I. -I. -DLATD_CONF=\"/usr/pkg/etc/latd.conf\" -DSBINDIR=\"/usr/pkg/sbin\" -DBINDIR=\"/usr/pkg/bin\"   -DPREFIX="\"/usr/pkg\"" -fno-rtti -fno-exceptions -Wstrict-prototypes -Wno-unused -pipe -O2 -DENABLE_DEFAULT_SERVICE -W -MT llogincircuit.o -MD -MP -MF ".deps/llogincircuit.Tpo"  -c -o llogincircuit.o `test -f 'llogincircuit.cc' || echo './'`llogincircuit.cc;  then mv -f ".deps/llogincircuit.Tpo" ".deps/llogincircuit.Po";  else rm -f ".deps/llogincircuit.Tpo"; exit 1;  fi
cc1plus: warning: command-line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
In file included from /usr/include/c++/11/backward/strstream:50,
                 from llogincircuit.cc:20:
/usr/include/c++/11/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. [-Wcpp]
   32 | #warning \
      |  ^~~~~~~
In file included from llogincircuit.cc:27:
lat.h:34:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   34 |     unsigned char  cmd             __attribute__ ((packed));
      |                                                           ^
lat.h:35:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   35 |     unsigned char  num_slots       __attribute__ ((packed));
      |                                                           ^
lat.h:38:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   38 |     unsigned char  sequence_number __attribute__ ((packed));
      |                                                           ^
lat.h:39:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   39 |     unsigned char  ack_number      __attribute__ ((packed));
      |                                                           ^
lat.h:45:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   45 |   unsigned char  cmd             __attribute__ ((packed));
      |                                                         ^
lat.h:46:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   46 |   unsigned char  dummy           __attribute__ ((packed));
      |                                                         ^
lat.h:47:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   47 |   unsigned char  hiver           __attribute__ ((packed)); // Highest protocol version
      |                                                         ^
lat.h:48:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   48 |   unsigned char  lover           __attribute__ ((packed)); // Lowest protocol version
      |                                                         ^
lat.h:49:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   49 |   unsigned char  latver          __attribute__ ((packed)); // LAT version No. (5)
      |                                                         ^
lat.h:50:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   50 |   unsigned char  latver_eco      __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                         ^
lat.h:59:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   59 |     unsigned char  cmd             __attribute__ ((packed));
      |                                                           ^
lat.h:60:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   60 |     unsigned char  dummy           __attribute__ ((packed));
      |                                                           ^
lat.h:61:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   61 |     unsigned char  hiver           __attribute__ ((packed)); // Highest protocol version
      |                                                           ^
lat.h:62:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   62 |     unsigned char  lover           __attribute__ ((packed)); // Lowest protocol version
      |                                                           ^
lat.h:63:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   63 |     unsigned char  latver          __attribute__ ((packed)); // LAT version No. (5)
      |                                                           ^
lat.h:64:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   64 |     unsigned char  latver_eco      __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                           ^
lat.h:75:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   75 |   unsigned char  cmd             __attribute__ ((packed)); // always 0x28
      |                                                         ^
lat.h:76:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   76 |   unsigned char  circuit_timer   __attribute__ ((packed)); // in 10s milliseconds
      |                                                         ^
lat.h:77:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   77 |   unsigned char  hiver           __attribute__ ((packed)); // Highest protocol version
      |                                                         ^
lat.h:78:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   78 |   unsigned char  lover           __attribute__ ((packed)); // Lowest protocol version
      |                                                         ^
lat.h:79:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   79 |   unsigned char  latver          __attribute__ ((packed)); // LAT version No. (5)
      |                                                         ^
lat.h:80:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   80 |   unsigned char  latver_eco      __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                         ^
lat.h:81:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   81 |   unsigned char  incarnation     __attribute__ ((packed)); // Message incarnation
      |                                                         ^
lat.h:82:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   82 |   unsigned char  flags           __attribute__ ((packed)); // Change flags
      |                                                         ^
lat.h:84:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   84 |   unsigned char  multicast_timer __attribute__ ((packed)); // Multicast timer (seconds)
      |                                                         ^
lat.h:85:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   85 |   unsigned char  node_status     __attribute__ ((packed)); // 2 (accepting connections)
      |                                                         ^
lat.h:86:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   86 |   unsigned char  group_length    __attribute__ ((packed));
      |                                                         ^
lat.h:99:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   99 |     unsigned char  latver      __attribute__ ((packed)); // LAT version No. (5)
      |                                                       ^
lat.h:100:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  100 |     unsigned char  latver_eco  __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                       ^
lat.h:101:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  101 |     unsigned char  maxsessions __attribute__ ((packed));
      |                                                       ^
lat.h:102:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  102 |     unsigned char  exqueued    __attribute__ ((packed)); // Extra data link buffer queued
      |                                                       ^
lat.h:103:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  103 |     unsigned char  circtimer   __attribute__ ((packed)); // in 10s of milliseconds
      |                                                       ^
lat.h:104:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  104 |     unsigned char  keepalive   __attribute__ ((packed)); // in seconds
      |                                                       ^
lat.h:106:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  106 |     unsigned char  prodtype    __attribute__ ((packed));
      |                                                       ^
lat.h:107:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  107 |     unsigned char  prodver     __attribute__ ((packed));
      |                                                       ^
lat.h:119:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  119 |     unsigned char  latver      __attribute__ ((packed)); // LAT version No. (5)
      |                                                       ^
lat.h:120:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  120 |     unsigned char  latver_eco  __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                       ^
lat.h:121:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  121 |     unsigned char  maxsessions __attribute__ ((packed));
      |                                                       ^
lat.h:122:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  122 |     unsigned char  exqueued    __attribute__ ((packed));
      |                                                       ^
lat.h:123:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  123 |     unsigned char  circtimer   __attribute__ ((packed));
      |                                                       ^
lat.h:124:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  124 |     unsigned char  keepalive   __attribute__ ((packed));
      |                                                       ^
lat.h:126:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  126 |     unsigned char  prodtype    __attribute__ ((packed));
      |                                                       ^
lat.h:127:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  127 |     unsigned char  prodver     __attribute__ ((packed));
      |                                                       ^
lat.h:139:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  139 |     unsigned char local_session  __attribute__ ((packed));
      |                                                         ^
lat.h:140:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  140 |     unsigned char remote_session __attribute__ ((packed));
      |                                                         ^
lat.h:141:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  141 |     unsigned char length         __attribute__ ((packed));
      |                                                         ^
lat.h:142:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  142 |     unsigned char cmd            __attribute__ ((packed));
      |                                                         ^
lat.h:148:48: warning: 'packed' attribute ignored for field of type 'LAT_Header' [-Wattributes]
  148 |     LAT_Header  header  __attribute__ ((packed));
      |                                                ^
lat.h:149:48: warning: 'packed' attribute ignored for field of type 'LAT_SlotCmd' [-Wattributes]
  149 |     LAT_SlotCmd slot    __attribute__ ((packed));
      |                                                ^
lat.h:154:56: warning: 'packed' attribute ignored for field of type 'LAT_Header' [-Wattributes]
  154 |     LAT_Header    header        __attribute__ ((packed));
      |                                                        ^
lat.h:155:56: warning: 'packed' attribute ignored for field of type 'LAT_SlotCmd' [-Wattributes]
  155 |     LAT_SlotCmd   slot          __attribute__ ((packed));
      |                                                        ^
lat.h:156:56: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  156 |     unsigned char serviceclass  __attribute__ ((packed));
      |                                                        ^
lat.h:157:56: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  157 |     unsigned char attslotsize   __attribute__ ((packed));
      |                                                        ^
lat.h:158:56: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  158 |     unsigned char dataslotsize  __attribute__ ((packed));
      |                                                        ^
lat.h:163:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  163 |     unsigned char  cmd           __attribute__ ((packed));
      |                                                         ^
lat.h:164:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  164 |     unsigned char  format        __attribute__ ((packed));
      |                                                         ^
lat.h:165:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  165 |     unsigned char  hiver         __attribute__ ((packed)); // Highest protocol version
      |                                                         ^
lat.h:166:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  166 |     unsigned char  lover         __attribute__ ((packed)); // Lowest protocol version
      |                                                         ^
lat.h:167:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  167 |     unsigned char  latver        __attribute__ ((packed)); // LAT version No. (5)
      |                                                         ^
lat.h:168:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  168 |     unsigned char  latver_eco    __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                         ^
lat.h:172:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  172 |     unsigned char  opcode        __attribute__ ((packed));
      |                                                         ^
lat.h:173:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  173 |     unsigned char  modifier      __attribute__ ((packed));
      |                                                         ^
lat.h:200:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  200 |     unsigned char  cmd           __attribute__ ((packed));
      |                                                         ^
lat.h:201:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  201 |     unsigned char  format        __attribute__ ((packed));
      |                                                         ^
lat.h:202:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  202 |     unsigned char  hiver         __attribute__ ((packed)); // Highest protocol version
      |                                                         ^
lat.h:203:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  203 |     unsigned char  lover         __attribute__ ((packed)); // Lowest protocol version
      |                                                         ^
lat.h:204:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  204 |     unsigned char  latver        __attribute__ ((packed)); // LAT version No. (5)
      |                                                         ^
lat.h:205:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  205 |     unsigned char  latver_eco    __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                         ^
lat.h:208:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  208 |     unsigned char  entry_count   __attribute__ ((packed));
      |                                                         ^
In file included from llogincircuit.cc:37:
server.h:237:9: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
  237 |         const bool operator==(serviceinfo &si)  { return (si == name);}
      |         ^~~~~
server.h:238:9: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
  238 |         const bool operator==(const std::string &nm) { return (nm == name);}
      |         ^~~~~
server.h:239:9: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
  239 |         const bool operator!=(serviceinfo &si)  { return (si != name);}
      |         ^~~~~
server.h:240:9: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
  240 |         const bool operator!=(const std::string &nm) { return (nm != name);}
      |         ^~~~~
server.h:206:105: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  206 |         serviceinfo(std::string n, int r, bool s, std::string i = std::string(""), int mc=0, char* comm="",
      |                                                                                                         ^~
llogincircuit.cc: In member function 'virtual bool LLOGINCircuit::do_command()':
<command-line>: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
llogincircuit.cc:89:39: note: in expansion of macro 'VERSION'
   89 |             send_reply(LATCP_VERSION, VERSION, -1);
      |                                       ^~~~~~~
llogincircuit.cc:94:40: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
   94 |             send_reply(LATCP_ERRORMSG, "llogin version does not match latd version " VERSION, -1);
llogincircuit.cc:137:40: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  137 |             send_reply(LATCP_ERRORMSG, "Error creating client service.", -1);
      |                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
llogincircuit.cc:141:35: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  141 |             send_reply(LATCP_ACK, "", -1);
      |                                   ^~
--- lloginsession.o ---
if c++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"latd\" -DVERSION=\"1.21\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_PTY_H=1 -DHAVE_TERMIOS_H=1 -DHAVE_MCHECK_H=1 -DHAVE_NETINET_ETHER_H=1 -DHAVE_NET_ETHERNET_H=1 -DHAVE_FEATURES_H=1 -DHAVE_OPENPTY=1 -DLOGIN_BIN=\"/bin/login\" -DLATCP_SOCKNAME=\"/var/run/latcp\" -DLLOGIN_SOCKNAME=\"/var/run/latlogin\" -I. -I. -DLATD_CONF=\"/usr/pkg/etc/latd.conf\" -DSBINDIR=\"/usr/pkg/sbin\" -DBINDIR=\"/usr/pkg/bin\"   -DPREFIX="\"/usr/pkg\"" -fno-rtti -fno-exceptions -Wstrict-prototypes -Wno-unused -pipe -O2 -DENABLE_DEFAULT_SERVICE -W -MT lloginsession.o -MD -MP -MF ".deps/lloginsession.Tpo"  -c -o lloginsession.o `test -f 'lloginsession.cc' || echo './'`lloginsession.cc;  then mv -f ".deps/lloginsession.Tpo" ".deps/lloginsession.Po";  else rm -f ".deps/lloginsession.Tpo"; exit 1;  fi
cc1plus: warning: command-line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
In file included from /usr/include/c++/11/backward/strstream:50,
                 from lloginsession.cc:25:
/usr/include/c++/11/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. [-Wcpp]
   32 | #warning \
      |  ^~~~~~~
--- localportsession.o ---
if c++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"latd\" -DVERSION=\"1.21\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_PTY_H=1 -DHAVE_TERMIOS_H=1 -DHAVE_MCHECK_H=1 -DHAVE_NETINET_ETHER_H=1 -DHAVE_NET_ETHERNET_H=1 -DHAVE_FEATURES_H=1 -DHAVE_OPENPTY=1 -DLOGIN_BIN=\"/bin/login\" -DLATCP_SOCKNAME=\"/var/run/latcp\" -DLLOGIN_SOCKNAME=\"/var/run/latlogin\" -I. -I. -DLATD_CONF=\"/usr/pkg/etc/latd.conf\" -DSBINDIR=\"/usr/pkg/sbin\" -DBINDIR=\"/usr/pkg/bin\"   -DPREFIX="\"/usr/pkg\"" -fno-rtti -fno-exceptions -Wstrict-prototypes -Wno-unused -pipe -O2 -DENABLE_DEFAULT_SERVICE -W -MT localportsession.o -MD -MP -MF ".deps/localportsession.Tpo"  -c -o localportsession.o `test -f 'localportsession.cc' || echo './'`localportsession.cc;  then mv -f ".deps/localportsession.Tpo" ".deps/localportsession.Po";  else rm -f ".deps/localportsession.Tpo"; exit 1;  fi
cc1plus: warning: command-line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
In file included from /usr/include/c++/11/backward/strstream:50,
                 from localportsession.cc:30:
/usr/include/c++/11/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. [-Wcpp]
   32 | #warning \
      |  ^~~~~~~
--- lloginsession.o ---
In file included from lloginsession.cc:27:
lat.h:34:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   34 |     unsigned char  cmd             __attribute__ ((packed));
      |                                                           ^
lat.h:35:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   35 |     unsigned char  num_slots       __attribute__ ((packed));
      |                                                           ^
lat.h:38:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   38 |     unsigned char  sequence_number __attribute__ ((packed));
      |                                                           ^
lat.h:39:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   39 |     unsigned char  ack_number      __attribute__ ((packed));
      |                                                           ^
lat.h:45:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   45 |   unsigned char  cmd             __attribute__ ((packed));
      |                                                         ^
lat.h:46:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   46 |   unsigned char  dummy           __attribute__ ((packed));
      |                                                         ^
lat.h:47:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   47 |   unsigned char  hiver           __attribute__ ((packed)); // Highest protocol version
      |                                                         ^
lat.h:48:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   48 |   unsigned char  lover           __attribute__ ((packed)); // Lowest protocol version
      |                                                         ^
lat.h:49:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   49 |   unsigned char  latver          __attribute__ ((packed)); // LAT version No. (5)
      |                                                         ^
lat.h:50:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   50 |   unsigned char  latver_eco      __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                         ^
lat.h:59:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   59 |     unsigned char  cmd             __attribute__ ((packed));
      |                                                           ^
lat.h:60:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   60 |     unsigned char  dummy           __attribute__ ((packed));
      |                                                           ^
lat.h:61:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   61 |     unsigned char  hiver           __attribute__ ((packed)); // Highest protocol version
      |                                                           ^
lat.h:62:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   62 |     unsigned char  lover           __attribute__ ((packed)); // Lowest protocol version
      |                                                           ^
lat.h:63:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   63 |     unsigned char  latver          __attribute__ ((packed)); // LAT version No. (5)
      |                                                           ^
lat.h:64:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   64 |     unsigned char  latver_eco      __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                           ^
lat.h:75:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   75 |   unsigned char  cmd             __attribute__ ((packed)); // always 0x28
      |                                                         ^
lat.h:76:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   76 |   unsigned char  circuit_timer   __attribute__ ((packed)); // in 10s milliseconds
      |                                                         ^
lat.h:77:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   77 |   unsigned char  hiver           __attribute__ ((packed)); // Highest protocol version
      |                                                         ^
lat.h:78:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   78 |   unsigned char  lover           __attribute__ ((packed)); // Lowest protocol version
      |                                                         ^
lat.h:79:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   79 |   unsigned char  latver          __attribute__ ((packed)); // LAT version No. (5)
      |                                                         ^
lat.h:80:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   80 |   unsigned char  latver_eco      __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                         ^
lat.h:81:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   81 |   unsigned char  incarnation     __attribute__ ((packed)); // Message incarnation
      |                                                         ^
lat.h:82:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   82 |   unsigned char  flags           __attribute__ ((packed)); // Change flags
      |                                                         ^
lat.h:84:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   84 |   unsigned char  multicast_timer __attribute__ ((packed)); // Multicast timer (seconds)
      |                                                         ^
lat.h:85:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   85 |   unsigned char  node_status     __attribute__ ((packed)); // 2 (accepting connections)
      |                                                         ^
lat.h:86:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   86 |   unsigned char  group_length    __attribute__ ((packed));
      |                                                         ^
lat.h:99:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   99 |     unsigned char  latver      __attribute__ ((packed)); // LAT version No. (5)
      |                                                       ^
lat.h:100:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  100 |     unsigned char  latver_eco  __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                       ^
lat.h:101:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  101 |     unsigned char  maxsessions __attribute__ ((packed));
      |                                                       ^
lat.h:102:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  102 |     unsigned char  exqueued    __attribute__ ((packed)); // Extra data link buffer queued
      |                                                       ^
lat.h:103:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  103 |     unsigned char  circtimer   __attribute__ ((packed)); // in 10s of milliseconds
      |                                                       ^
lat.h:104:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  104 |     unsigned char  keepalive   __attribute__ ((packed)); // in seconds
      |                                                       ^
lat.h:106:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  106 |     unsigned char  prodtype    __attribute__ ((packed));
      |                                                       ^
lat.h:107:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  107 |     unsigned char  prodver     __attribute__ ((packed));
      |                                                       ^
lat.h:119:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  119 |     unsigned char  latver      __attribute__ ((packed)); // LAT version No. (5)
      |                                                       ^
lat.h:120:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  120 |     unsigned char  latver_eco  __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                       ^
lat.h:121:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  121 |     unsigned char  maxsessions __attribute__ ((packed));
      |                                                       ^
lat.h:122:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  122 |     unsigned char  exqueued    __attribute__ ((packed));
      |                                                       ^
lat.h:123:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  123 |     unsigned char  circtimer   __attribute__ ((packed));
      |                                                       ^
lat.h:124:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  124 |     unsigned char  keepalive   __attribute__ ((packed));
      |                                                       ^
lat.h:126:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  126 |     unsigned char  prodtype    __attribute__ ((packed));
      |                                                       ^
lat.h:127:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  127 |     unsigned char  prodver     __attribute__ ((packed));
      |                                                       ^
lat.h:139:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  139 |     unsigned char local_session  __attribute__ ((packed));
      |                                                         ^
lat.h:140:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  140 |     unsigned char remote_session __attribute__ ((packed));
      |                                                         ^
lat.h:141:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  141 |     unsigned char length         __attribute__ ((packed));
      |                                                         ^
lat.h:142:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  142 |     unsigned char cmd            __attribute__ ((packed));
      |                                                         ^
lat.h:148:48: warning: 'packed' attribute ignored for field of type 'LAT_Header' [-Wattributes]
  148 |     LAT_Header  header  __attribute__ ((packed));
      |                                                ^
lat.h:149:48: warning: 'packed' attribute ignored for field of type 'LAT_SlotCmd' [-Wattributes]
  149 |     LAT_SlotCmd slot    __attribute__ ((packed));
      |                                                ^
lat.h:154:56: warning: 'packed' attribute ignored for field of type 'LAT_Header' [-Wattributes]
  154 |     LAT_Header    header        __attribute__ ((packed));
      |                                                        ^
lat.h:155:56: warning: 'packed' attribute ignored for field of type 'LAT_SlotCmd' [-Wattributes]
  155 |     LAT_SlotCmd   slot          __attribute__ ((packed));
      |                                                        ^
lat.h:156:56: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  156 |     unsigned char serviceclass  __attribute__ ((packed));
      |                                                        ^
lat.h:157:56: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  157 |     unsigned char attslotsize   __attribute__ ((packed));
      |                                                        ^
lat.h:158:56: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  158 |     unsigned char dataslotsize  __attribute__ ((packed));
      |                                                        ^
lat.h:163:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  163 |     unsigned char  cmd           __attribute__ ((packed));
      |                                                         ^
lat.h:164:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  164 |     unsigned char  format        __attribute__ ((packed));
      |                                                         ^
lat.h:165:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  165 |     unsigned char  hiver         __attribute__ ((packed)); // Highest protocol version
      |                                                         ^
lat.h:166:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  166 |     unsigned char  lover         __attribute__ ((packed)); // Lowest protocol version
      |                                                         ^
lat.h:167:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  167 |     unsigned char  latver        __attribute__ ((packed)); // LAT version No. (5)
      |                                                         ^
lat.h:168:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  168 |     unsigned char  latver_eco    __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                         ^
lat.h:172:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  172 |     unsigned char  opcode        __attribute__ ((packed));
      |                                                         ^
lat.h:173:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  173 |     unsigned char  modifier      __attribute__ ((packed));
      |                                                         ^
lat.h:200:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  200 |     unsigned char  cmd           __attribute__ ((packed));
      |                                                         ^
lat.h:201:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  201 |     unsigned char  format        __attribute__ ((packed));
      |                                                         ^
lat.h:202:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  202 |     unsigned char  hiver         __attribute__ ((packed)); // Highest protocol version
      |                                                         ^
lat.h:203:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  203 |     unsigned char  lover         __attribute__ ((packed)); // Lowest protocol version
      |                                                         ^
lat.h:204:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  204 |     unsigned char  latver        __attribute__ ((packed)); // LAT version No. (5)
      |                                                         ^
lat.h:205:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  205 |     unsigned char  latver_eco    __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                         ^
lat.h:208:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  208 |     unsigned char  entry_count   __attribute__ ((packed));
      |                                                         ^
In file included from lloginsession.cc:34:
server.h:237:9: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
  237 |         const bool operator==(serviceinfo &si)  { return (si == name);}
      |         ^~~~~
server.h:238:9: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
  238 |         const bool operator==(const std::string &nm) { return (nm == name);}
      |         ^~~~~
server.h:239:9: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
  239 |         const bool operator!=(serviceinfo &si)  { return (si != name);}
      |         ^~~~~
server.h:240:9: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
  240 |         const bool operator!=(const std::string &nm) { return (nm != name);}
      |         ^~~~~
server.h:206:105: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  206 |         serviceinfo(std::string n, int r, bool s, std::string i = std::string(""), int mc=0, char* comm="",
      |                                                                                                         ^~
lloginsession.cc: In member function 'virtual void lloginSession::disconnect_session(int)':
lloginsession.cc:158:14: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)' declared with attribute 'warn_unused_result' [-Wunused-result]
  158 |         write(master_fd, msg, strlen(msg));
      |         ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lloginsession.cc:159:14: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)' declared with attribute 'warn_unused_result' [-Wunused-result]
  159 |         write(master_fd, "\n", 1);
      |         ~~~~~^~~~~~~~~~~~~~~~~~~~
lloginsession.cc: In member function 'virtual void lloginSession::show_status(unsigned char*, LAT_StatusEntry*)':
lloginsession.cc:188:14: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)' declared with attribute 'warn_unused_result' [-Wunused-result]
  188 |         write(master_fd, buffer, len);
      |         ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
lloginsession.cc: In member function 'virtual void lloginSession::start_port()':
lloginsession.cc:198:14: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)' declared with attribute 'warn_unused_result' [-Wunused-result]
  198 |         write(master_fd, "LAT: Connected\n", 15);
      |         ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lloginsession.cc: In constructor 'lloginSession::lloginSession(LATConnection&, unsigned char, unsigned char, char*, int)':
lloginsession.cc:43:43: warning: '*this.lloginSession::<anonymous>.ClientSession::<anonymous>.LATSession::clean' is used uninitialized [-Wuninitialized]
   43 |     ClientSession(p, remid, localid, lta, clean),
      |                                           ^~~~~
--- localportsession.o ---
In file included from localportsession.cc:32:
lat.h:34:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   34 |     unsigned char  cmd             __attribute__ ((packed));
      |                                                           ^
lat.h:35:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   35 |     unsigned char  num_slots       __attribute__ ((packed));
      |                                                           ^
lat.h:38:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   38 |     unsigned char  sequence_number __attribute__ ((packed));
      |                                                           ^
lat.h:39:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   39 |     unsigned char  ack_number      __attribute__ ((packed));
      |                                                           ^
lat.h:45:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   45 |   unsigned char  cmd             __attribute__ ((packed));
      |                                                         ^
lat.h:46:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   46 |   unsigned char  dummy           __attribute__ ((packed));
      |                                                         ^
lat.h:47:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   47 |   unsigned char  hiver           __attribute__ ((packed)); // Highest protocol version
      |                                                         ^
lat.h:48:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   48 |   unsigned char  lover           __attribute__ ((packed)); // Lowest protocol version
      |                                                         ^
lat.h:49:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   49 |   unsigned char  latver          __attribute__ ((packed)); // LAT version No. (5)
      |                                                         ^
lat.h:50:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   50 |   unsigned char  latver_eco      __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                         ^
lat.h:59:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   59 |     unsigned char  cmd             __attribute__ ((packed));
      |                                                           ^
lat.h:60:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   60 |     unsigned char  dummy           __attribute__ ((packed));
      |                                                           ^
lat.h:61:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   61 |     unsigned char  hiver           __attribute__ ((packed)); // Highest protocol version
      |                                                           ^
lat.h:62:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   62 |     unsigned char  lover           __attribute__ ((packed)); // Lowest protocol version
      |                                                           ^
lat.h:63:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   63 |     unsigned char  latver          __attribute__ ((packed)); // LAT version No. (5)
      |                                                           ^
lat.h:64:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   64 |     unsigned char  latver_eco      __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                           ^
lat.h:75:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   75 |   unsigned char  cmd             __attribute__ ((packed)); // always 0x28
      |                                                         ^
lat.h:76:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   76 |   unsigned char  circuit_timer   __attribute__ ((packed)); // in 10s milliseconds
      |                                                         ^
lat.h:77:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   77 |   unsigned char  hiver           __attribute__ ((packed)); // Highest protocol version
      |                                                         ^
lat.h:78:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   78 |   unsigned char  lover           __attribute__ ((packed)); // Lowest protocol version
      |                                                         ^
lat.h:79:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   79 |   unsigned char  latver          __attribute__ ((packed)); // LAT version No. (5)
      |                                                         ^
lat.h:80:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   80 |   unsigned char  latver_eco      __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                         ^
lat.h:81:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   81 |   unsigned char  incarnation     __attribute__ ((packed)); // Message incarnation
      |                                                         ^
lat.h:82:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   82 |   unsigned char  flags           __attribute__ ((packed)); // Change flags
      |                                                         ^
lat.h:84:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   84 |   unsigned char  multicast_timer __attribute__ ((packed)); // Multicast timer (seconds)
      |                                                         ^
lat.h:85:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   85 |   unsigned char  node_status     __attribute__ ((packed)); // 2 (accepting connections)
      |                                                         ^
lat.h:86:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   86 |   unsigned char  group_length    __attribute__ ((packed));
      |                                                         ^
lat.h:99:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   99 |     unsigned char  latver      __attribute__ ((packed)); // LAT version No. (5)
      |                                                       ^
lat.h:100:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  100 |     unsigned char  latver_eco  __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                       ^
lat.h:101:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  101 |     unsigned char  maxsessions __attribute__ ((packed));
      |                                                       ^
lat.h:102:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  102 |     unsigned char  exqueued    __attribute__ ((packed)); // Extra data link buffer queued
      |                                                       ^
lat.h:103:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  103 |     unsigned char  circtimer   __attribute__ ((packed)); // in 10s of milliseconds
      |                                                       ^
lat.h:104:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  104 |     unsigned char  keepalive   __attribute__ ((packed)); // in seconds
      |                                                       ^
lat.h:106:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  106 |     unsigned char  prodtype    __attribute__ ((packed));
      |                                                       ^
lat.h:107:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  107 |     unsigned char  prodver     __attribute__ ((packed));
      |                                                       ^
lat.h:119:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  119 |     unsigned char  latver      __attribute__ ((packed)); // LAT version No. (5)
      |                                                       ^
lat.h:120:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  120 |     unsigned char  latver_eco  __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                       ^
lat.h:121:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  121 |     unsigned char  maxsessions __attribute__ ((packed));
      |                                                       ^
lat.h:122:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  122 |     unsigned char  exqueued    __attribute__ ((packed));
      |                                                       ^
lat.h:123:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  123 |     unsigned char  circtimer   __attribute__ ((packed));
      |                                                       ^
lat.h:124:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  124 |     unsigned char  keepalive   __attribute__ ((packed));
      |                                                       ^
lat.h:126:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  126 |     unsigned char  prodtype    __attribute__ ((packed));
      |                                                       ^
lat.h:127:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  127 |     unsigned char  prodver     __attribute__ ((packed));
      |                                                       ^
lat.h:139:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  139 |     unsigned char local_session  __attribute__ ((packed));
      |                                                         ^
lat.h:140:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  140 |     unsigned char remote_session __attribute__ ((packed));
      |                                                         ^
lat.h:141:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  141 |     unsigned char length         __attribute__ ((packed));
      |                                                         ^
lat.h:142:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  142 |     unsigned char cmd            __attribute__ ((packed));
      |                                                         ^
lat.h:148:48: warning: 'packed' attribute ignored for field of type 'LAT_Header' [-Wattributes]
  148 |     LAT_Header  header  __attribute__ ((packed));
      |                                                ^
lat.h:149:48: warning: 'packed' attribute ignored for field of type 'LAT_SlotCmd' [-Wattributes]
  149 |     LAT_SlotCmd slot    __attribute__ ((packed));
      |                                                ^
lat.h:154:56: warning: 'packed' attribute ignored for field of type 'LAT_Header' [-Wattributes]
  154 |     LAT_Header    header        __attribute__ ((packed));
      |                                                        ^
lat.h:155:56: warning: 'packed' attribute ignored for field of type 'LAT_SlotCmd' [-Wattributes]
  155 |     LAT_SlotCmd   slot          __attribute__ ((packed));
      |                                                        ^
lat.h:156:56: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  156 |     unsigned char serviceclass  __attribute__ ((packed));
      |                                                        ^
lat.h:157:56: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  157 |     unsigned char attslotsize   __attribute__ ((packed));
      |                                                        ^
lat.h:158:56: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  158 |     unsigned char dataslotsize  __attribute__ ((packed));
      |                                                        ^
lat.h:163:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  163 |     unsigned char  cmd           __attribute__ ((packed));
      |                                                         ^
lat.h:164:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  164 |     unsigned char  format        __attribute__ ((packed));
      |                                                         ^
lat.h:165:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  165 |     unsigned char  hiver         __attribute__ ((packed)); // Highest protocol version
      |                                                         ^
lat.h:166:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  166 |     unsigned char  lover         __attribute__ ((packed)); // Lowest protocol version
      |                                                         ^
lat.h:167:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  167 |     unsigned char  latver        __attribute__ ((packed)); // LAT version No. (5)
      |                                                         ^
lat.h:168:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  168 |     unsigned char  latver_eco    __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                         ^
lat.h:172:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  172 |     unsigned char  opcode        __attribute__ ((packed));
      |                                                         ^
lat.h:173:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  173 |     unsigned char  modifier      __attribute__ ((packed));
      |                                                         ^
lat.h:200:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  200 |     unsigned char  cmd           __attribute__ ((packed));
      |                                                         ^
lat.h:201:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  201 |     unsigned char  format        __attribute__ ((packed));
      |                                                         ^
lat.h:202:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  202 |     unsigned char  hiver         __attribute__ ((packed)); // Highest protocol version
      |                                                         ^
lat.h:203:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  203 |     unsigned char  lover         __attribute__ ((packed)); // Lowest protocol version
      |                                                         ^
lat.h:204:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  204 |     unsigned char  latver        __attribute__ ((packed)); // LAT version No. (5)
      |                                                         ^
lat.h:205:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  205 |     unsigned char  latver_eco    __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                         ^
lat.h:208:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  208 |     unsigned char  entry_count   __attribute__ ((packed));
      |                                                         ^
In file included from localportsession.cc:39:
server.h:237:9: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
  237 |         const bool operator==(serviceinfo &si)  { return (si == name);}
      |         ^~~~~
server.h:238:9: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
  238 |         const bool operator==(const std::string &nm) { return (nm == name);}
      |         ^~~~~
server.h:239:9: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
  239 |         const bool operator!=(serviceinfo &si)  { return (si != name);}
      |         ^~~~~
server.h:240:9: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
  240 |         const bool operator!=(const std::string &nm) { return (nm != name);}
      |         ^~~~~
server.h:206:105: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  206 |         serviceinfo(std::string n, int r, bool s, std::string i = std::string(""), int mc=0, char* comm="",
      |                                                                                                         ^~
--- queuedsession.o ---
if c++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"latd\" -DVERSION=\"1.21\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_PTY_H=1 -DHAVE_TERMIOS_H=1 -DHAVE_MCHECK_H=1 -DHAVE_NETINET_ETHER_H=1 -DHAVE_NET_ETHERNET_H=1 -DHAVE_FEATURES_H=1 -DHAVE_OPENPTY=1 -DLOGIN_BIN=\"/bin/login\" -DLATCP_SOCKNAME=\"/var/run/latcp\" -DLLOGIN_SOCKNAME=\"/var/run/latlogin\" -I. -I. -DLATD_CONF=\"/usr/pkg/etc/latd.conf\" -DSBINDIR=\"/usr/pkg/sbin\" -DBINDIR=\"/usr/pkg/bin\"   -DPREFIX="\"/usr/pkg\"" -fno-rtti -fno-exceptions -Wstrict-prototypes -Wno-unused -pipe -O2 -DENABLE_DEFAULT_SERVICE -W -MT queuedsession.o -MD -MP -MF ".deps/queuedsession.Tpo"  -c -o queuedsession.o `test -f 'queuedsession.cc' || echo './'`queuedsession.cc;  then mv -f ".deps/queuedsession.Tpo" ".deps/queuedsession.Po";  else rm -f ".deps/queuedsession.Tpo"; exit 1;  fi
--- localportsession.o ---
localportsession.cc: In constructor 'localportSession::localportSession(LATConnection&, LocalPort*, unsigned char, unsigned char, char*, int)':
localportsession.cc:48:43: warning: '*this.localportSession::<anonymous>.lloginSession::<anonymous>.ClientSession::<anonymous>.LATSession::clean' is used uninitialized [-Wuninitialized]
   48 |     lloginSession(p, remid, localid, lta, clean),
      |                                           ^~~~~
--- queuedsession.o ---
cc1plus: warning: command-line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
--- localport.o ---
if c++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"latd\" -DVERSION=\"1.21\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_PTY_H=1 -DHAVE_TERMIOS_H=1 -DHAVE_MCHECK_H=1 -DHAVE_NETINET_ETHER_H=1 -DHAVE_NET_ETHERNET_H=1 -DHAVE_FEATURES_H=1 -DHAVE_OPENPTY=1 -DLOGIN_BIN=\"/bin/login\" -DLATCP_SOCKNAME=\"/var/run/latcp\" -DLLOGIN_SOCKNAME=\"/var/run/latlogin\" -I. -I. -DLATD_CONF=\"/usr/pkg/etc/latd.conf\" -DSBINDIR=\"/usr/pkg/sbin\" -DBINDIR=\"/usr/pkg/bin\"   -DPREFIX="\"/usr/pkg\"" -fno-rtti -fno-exceptions -Wstrict-prototypes -Wno-unused -pipe -O2 -DENABLE_DEFAULT_SERVICE -W -MT localport.o -MD -MP -MF ".deps/localport.Tpo"  -c -o localport.o `test -f 'localport.cc' || echo './'`localport.cc;  then mv -f ".deps/localport.Tpo" ".deps/localport.Po";  else rm -f ".deps/localport.Tpo"; exit 1;  fi
--- queuedsession.o ---
In file included from /usr/include/c++/11/backward/strstream:50,
                 from queuedsession.cc:26:
/usr/include/c++/11/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. [-Wcpp]
   32 | #warning \
      |  ^~~~~~~
--- localport.o ---
cc1plus: warning: command-line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
In file included from /usr/include/c++/11/backward/strstream:50,
                 from localport.cc:25:
/usr/include/c++/11/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. [-Wcpp]
   32 | #warning \
      |  ^~~~~~~
--- queuedsession.o ---
In file included from queuedsession.cc:28:
lat.h:34:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   34 |     unsigned char  cmd             __attribute__ ((packed));
      |                                                           ^
lat.h:35:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   35 |     unsigned char  num_slots       __attribute__ ((packed));
      |                                                           ^
lat.h:38:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   38 |     unsigned char  sequence_number __attribute__ ((packed));
      |                                                           ^
lat.h:39:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   39 |     unsigned char  ack_number      __attribute__ ((packed));
      |                                                           ^
lat.h:45:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   45 |   unsigned char  cmd             __attribute__ ((packed));
      |                                                         ^
lat.h:46:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   46 |   unsigned char  dummy           __attribute__ ((packed));
      |                                                         ^
lat.h:47:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   47 |   unsigned char  hiver           __attribute__ ((packed)); // Highest protocol version
      |                                                         ^
lat.h:48:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   48 |   unsigned char  lover           __attribute__ ((packed)); // Lowest protocol version
      |                                                         ^
lat.h:49:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   49 |   unsigned char  latver          __attribute__ ((packed)); // LAT version No. (5)
      |                                                         ^
lat.h:50:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   50 |   unsigned char  latver_eco      __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                         ^
lat.h:59:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   59 |     unsigned char  cmd             __attribute__ ((packed));
      |                                                           ^
lat.h:60:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   60 |     unsigned char  dummy           __attribute__ ((packed));
      |                                                           ^
lat.h:61:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   61 |     unsigned char  hiver           __attribute__ ((packed)); // Highest protocol version
      |                                                           ^
lat.h:62:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   62 |     unsigned char  lover           __attribute__ ((packed)); // Lowest protocol version
      |                                                           ^
lat.h:63:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   63 |     unsigned char  latver          __attribute__ ((packed)); // LAT version No. (5)
      |                                                           ^
lat.h:64:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   64 |     unsigned char  latver_eco      __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                           ^
lat.h:75:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   75 |   unsigned char  cmd             __attribute__ ((packed)); // always 0x28
      |                                                         ^
lat.h:76:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   76 |   unsigned char  circuit_timer   __attribute__ ((packed)); // in 10s milliseconds
      |                                                         ^
lat.h:77:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   77 |   unsigned char  hiver           __attribute__ ((packed)); // Highest protocol version
      |                                                         ^
lat.h:78:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   78 |   unsigned char  lover           __attribute__ ((packed)); // Lowest protocol version
      |                                                         ^
lat.h:79:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   79 |   unsigned char  latver          __attribute__ ((packed)); // LAT version No. (5)
      |                                                         ^
lat.h:80:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   80 |   unsigned char  latver_eco      __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                         ^
lat.h:81:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   81 |   unsigned char  incarnation     __attribute__ ((packed)); // Message incarnation
      |                                                         ^
lat.h:82:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   82 |   unsigned char  flags           __attribute__ ((packed)); // Change flags
      |                                                         ^
lat.h:84:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   84 |   unsigned char  multicast_timer __attribute__ ((packed)); // Multicast timer (seconds)
      |                                                         ^
lat.h:85:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   85 |   unsigned char  node_status     __attribute__ ((packed)); // 2 (accepting connections)
      |                                                         ^
lat.h:86:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   86 |   unsigned char  group_length    __attribute__ ((packed));
      |                                                         ^
lat.h:99:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   99 |     unsigned char  latver      __attribute__ ((packed)); // LAT version No. (5)
      |                                                       ^
lat.h:100:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  100 |     unsigned char  latver_eco  __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                       ^
lat.h:101:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  101 |     unsigned char  maxsessions __attribute__ ((packed));
      |                                                       ^
lat.h:102:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  102 |     unsigned char  exqueued    __attribute__ ((packed)); // Extra data link buffer queued
      |                                                       ^
lat.h:103:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  103 |     unsigned char  circtimer   __attribute__ ((packed)); // in 10s of milliseconds
      |                                                       ^
lat.h:104:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  104 |     unsigned char  keepalive   __attribute__ ((packed)); // in seconds
      |                                                       ^
lat.h:106:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  106 |     unsigned char  prodtype    __attribute__ ((packed));
      |                                                       ^
lat.h:107:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  107 |     unsigned char  prodver     __attribute__ ((packed));
      |                                                       ^
lat.h:119:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  119 |     unsigned char  latver      __attribute__ ((packed)); // LAT version No. (5)
      |                                                       ^
lat.h:120:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  120 |     unsigned char  latver_eco  __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                       ^
lat.h:121:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  121 |     unsigned char  maxsessions __attribute__ ((packed));
      |                                                       ^
lat.h:122:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  122 |     unsigned char  exqueued    __attribute__ ((packed));
      |                                                       ^
lat.h:123:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  123 |     unsigned char  circtimer   __attribute__ ((packed));
      |                                                       ^
lat.h:124:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  124 |     unsigned char  keepalive   __attribute__ ((packed));
      |                                                       ^
lat.h:126:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  126 |     unsigned char  prodtype    __attribute__ ((packed));
      |                                                       ^
lat.h:127:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  127 |     unsigned char  prodver     __attribute__ ((packed));
      |                                                       ^
lat.h:139:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  139 |     unsigned char local_session  __attribute__ ((packed));
      |                                                         ^
lat.h:140:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  140 |     unsigned char remote_session __attribute__ ((packed));
      |                                                         ^
lat.h:141:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  141 |     unsigned char length         __attribute__ ((packed));
      |                                                         ^
lat.h:142:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  142 |     unsigned char cmd            __attribute__ ((packed));
      |                                                         ^
lat.h:148:48: warning: 'packed' attribute ignored for field of type 'LAT_Header' [-Wattributes]
  148 |     LAT_Header  header  __attribute__ ((packed));
      |                                                ^
lat.h:149:48: warning: 'packed' attribute ignored for field of type 'LAT_SlotCmd' [-Wattributes]
  149 |     LAT_SlotCmd slot    __attribute__ ((packed));
      |                                                ^
lat.h:154:56: warning: 'packed' attribute ignored for field of type 'LAT_Header' [-Wattributes]
  154 |     LAT_Header    header        __attribute__ ((packed));
      |                                                        ^
lat.h:155:56: warning: 'packed' attribute ignored for field of type 'LAT_SlotCmd' [-Wattributes]
  155 |     LAT_SlotCmd   slot          __attribute__ ((packed));
      |                                                        ^
lat.h:156:56: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  156 |     unsigned char serviceclass  __attribute__ ((packed));
      |                                                        ^
lat.h:157:56: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  157 |     unsigned char attslotsize   __attribute__ ((packed));
      |                                                        ^
lat.h:158:56: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  158 |     unsigned char dataslotsize  __attribute__ ((packed));
      |                                                        ^
lat.h:163:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  163 |     unsigned char  cmd           __attribute__ ((packed));
      |                                                         ^
lat.h:164:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  164 |     unsigned char  format        __attribute__ ((packed));
      |                                                         ^
lat.h:165:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  165 |     unsigned char  hiver         __attribute__ ((packed)); // Highest protocol version
      |                                                         ^
lat.h:166:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  166 |     unsigned char  lover         __attribute__ ((packed)); // Lowest protocol version
      |                                                         ^
lat.h:167:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  167 |     unsigned char  latver        __attribute__ ((packed)); // LAT version No. (5)
      |                                                         ^
lat.h:168:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  168 |     unsigned char  latver_eco    __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                         ^
lat.h:172:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  172 |     unsigned char  opcode        __attribute__ ((packed));
      |                                                         ^
lat.h:173:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  173 |     unsigned char  modifier      __attribute__ ((packed));
      |                                                         ^
lat.h:200:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  200 |     unsigned char  cmd           __attribute__ ((packed));
      |                                                         ^
lat.h:201:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  201 |     unsigned char  format        __attribute__ ((packed));
      |                                                         ^
lat.h:202:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  202 |     unsigned char  hiver         __attribute__ ((packed)); // Highest protocol version
      |                                                         ^
lat.h:203:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  203 |     unsigned char  lover         __attribute__ ((packed)); // Lowest protocol version
      |                                                         ^
lat.h:204:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  204 |     unsigned char  latver        __attribute__ ((packed)); // LAT version No. (5)
      |                                                         ^
lat.h:205:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  205 |     unsigned char  latver_eco    __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                         ^
lat.h:208:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  208 |     unsigned char  entry_count   __attribute__ ((packed));
      |                                                         ^
--- localport.o ---
In file included from localport.cc:28:
lat.h:34:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   34 |     unsigned char  cmd             __attribute__ ((packed));
      |                                                           ^
lat.h:35:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   35 |     unsigned char  num_slots       __attribute__ ((packed));
      |                                                           ^
lat.h:38:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   38 |     unsigned char  sequence_number __attribute__ ((packed));
      |                                                           ^
lat.h:39:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   39 |     unsigned char  ack_number      __attribute__ ((packed));
      |                                                           ^
lat.h:45:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   45 |   unsigned char  cmd             __attribute__ ((packed));
      |                                                         ^
lat.h:46:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   46 |   unsigned char  dummy           __attribute__ ((packed));
      |                                                         ^
lat.h:47:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   47 |   unsigned char  hiver           __attribute__ ((packed)); // Highest protocol version
      |                                                         ^
lat.h:48:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   48 |   unsigned char  lover           __attribute__ ((packed)); // Lowest protocol version
      |                                                         ^
lat.h:49:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   49 |   unsigned char  latver          __attribute__ ((packed)); // LAT version No. (5)
      |                                                         ^
lat.h:50:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   50 |   unsigned char  latver_eco      __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                         ^
lat.h:59:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   59 |     unsigned char  cmd             __attribute__ ((packed));
      |                                                           ^
lat.h:60:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   60 |     unsigned char  dummy           __attribute__ ((packed));
      |                                                           ^
lat.h:61:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   61 |     unsigned char  hiver           __attribute__ ((packed)); // Highest protocol version
      |                                                           ^
lat.h:62:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   62 |     unsigned char  lover           __attribute__ ((packed)); // Lowest protocol version
      |                                                           ^
lat.h:63:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   63 |     unsigned char  latver          __attribute__ ((packed)); // LAT version No. (5)
      |                                                           ^
lat.h:64:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   64 |     unsigned char  latver_eco      __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                           ^
lat.h:75:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   75 |   unsigned char  cmd             __attribute__ ((packed)); // always 0x28
      |                                                         ^
lat.h:76:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   76 |   unsigned char  circuit_timer   __attribute__ ((packed)); // in 10s milliseconds
      |                                                         ^
lat.h:77:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   77 |   unsigned char  hiver           __attribute__ ((packed)); // Highest protocol version
      |                                                         ^
lat.h:78:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   78 |   unsigned char  lover           __attribute__ ((packed)); // Lowest protocol version
      |                                                         ^
lat.h:79:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   79 |   unsigned char  latver          __attribute__ ((packed)); // LAT version No. (5)
      |                                                         ^
lat.h:80:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   80 |   unsigned char  latver_eco      __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                         ^
lat.h:81:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   81 |   unsigned char  incarnation     __attribute__ ((packed)); // Message incarnation
      |                                                         ^
lat.h:82:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   82 |   unsigned char  flags           __attribute__ ((packed)); // Change flags
      |                                                         ^
lat.h:84:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   84 |   unsigned char  multicast_timer __attribute__ ((packed)); // Multicast timer (seconds)
      |                                                         ^
lat.h:85:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   85 |   unsigned char  node_status     __attribute__ ((packed)); // 2 (accepting connections)
      |                                                         ^
lat.h:86:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   86 |   unsigned char  group_length    __attribute__ ((packed));
      |                                                         ^
lat.h:99:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   99 |     unsigned char  latver      __attribute__ ((packed)); // LAT version No. (5)
      |                                                       ^
lat.h:100:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  100 |     unsigned char  latver_eco  __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                       ^
lat.h:101:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  101 |     unsigned char  maxsessions __attribute__ ((packed));
      |                                                       ^
lat.h:102:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  102 |     unsigned char  exqueued    __attribute__ ((packed)); // Extra data link buffer queued
      |                                                       ^
lat.h:103:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  103 |     unsigned char  circtimer   __attribute__ ((packed)); // in 10s of milliseconds
      |                                                       ^
lat.h:104:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  104 |     unsigned char  keepalive   __attribute__ ((packed)); // in seconds
      |                                                       ^
lat.h:106:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  106 |     unsigned char  prodtype    __attribute__ ((packed));
      |                                                       ^
lat.h:107:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  107 |     unsigned char  prodver     __attribute__ ((packed));
      |                                                       ^
lat.h:119:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  119 |     unsigned char  latver      __attribute__ ((packed)); // LAT version No. (5)
      |                                                       ^
lat.h:120:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  120 |     unsigned char  latver_eco  __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                       ^
lat.h:121:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  121 |     unsigned char  maxsessions __attribute__ ((packed));
      |                                                       ^
lat.h:122:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  122 |     unsigned char  exqueued    __attribute__ ((packed));
      |                                                       ^
lat.h:123:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  123 |     unsigned char  circtimer   __attribute__ ((packed));
      |                                                       ^
lat.h:124:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  124 |     unsigned char  keepalive   __attribute__ ((packed));
      |                                                       ^
lat.h:126:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  126 |     unsigned char  prodtype    __attribute__ ((packed));
      |                                                       ^
lat.h:127:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  127 |     unsigned char  prodver     __attribute__ ((packed));
      |                                                       ^
lat.h:139:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  139 |     unsigned char local_session  __attribute__ ((packed));
      |                                                         ^
lat.h:140:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  140 |     unsigned char remote_session __attribute__ ((packed));
      |                                                         ^
lat.h:141:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  141 |     unsigned char length         __attribute__ ((packed));
      |                                                         ^
lat.h:142:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  142 |     unsigned char cmd            __attribute__ ((packed));
      |                                                         ^
lat.h:148:48: warning: 'packed' attribute ignored for field of type 'LAT_Header' [-Wattributes]
  148 |     LAT_Header  header  __attribute__ ((packed));
      |                                                ^
lat.h:149:48: warning: 'packed' attribute ignored for field of type 'LAT_SlotCmd' [-Wattributes]
  149 |     LAT_SlotCmd slot    __attribute__ ((packed));
      |                                                ^
lat.h:154:56: warning: 'packed' attribute ignored for field of type 'LAT_Header' [-Wattributes]
  154 |     LAT_Header    header        __attribute__ ((packed));
      |                                                        ^
lat.h:155:56: warning: 'packed' attribute ignored for field of type 'LAT_SlotCmd' [-Wattributes]
  155 |     LAT_SlotCmd   slot          __attribute__ ((packed));
      |                                                        ^
lat.h:156:56: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  156 |     unsigned char serviceclass  __attribute__ ((packed));
      |                                                        ^
lat.h:157:56: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  157 |     unsigned char attslotsize   __attribute__ ((packed));
      |                                                        ^
lat.h:158:56: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  158 |     unsigned char dataslotsize  __attribute__ ((packed));
      |                                                        ^
lat.h:163:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  163 |     unsigned char  cmd           __attribute__ ((packed));
      |                                                         ^
lat.h:164:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  164 |     unsigned char  format        __attribute__ ((packed));
      |                                                         ^
lat.h:165:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  165 |     unsigned char  hiver         __attribute__ ((packed)); // Highest protocol version
      |                                                         ^
lat.h:166:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  166 |     unsigned char  lover         __attribute__ ((packed)); // Lowest protocol version
      |                                                         ^
lat.h:167:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  167 |     unsigned char  latver        __attribute__ ((packed)); // LAT version No. (5)
      |                                                         ^
lat.h:168:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  168 |     unsigned char  latver_eco    __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                         ^
lat.h:172:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  172 |     unsigned char  opcode        __attribute__ ((packed));
      |                                                         ^
lat.h:173:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  173 |     unsigned char  modifier      __attribute__ ((packed));
      |                                                         ^
lat.h:200:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  200 |     unsigned char  cmd           __attribute__ ((packed));
      |                                                         ^
lat.h:201:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  201 |     unsigned char  format        __attribute__ ((packed));
      |                                                         ^
lat.h:202:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  202 |     unsigned char  hiver         __attribute__ ((packed)); // Highest protocol version
      |                                                         ^
lat.h:203:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  203 |     unsigned char  lover         __attribute__ ((packed)); // Lowest protocol version
      |                                                         ^
lat.h:204:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  204 |     unsigned char  latver        __attribute__ ((packed)); // LAT version No. (5)
      |                                                         ^
lat.h:205:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  205 |     unsigned char  latver_eco    __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                         ^
lat.h:208:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  208 |     unsigned char  entry_count   __attribute__ ((packed));
      |                                                         ^
In file included from localport.cc:35:
server.h:237:9: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
  237 |         const bool operator==(serviceinfo &si)  { return (si == name);}
      |         ^~~~~
server.h:238:9: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
  238 |         const bool operator==(const std::string &nm) { return (nm == name);}
      |         ^~~~~
server.h:239:9: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
  239 |         const bool operator!=(serviceinfo &si)  { return (si != name);}
      |         ^~~~~
server.h:240:9: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
  240 |         const bool operator!=(const std::string &nm) { return (nm != name);}
      |         ^~~~~
--- queuedsession.o ---
In file included from queuedsession.cc:35:
server.h:237:9: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
  237 |         const bool operator==(serviceinfo &si)  { return (si == name);}
      |         ^~~~~
server.h:238:9: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
  238 |         const bool operator==(const std::string &nm) { return (nm == name);}
      |         ^~~~~
server.h:239:9: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
  239 |         const bool operator!=(serviceinfo &si)  { return (si != name);}
      |         ^~~~~
server.h:240:9: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
  240 |         const bool operator!=(const std::string &nm) { return (nm != name);}
      |         ^~~~~
--- localport.o ---
server.h:206:105: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  206 |         serviceinfo(std::string n, int r, bool s, std::string i = std::string(""), int mc=0, char* comm="",
      |                                                                                                         ^~
localport.cc: In member function 'void LocalPort::init_port()':
localport.cc:118:12: warning: ignoring return value of 'int symlink(const char*, const char*)' declared with attribute 'warn_unused_result' [-Wunused-result]
  118 |     symlink(ptyname, devname.c_str());
      |     ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
localport.cc:129:14: warning: ignoring return value of 'int chown(const char*, __uid_t, __gid_t)' declared with attribute 'warn_unused_result' [-Wunused-result]
  129 |         chown(ptyname, 0, lat_group);
      |         ~~~~~^~~~~~~~~~~~~~~~~~~~~~~
localport.cc: In member function 'void LocalPort::disconnect_session(int)':
localport.cc:186:14: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)' declared with attribute 'warn_unused_result' [-Wunused-result]
  186 |         write(master_fd, msg, strlen(msg));
      |         ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
localport.cc:187:14: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)' declared with attribute 'warn_unused_result' [-Wunused-result]
  187 |         write(master_fd, "\n", 1);
      |         ~~~~~^~~~~~~~~~~~~~~~~~~~
--- queuedsession.o ---
server.h:206:105: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  206 |         serviceinfo(std::string n, int r, bool s, std::string i = std::string(""), int mc=0, char* comm="",
      |                                                                                                         ^~
--- server.o ---
if c++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"latd\" -DVERSION=\"1.21\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_PTY_H=1 -DHAVE_TERMIOS_H=1 -DHAVE_MCHECK_H=1 -DHAVE_NETINET_ETHER_H=1 -DHAVE_NET_ETHERNET_H=1 -DHAVE_FEATURES_H=1 -DHAVE_OPENPTY=1 -DLOGIN_BIN=\"/bin/login\" -DLATCP_SOCKNAME=\"/var/run/latcp\" -DLLOGIN_SOCKNAME=\"/var/run/latlogin\" -I. -I. -DLATD_CONF=\"/usr/pkg/etc/latd.conf\" -DSBINDIR=\"/usr/pkg/sbin\" -DBINDIR=\"/usr/pkg/bin\"   -DPREFIX="\"/usr/pkg\"" -fno-rtti -fno-exceptions -Wstrict-prototypes -Wno-unused -pipe -O2 -DENABLE_DEFAULT_SERVICE -W -MT server.o -MD -MP -MF ".deps/server.Tpo"  -c -o server.o `test -f 'server.cc' || echo './'`server.cc;  then mv -f ".deps/server.Tpo" ".deps/server.Po";  else rm -f ".deps/server.Tpo"; exit 1;  fi
cc1plus: warning: command-line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
--- serversession.o ---
if c++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"latd\" -DVERSION=\"1.21\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_PTY_H=1 -DHAVE_TERMIOS_H=1 -DHAVE_MCHECK_H=1 -DHAVE_NETINET_ETHER_H=1 -DHAVE_NET_ETHERNET_H=1 -DHAVE_FEATURES_H=1 -DHAVE_OPENPTY=1 -DLOGIN_BIN=\"/bin/login\" -DLATCP_SOCKNAME=\"/var/run/latcp\" -DLLOGIN_SOCKNAME=\"/var/run/latlogin\" -I. -I. -DLATD_CONF=\"/usr/pkg/etc/latd.conf\" -DSBINDIR=\"/usr/pkg/sbin\" -DBINDIR=\"/usr/pkg/bin\"   -DPREFIX="\"/usr/pkg\"" -fno-rtti -fno-exceptions -Wstrict-prototypes -Wno-unused -pipe -O2 -DENABLE_DEFAULT_SERVICE -W -MT serversession.o -MD -MP -MF ".deps/serversession.Tpo"  -c -o serversession.o `test -f 'serversession.cc' || echo './'`serversession.cc;  then mv -f ".deps/serversession.Tpo" ".deps/serversession.Po";  else rm -f ".deps/serversession.Tpo"; exit 1;  fi
--- server.o ---
In file included from /usr/include/c++/11/backward/strstream:50,
                 from server.cc:51:
/usr/include/c++/11/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. [-Wcpp]
   32 | #warning \
      |  ^~~~~~~
--- serversession.o ---
cc1plus: warning: command-line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
In file included from /usr/include/c++/11/backward/strstream:50,
                 from serversession.cc:31:
/usr/include/c++/11/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. [-Wcpp]
   32 | #warning \
      |  ^~~~~~~
--- server.o ---
In file included from server.cc:54:
lat.h:34:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   34 |     unsigned char  cmd             __attribute__ ((packed));
      |                                                           ^
lat.h:35:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   35 |     unsigned char  num_slots       __attribute__ ((packed));
      |                                                           ^
lat.h:38:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   38 |     unsigned char  sequence_number __attribute__ ((packed));
      |                                                           ^
lat.h:39:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   39 |     unsigned char  ack_number      __attribute__ ((packed));
      |                                                           ^
lat.h:45:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   45 |   unsigned char  cmd             __attribute__ ((packed));
      |                                                         ^
lat.h:46:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   46 |   unsigned char  dummy           __attribute__ ((packed));
      |                                                         ^
lat.h:47:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   47 |   unsigned char  hiver           __attribute__ ((packed)); // Highest protocol version
      |                                                         ^
lat.h:48:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   48 |   unsigned char  lover           __attribute__ ((packed)); // Lowest protocol version
      |                                                         ^
lat.h:49:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   49 |   unsigned char  latver          __attribute__ ((packed)); // LAT version No. (5)
      |                                                         ^
lat.h:50:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   50 |   unsigned char  latver_eco      __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                         ^
lat.h:59:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   59 |     unsigned char  cmd             __attribute__ ((packed));
      |                                                           ^
lat.h:60:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   60 |     unsigned char  dummy           __attribute__ ((packed));
      |                                                           ^
lat.h:61:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   61 |     unsigned char  hiver           __attribute__ ((packed)); // Highest protocol version
      |                                                           ^
lat.h:62:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   62 |     unsigned char  lover           __attribute__ ((packed)); // Lowest protocol version
      |                                                           ^
lat.h:63:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   63 |     unsigned char  latver          __attribute__ ((packed)); // LAT version No. (5)
      |                                                           ^
lat.h:64:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   64 |     unsigned char  latver_eco      __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                           ^
lat.h:75:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   75 |   unsigned char  cmd             __attribute__ ((packed)); // always 0x28
      |                                                         ^
lat.h:76:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   76 |   unsigned char  circuit_timer   __attribute__ ((packed)); // in 10s milliseconds
      |                                                         ^
lat.h:77:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   77 |   unsigned char  hiver           __attribute__ ((packed)); // Highest protocol version
      |                                                         ^
lat.h:78:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   78 |   unsigned char  lover           __attribute__ ((packed)); // Lowest protocol version
      |                                                         ^
lat.h:79:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   79 |   unsigned char  latver          __attribute__ ((packed)); // LAT version No. (5)
      |                                                         ^
lat.h:80:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   80 |   unsigned char  latver_eco      __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                         ^
lat.h:81:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   81 |   unsigned char  incarnation     __attribute__ ((packed)); // Message incarnation
      |                                                         ^
lat.h:82:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   82 |   unsigned char  flags           __attribute__ ((packed)); // Change flags
      |                                                         ^
lat.h:84:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   84 |   unsigned char  multicast_timer __attribute__ ((packed)); // Multicast timer (seconds)
      |                                                         ^
lat.h:85:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   85 |   unsigned char  node_status     __attribute__ ((packed)); // 2 (accepting connections)
      |                                                         ^
lat.h:86:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   86 |   unsigned char  group_length    __attribute__ ((packed));
      |                                                         ^
lat.h:99:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   99 |     unsigned char  latver      __attribute__ ((packed)); // LAT version No. (5)
      |                                                       ^
lat.h:100:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  100 |     unsigned char  latver_eco  __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                       ^
lat.h:101:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  101 |     unsigned char  maxsessions __attribute__ ((packed));
      |                                                       ^
lat.h:102:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  102 |     unsigned char  exqueued    __attribute__ ((packed)); // Extra data link buffer queued
      |                                                       ^
lat.h:103:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  103 |     unsigned char  circtimer   __attribute__ ((packed)); // in 10s of milliseconds
      |                                                       ^
lat.h:104:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  104 |     unsigned char  keepalive   __attribute__ ((packed)); // in seconds
      |                                                       ^
lat.h:106:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  106 |     unsigned char  prodtype    __attribute__ ((packed));
      |                                                       ^
lat.h:107:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  107 |     unsigned char  prodver     __attribute__ ((packed));
      |                                                       ^
lat.h:119:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  119 |     unsigned char  latver      __attribute__ ((packed)); // LAT version No. (5)
      |                                                       ^
lat.h:120:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  120 |     unsigned char  latver_eco  __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                       ^
lat.h:121:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  121 |     unsigned char  maxsessions __attribute__ ((packed));
      |                                                       ^
lat.h:122:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  122 |     unsigned char  exqueued    __attribute__ ((packed));
      |                                                       ^
lat.h:123:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  123 |     unsigned char  circtimer   __attribute__ ((packed));
      |                                                       ^
lat.h:124:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  124 |     unsigned char  keepalive   __attribute__ ((packed));
      |                                                       ^
lat.h:126:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  126 |     unsigned char  prodtype    __attribute__ ((packed));
      |                                                       ^
lat.h:127:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  127 |     unsigned char  prodver     __attribute__ ((packed));
      |                                                       ^
lat.h:139:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  139 |     unsigned char local_session  __attribute__ ((packed));
      |                                                         ^
lat.h:140:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  140 |     unsigned char remote_session __attribute__ ((packed));
      |                                                         ^
lat.h:141:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  141 |     unsigned char length         __attribute__ ((packed));
      |                                                         ^
lat.h:142:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  142 |     unsigned char cmd            __attribute__ ((packed));
      |                                                         ^
lat.h:148:48: warning: 'packed' attribute ignored for field of type 'LAT_Header' [-Wattributes]
  148 |     LAT_Header  header  __attribute__ ((packed));
      |                                                ^
lat.h:149:48: warning: 'packed' attribute ignored for field of type 'LAT_SlotCmd' [-Wattributes]
  149 |     LAT_SlotCmd slot    __attribute__ ((packed));
      |                                                ^
lat.h:154:56: warning: 'packed' attribute ignored for field of type 'LAT_Header' [-Wattributes]
  154 |     LAT_Header    header        __attribute__ ((packed));
      |                                                        ^
lat.h:155:56: warning: 'packed' attribute ignored for field of type 'LAT_SlotCmd' [-Wattributes]
  155 |     LAT_SlotCmd   slot          __attribute__ ((packed));
      |                                                        ^
lat.h:156:56: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  156 |     unsigned char serviceclass  __attribute__ ((packed));
      |                                                        ^
lat.h:157:56: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  157 |     unsigned char attslotsize   __attribute__ ((packed));
      |                                                        ^
lat.h:158:56: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  158 |     unsigned char dataslotsize  __attribute__ ((packed));
      |                                                        ^
lat.h:163:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  163 |     unsigned char  cmd           __attribute__ ((packed));
      |                                                         ^
lat.h:164:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  164 |     unsigned char  format        __attribute__ ((packed));
      |                                                         ^
lat.h:165:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  165 |     unsigned char  hiver         __attribute__ ((packed)); // Highest protocol version
      |                                                         ^
lat.h:166:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  166 |     unsigned char  lover         __attribute__ ((packed)); // Lowest protocol version
      |                                                         ^
lat.h:167:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  167 |     unsigned char  latver        __attribute__ ((packed)); // LAT version No. (5)
      |                                                         ^
lat.h:168:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  168 |     unsigned char  latver_eco    __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                         ^
lat.h:172:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  172 |     unsigned char  opcode        __attribute__ ((packed));
      |                                                         ^
lat.h:173:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  173 |     unsigned char  modifier      __attribute__ ((packed));
      |                                                         ^
lat.h:200:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  200 |     unsigned char  cmd           __attribute__ ((packed));
      |                                                         ^
lat.h:201:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  201 |     unsigned char  format        __attribute__ ((packed));
      |                                                         ^
lat.h:202:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  202 |     unsigned char  hiver         __attribute__ ((packed)); // Highest protocol version
      |                                                         ^
lat.h:203:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  203 |     unsigned char  lover         __attribute__ ((packed)); // Lowest protocol version
      |                                                         ^
lat.h:204:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  204 |     unsigned char  latver        __attribute__ ((packed)); // LAT version No. (5)
      |                                                         ^
lat.h:205:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  205 |     unsigned char  latver_eco    __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                         ^
lat.h:208:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  208 |     unsigned char  entry_count   __attribute__ ((packed));
      |                                                         ^
In file included from server.cc:62:
server.h:237:9: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
  237 |         const bool operator==(serviceinfo &si)  { return (si == name);}
      |         ^~~~~
server.h:238:9: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
  238 |         const bool operator==(const std::string &nm) { return (nm == name);}
      |         ^~~~~
server.h:239:9: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
  239 |         const bool operator!=(serviceinfo &si)  { return (si != name);}
      |         ^~~~~
server.h:240:9: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
  240 |         const bool operator!=(const std::string &nm) { return (nm != name);}
      |         ^~~~~
server.h:206:105: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  206 |         serviceinfo(std::string n, int r, bool s, std::string i = std::string(""), int mc=0, char* comm="",
      |                                                                                                         ^~
server.cc: In member function 'void LATServer::send_solicit_messages(int)':
server.cc:370:32: warning: comparison of integer expressions of different signedness: 'std::__cxx11::list<std::__cxx11::basic_string<char> >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
  370 |         if (slave_nodes.size() < last_list_size)
      |             ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
server.cc:376:28: warning: comparison of integer expressions of different signedness: 'std::__cxx11::list<std::__cxx11::basic_string<char> >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
  376 |     if (slave_nodes.size() > counter && !slave_nodes.empty())
      |         ~~~~~~~~~~~~~~~~~~~^~~~~~~~~
In file included from server.cc:62:
server.h: In member function 'void LATServer::init(bool, int, char*, char*, char**, int, int)':
server.h:206:105: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  206 |         serviceinfo(std::string n, int r, bool s, std::string i = std::string(""), int mc=0, char* comm="",
      |                                                                                                         ^~
server.cc: In member function 'void LATServer::tidy_dev_directory()':
server.cc:78:11: warning: ignoring return value of 'char* getcwd(char*, size_t)' declared with attribute 'warn_unused_result' [-Wunused-result]
   78 |     getcwd(current_dir, sizeof(current_dir));
      |     ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
server.cc:79:10: warning: ignoring return value of 'int chdir(const char*)' declared with attribute 'warn_unused_result' [-Wunused-result]
   79 |     chdir(LAT_DIRECTORY);
      |     ~~~~~^~~~~~~~~~~~~~~
server.cc:90:10: warning: ignoring return value of 'int chdir(const char*)' declared with attribute 'warn_unused_result' [-Wunused-result]
   90 |     chdir(current_dir);
      |     ~~~~~^~~~~~~~~~~~~
--- serversession.o ---
In file included from serversession.cc:33:
lat.h:34:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   34 |     unsigned char  cmd             __attribute__ ((packed));
      |                                                           ^
lat.h:35:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   35 |     unsigned char  num_slots       __attribute__ ((packed));
      |                                                           ^
lat.h:38:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   38 |     unsigned char  sequence_number __attribute__ ((packed));
      |                                                           ^
lat.h:39:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   39 |     unsigned char  ack_number      __attribute__ ((packed));
      |                                                           ^
lat.h:45:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   45 |   unsigned char  cmd             __attribute__ ((packed));
      |                                                         ^
lat.h:46:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   46 |   unsigned char  dummy           __attribute__ ((packed));
      |                                                         ^
lat.h:47:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   47 |   unsigned char  hiver           __attribute__ ((packed)); // Highest protocol version
      |                                                         ^
lat.h:48:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   48 |   unsigned char  lover           __attribute__ ((packed)); // Lowest protocol version
      |                                                         ^
lat.h:49:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   49 |   unsigned char  latver          __attribute__ ((packed)); // LAT version No. (5)
      |                                                         ^
lat.h:50:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   50 |   unsigned char  latver_eco      __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                         ^
lat.h:59:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   59 |     unsigned char  cmd             __attribute__ ((packed));
      |                                                           ^
lat.h:60:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   60 |     unsigned char  dummy           __attribute__ ((packed));
      |                                                           ^
lat.h:61:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   61 |     unsigned char  hiver           __attribute__ ((packed)); // Highest protocol version
      |                                                           ^
lat.h:62:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   62 |     unsigned char  lover           __attribute__ ((packed)); // Lowest protocol version
      |                                                           ^
lat.h:63:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   63 |     unsigned char  latver          __attribute__ ((packed)); // LAT version No. (5)
      |                                                           ^
lat.h:64:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   64 |     unsigned char  latver_eco      __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                           ^
lat.h:75:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   75 |   unsigned char  cmd             __attribute__ ((packed)); // always 0x28
      |                                                         ^
lat.h:76:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   76 |   unsigned char  circuit_timer   __attribute__ ((packed)); // in 10s milliseconds
      |                                                         ^
lat.h:77:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   77 |   unsigned char  hiver           __attribute__ ((packed)); // Highest protocol version
      |                                                         ^
lat.h:78:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   78 |   unsigned char  lover           __attribute__ ((packed)); // Lowest protocol version
      |                                                         ^
lat.h:79:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   79 |   unsigned char  latver          __attribute__ ((packed)); // LAT version No. (5)
      |                                                         ^
lat.h:80:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   80 |   unsigned char  latver_eco      __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                         ^
lat.h:81:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   81 |   unsigned char  incarnation     __attribute__ ((packed)); // Message incarnation
      |                                                         ^
lat.h:82:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   82 |   unsigned char  flags           __attribute__ ((packed)); // Change flags
      |                                                         ^
lat.h:84:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   84 |   unsigned char  multicast_timer __attribute__ ((packed)); // Multicast timer (seconds)
      |                                                         ^
lat.h:85:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   85 |   unsigned char  node_status     __attribute__ ((packed)); // 2 (accepting connections)
      |                                                         ^
lat.h:86:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   86 |   unsigned char  group_length    __attribute__ ((packed));
      |                                                         ^
lat.h:99:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   99 |     unsigned char  latver      __attribute__ ((packed)); // LAT version No. (5)
      |                                                       ^
lat.h:100:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  100 |     unsigned char  latver_eco  __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                       ^
lat.h:101:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  101 |     unsigned char  maxsessions __attribute__ ((packed));
      |                                                       ^
lat.h:102:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  102 |     unsigned char  exqueued    __attribute__ ((packed)); // Extra data link buffer queued
      |                                                       ^
lat.h:103:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  103 |     unsigned char  circtimer   __attribute__ ((packed)); // in 10s of milliseconds
      |                                                       ^
lat.h:104:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  104 |     unsigned char  keepalive   __attribute__ ((packed)); // in seconds
      |                                                       ^
lat.h:106:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  106 |     unsigned char  prodtype    __attribute__ ((packed));
      |                                                       ^
lat.h:107:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  107 |     unsigned char  prodver     __attribute__ ((packed));
      |                                                       ^
lat.h:119:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  119 |     unsigned char  latver      __attribute__ ((packed)); // LAT version No. (5)
      |                                                       ^
lat.h:120:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  120 |     unsigned char  latver_eco  __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                       ^
lat.h:121:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  121 |     unsigned char  maxsessions __attribute__ ((packed));
      |                                                       ^
lat.h:122:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  122 |     unsigned char  exqueued    __attribute__ ((packed));
      |                                                       ^
lat.h:123:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  123 |     unsigned char  circtimer   __attribute__ ((packed));
      |                                                       ^
lat.h:124:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  124 |     unsigned char  keepalive   __attribute__ ((packed));
      |                                                       ^
lat.h:126:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  126 |     unsigned char  prodtype    __attribute__ ((packed));
      |                                                       ^
lat.h:127:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  127 |     unsigned char  prodver     __attribute__ ((packed));
      |                                                       ^
lat.h:139:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  139 |     unsigned char local_session  __attribute__ ((packed));
      |                                                         ^
lat.h:140:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  140 |     unsigned char remote_session __attribute__ ((packed));
      |                                                         ^
lat.h:141:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  141 |     unsigned char length         __attribute__ ((packed));
      |                                                         ^
lat.h:142:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  142 |     unsigned char cmd            __attribute__ ((packed));
      |                                                         ^
lat.h:148:48: warning: 'packed' attribute ignored for field of type 'LAT_Header' [-Wattributes]
  148 |     LAT_Header  header  __attribute__ ((packed));
      |                                                ^
lat.h:149:48: warning: 'packed' attribute ignored for field of type 'LAT_SlotCmd' [-Wattributes]
  149 |     LAT_SlotCmd slot    __attribute__ ((packed));
      |                                                ^
lat.h:154:56: warning: 'packed' attribute ignored for field of type 'LAT_Header' [-Wattributes]
  154 |     LAT_Header    header        __attribute__ ((packed));
      |                                                        ^
lat.h:155:56: warning: 'packed' attribute ignored for field of type 'LAT_SlotCmd' [-Wattributes]
  155 |     LAT_SlotCmd   slot          __attribute__ ((packed));
      |                                                        ^
lat.h:156:56: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  156 |     unsigned char serviceclass  __attribute__ ((packed));
      |                                                        ^
lat.h:157:56: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  157 |     unsigned char attslotsize   __attribute__ ((packed));
      |                                                        ^
lat.h:158:56: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  158 |     unsigned char dataslotsize  __attribute__ ((packed));
      |                                                        ^
lat.h:163:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  163 |     unsigned char  cmd           __attribute__ ((packed));
      |                                                         ^
lat.h:164:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  164 |     unsigned char  format        __attribute__ ((packed));
      |                                                         ^
lat.h:165:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  165 |     unsigned char  hiver         __attribute__ ((packed)); // Highest protocol version
      |                                                         ^
lat.h:166:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  166 |     unsigned char  lover         __attribute__ ((packed)); // Lowest protocol version
      |                                                         ^
lat.h:167:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  167 |     unsigned char  latver        __attribute__ ((packed)); // LAT version No. (5)
      |                                                         ^
lat.h:168:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  168 |     unsigned char  latver_eco    __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                         ^
lat.h:172:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  172 |     unsigned char  opcode        __attribute__ ((packed));
      |                                                         ^
lat.h:173:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  173 |     unsigned char  modifier      __attribute__ ((packed));
      |                                                         ^
lat.h:200:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  200 |     unsigned char  cmd           __attribute__ ((packed));
      |                                                         ^
lat.h:201:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  201 |     unsigned char  format        __attribute__ ((packed));
      |                                                         ^
lat.h:202:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  202 |     unsigned char  hiver         __attribute__ ((packed)); // Highest protocol version
      |                                                         ^
lat.h:203:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  203 |     unsigned char  lover         __attribute__ ((packed)); // Lowest protocol version
      |                                                         ^
lat.h:204:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  204 |     unsigned char  latver        __attribute__ ((packed)); // LAT version No. (5)
      |                                                         ^
lat.h:205:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  205 |     unsigned char  latver_eco    __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                         ^
lat.h:208:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  208 |     unsigned char  entry_count   __attribute__ ((packed));
      |                                                         ^
In file included from serversession.cc:40:
server.h:237:9: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
  237 |         const bool operator==(serviceinfo &si)  { return (si == name);}
      |         ^~~~~
server.h:238:9: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
  238 |         const bool operator==(const std::string &nm) { return (nm == name);}
      |         ^~~~~
server.h:239:9: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
  239 |         const bool operator!=(serviceinfo &si)  { return (si != name);}
      |         ^~~~~
server.h:240:9: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
  240 |         const bool operator!=(const std::string &nm) { return (nm != name);}
      |         ^~~~~
server.h:206:105: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  206 |         serviceinfo(std::string n, int r, bool s, std::string i = std::string(""), int mc=0, char* comm="",
      |                                                                                                         ^~
serversession.cc: In member function 'int ServerSession::create_session(unsigned char*)':
serversession.cc:188:15: warning: ignoring return value of 'int setgid(__gid_t)' declared with attribute 'warn_unused_result' [-Wunused-result]
  188 |         setgid(cmd_gid);
      |         ~~~~~~^~~~~~~~~
serversession.cc:189:15: warning: ignoring return value of 'int setuid(__uid_t)' declared with attribute 'warn_unused_result' [-Wunused-result]
  189 |         setuid(cmd_uid);
      |         ~~~~~~^~~~~~~~~
--- services.o ---
if c++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"latd\" -DVERSION=\"1.21\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_PTY_H=1 -DHAVE_TERMIOS_H=1 -DHAVE_MCHECK_H=1 -DHAVE_NETINET_ETHER_H=1 -DHAVE_NET_ETHERNET_H=1 -DHAVE_FEATURES_H=1 -DHAVE_OPENPTY=1 -DLOGIN_BIN=\"/bin/login\" -DLATCP_SOCKNAME=\"/var/run/latcp\" -DLLOGIN_SOCKNAME=\"/var/run/latlogin\" -I. -I. -DLATD_CONF=\"/usr/pkg/etc/latd.conf\" -DSBINDIR=\"/usr/pkg/sbin\" -DBINDIR=\"/usr/pkg/bin\"   -DPREFIX="\"/usr/pkg\"" -fno-rtti -fno-exceptions -Wstrict-prototypes -Wno-unused -pipe -O2 -DENABLE_DEFAULT_SERVICE -W -MT services.o -MD -MP -MF ".deps/services.Tpo"  -c -o services.o `test -f 'services.cc' || echo './'`services.cc;  then mv -f ".deps/services.Tpo" ".deps/services.Po";  else rm -f ".deps/services.Tpo"; exit 1;  fi
cc1plus: warning: command-line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
In file included from /usr/include/c++/11/backward/strstream:50,
                 from services.cc:24:
/usr/include/c++/11/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. [-Wcpp]
   32 | #warning \
      |  ^~~~~~~
In file included from services.cc:27:
lat.h:34:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   34 |     unsigned char  cmd             __attribute__ ((packed));
      |                                                           ^
lat.h:35:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   35 |     unsigned char  num_slots       __attribute__ ((packed));
      |                                                           ^
lat.h:38:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   38 |     unsigned char  sequence_number __attribute__ ((packed));
      |                                                           ^
lat.h:39:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   39 |     unsigned char  ack_number      __attribute__ ((packed));
      |                                                           ^
lat.h:45:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   45 |   unsigned char  cmd             __attribute__ ((packed));
      |                                                         ^
lat.h:46:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   46 |   unsigned char  dummy           __attribute__ ((packed));
      |                                                         ^
lat.h:47:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   47 |   unsigned char  hiver           __attribute__ ((packed)); // Highest protocol version
      |                                                         ^
lat.h:48:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   48 |   unsigned char  lover           __attribute__ ((packed)); // Lowest protocol version
      |                                                         ^
lat.h:49:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   49 |   unsigned char  latver          __attribute__ ((packed)); // LAT version No. (5)
      |                                                         ^
lat.h:50:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   50 |   unsigned char  latver_eco      __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                         ^
lat.h:59:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   59 |     unsigned char  cmd             __attribute__ ((packed));
      |                                                           ^
lat.h:60:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   60 |     unsigned char  dummy           __attribute__ ((packed));
      |                                                           ^
lat.h:61:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   61 |     unsigned char  hiver           __attribute__ ((packed)); // Highest protocol version
      |                                                           ^
lat.h:62:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   62 |     unsigned char  lover           __attribute__ ((packed)); // Lowest protocol version
      |                                                           ^
lat.h:63:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   63 |     unsigned char  latver          __attribute__ ((packed)); // LAT version No. (5)
      |                                                           ^
lat.h:64:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   64 |     unsigned char  latver_eco      __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                           ^
lat.h:75:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   75 |   unsigned char  cmd             __attribute__ ((packed)); // always 0x28
      |                                                         ^
lat.h:76:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   76 |   unsigned char  circuit_timer   __attribute__ ((packed)); // in 10s milliseconds
      |                                                         ^
lat.h:77:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   77 |   unsigned char  hiver           __attribute__ ((packed)); // Highest protocol version
      |                                                         ^
lat.h:78:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   78 |   unsigned char  lover           __attribute__ ((packed)); // Lowest protocol version
      |                                                         ^
lat.h:79:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   79 |   unsigned char  latver          __attribute__ ((packed)); // LAT version No. (5)
      |                                                         ^
lat.h:80:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   80 |   unsigned char  latver_eco      __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                         ^
lat.h:81:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   81 |   unsigned char  incarnation     __attribute__ ((packed)); // Message incarnation
      |                                                         ^
lat.h:82:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   82 |   unsigned char  flags           __attribute__ ((packed)); // Change flags
      |                                                         ^
lat.h:84:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   84 |   unsigned char  multicast_timer __attribute__ ((packed)); // Multicast timer (seconds)
      |                                                         ^
lat.h:85:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   85 |   unsigned char  node_status     __attribute__ ((packed)); // 2 (accepting connections)
      |                                                         ^
lat.h:86:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   86 |   unsigned char  group_length    __attribute__ ((packed));
      |                                                         ^
lat.h:99:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   99 |     unsigned char  latver      __attribute__ ((packed)); // LAT version No. (5)
      |                                                       ^
lat.h:100:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  100 |     unsigned char  latver_eco  __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                       ^
lat.h:101:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  101 |     unsigned char  maxsessions __attribute__ ((packed));
      |                                                       ^
lat.h:102:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  102 |     unsigned char  exqueued    __attribute__ ((packed)); // Extra data link buffer queued
      |                                                       ^
lat.h:103:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  103 |     unsigned char  circtimer   __attribute__ ((packed)); // in 10s of milliseconds
      |                                                       ^
lat.h:104:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  104 |     unsigned char  keepalive   __attribute__ ((packed)); // in seconds
      |                                                       ^
lat.h:106:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  106 |     unsigned char  prodtype    __attribute__ ((packed));
      |                                                       ^
lat.h:107:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  107 |     unsigned char  prodver     __attribute__ ((packed));
      |                                                       ^
lat.h:119:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  119 |     unsigned char  latver      __attribute__ ((packed)); // LAT version No. (5)
      |                                                       ^
lat.h:120:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  120 |     unsigned char  latver_eco  __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                       ^
lat.h:121:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  121 |     unsigned char  maxsessions __attribute__ ((packed));
      |                                                       ^
lat.h:122:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  122 |     unsigned char  exqueued    __attribute__ ((packed));
      |                                                       ^
lat.h:123:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  123 |     unsigned char  circtimer   __attribute__ ((packed));
      |                                                       ^
lat.h:124:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  124 |     unsigned char  keepalive   __attribute__ ((packed));
      |                                                       ^
lat.h:126:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  126 |     unsigned char  prodtype    __attribute__ ((packed));
      |                                                       ^
lat.h:127:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  127 |     unsigned char  prodver     __attribute__ ((packed));
      |                                                       ^
lat.h:139:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  139 |     unsigned char local_session  __attribute__ ((packed));
      |                                                         ^
lat.h:140:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  140 |     unsigned char remote_session __attribute__ ((packed));
      |                                                         ^
lat.h:141:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  141 |     unsigned char length         __attribute__ ((packed));
      |                                                         ^
lat.h:142:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  142 |     unsigned char cmd            __attribute__ ((packed));
      |                                                         ^
lat.h:148:48: warning: 'packed' attribute ignored for field of type 'LAT_Header' [-Wattributes]
  148 |     LAT_Header  header  __attribute__ ((packed));
      |                                                ^
lat.h:149:48: warning: 'packed' attribute ignored for field of type 'LAT_SlotCmd' [-Wattributes]
  149 |     LAT_SlotCmd slot    __attribute__ ((packed));
      |                                                ^
lat.h:154:56: warning: 'packed' attribute ignored for field of type 'LAT_Header' [-Wattributes]
  154 |     LAT_Header    header        __attribute__ ((packed));
      |                                                        ^
lat.h:155:56: warning: 'packed' attribute ignored for field of type 'LAT_SlotCmd' [-Wattributes]
  155 |     LAT_SlotCmd   slot          __attribute__ ((packed));
      |                                                        ^
lat.h:156:56: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  156 |     unsigned char serviceclass  __attribute__ ((packed));
      |                                                        ^
lat.h:157:56: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  157 |     unsigned char attslotsize   __attribute__ ((packed));
      |                                                        ^
lat.h:158:56: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  158 |     unsigned char dataslotsize  __attribute__ ((packed));
      |                                                        ^
lat.h:163:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  163 |     unsigned char  cmd           __attribute__ ((packed));
      |                                                         ^
lat.h:164:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  164 |     unsigned char  format        __attribute__ ((packed));
      |                                                         ^
lat.h:165:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  165 |     unsigned char  hiver         __attribute__ ((packed)); // Highest protocol version
      |                                                         ^
lat.h:166:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  166 |     unsigned char  lover         __attribute__ ((packed)); // Lowest protocol version
      |                                                         ^
lat.h:167:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  167 |     unsigned char  latver        __attribute__ ((packed)); // LAT version No. (5)
      |                                                         ^
lat.h:168:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  168 |     unsigned char  latver_eco    __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                         ^
lat.h:172:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  172 |     unsigned char  opcode        __attribute__ ((packed));
      |                                                         ^
lat.h:173:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  173 |     unsigned char  modifier      __attribute__ ((packed));
      |                                                         ^
lat.h:200:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  200 |     unsigned char  cmd           __attribute__ ((packed));
      |                                                         ^
lat.h:201:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  201 |     unsigned char  format        __attribute__ ((packed));
      |                                                         ^
lat.h:202:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  202 |     unsigned char  hiver         __attribute__ ((packed)); // Highest protocol version
      |                                                         ^
lat.h:203:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  203 |     unsigned char  lover         __attribute__ ((packed)); // Lowest protocol version
      |                                                         ^
lat.h:204:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  204 |     unsigned char  latver        __attribute__ ((packed)); // LAT version No. (5)
      |                                                         ^
lat.h:205:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  205 |     unsigned char  latver_eco    __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                         ^
lat.h:208:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  208 |     unsigned char  entry_count   __attribute__ ((packed));
      |                                                         ^
--- session.o ---
if c++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"latd\" -DVERSION=\"1.21\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_PTY_H=1 -DHAVE_TERMIOS_H=1 -DHAVE_MCHECK_H=1 -DHAVE_NETINET_ETHER_H=1 -DHAVE_NET_ETHERNET_H=1 -DHAVE_FEATURES_H=1 -DHAVE_OPENPTY=1 -DLOGIN_BIN=\"/bin/login\" -DLATCP_SOCKNAME=\"/var/run/latcp\" -DLLOGIN_SOCKNAME=\"/var/run/latlogin\" -I. -I. -DLATD_CONF=\"/usr/pkg/etc/latd.conf\" -DSBINDIR=\"/usr/pkg/sbin\" -DBINDIR=\"/usr/pkg/bin\"   -DPREFIX="\"/usr/pkg\"" -fno-rtti -fno-exceptions -Wstrict-prototypes -Wno-unused -pipe -O2 -DENABLE_DEFAULT_SERVICE -W -MT session.o -MD -MP -MF ".deps/session.Tpo"  -c -o session.o `test -f 'session.cc' || echo './'`session.cc;  then mv -f ".deps/session.Tpo" ".deps/session.Po";  else rm -f ".deps/session.Tpo"; exit 1;  fi
cc1plus: warning: command-line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
In file included from /usr/include/c++/11/backward/strstream:50,
                 from session.cc:41:
/usr/include/c++/11/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. [-Wcpp]
   32 | #warning \
      |  ^~~~~~~
--- reversesession.o ---
if c++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"latd\" -DVERSION=\"1.21\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_PTY_H=1 -DHAVE_TERMIOS_H=1 -DHAVE_MCHECK_H=1 -DHAVE_NETINET_ETHER_H=1 -DHAVE_NET_ETHERNET_H=1 -DHAVE_FEATURES_H=1 -DHAVE_OPENPTY=1 -DLOGIN_BIN=\"/bin/login\" -DLATCP_SOCKNAME=\"/var/run/latcp\" -DLLOGIN_SOCKNAME=\"/var/run/latlogin\" -I. -I. -DLATD_CONF=\"/usr/pkg/etc/latd.conf\" -DSBINDIR=\"/usr/pkg/sbin\" -DBINDIR=\"/usr/pkg/bin\"   -DPREFIX="\"/usr/pkg\"" -fno-rtti -fno-exceptions -Wstrict-prototypes -Wno-unused -pipe -O2 -DENABLE_DEFAULT_SERVICE -W -MT reversesession.o -MD -MP -MF ".deps/reversesession.Tpo"  -c -o reversesession.o `test -f 'reversesession.cc' || echo './'`reversesession.cc;  then mv -f ".deps/reversesession.Tpo" ".deps/reversesession.Po";  else rm -f ".deps/reversesession.Tpo"; exit 1;  fi
cc1plus: warning: command-line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
In file included from /usr/include/c++/11/backward/strstream:50,
                 from reversesession.cc:29:
/usr/include/c++/11/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. [-Wcpp]
   32 | #warning \
      |  ^~~~~~~
--- session.o ---
In file included from session.cc:43:
lat.h:34:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   34 |     unsigned char  cmd             __attribute__ ((packed));
      |                                                           ^
lat.h:35:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   35 |     unsigned char  num_slots       __attribute__ ((packed));
      |                                                           ^
lat.h:38:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   38 |     unsigned char  sequence_number __attribute__ ((packed));
      |                                                           ^
lat.h:39:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   39 |     unsigned char  ack_number      __attribute__ ((packed));
      |                                                           ^
lat.h:45:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   45 |   unsigned char  cmd             __attribute__ ((packed));
      |                                                         ^
lat.h:46:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   46 |   unsigned char  dummy           __attribute__ ((packed));
      |                                                         ^
lat.h:47:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   47 |   unsigned char  hiver           __attribute__ ((packed)); // Highest protocol version
      |                                                         ^
lat.h:48:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   48 |   unsigned char  lover           __attribute__ ((packed)); // Lowest protocol version
      |                                                         ^
lat.h:49:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   49 |   unsigned char  latver          __attribute__ ((packed)); // LAT version No. (5)
      |                                                         ^
lat.h:50:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   50 |   unsigned char  latver_eco      __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                         ^
lat.h:59:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   59 |     unsigned char  cmd             __attribute__ ((packed));
      |                                                           ^
lat.h:60:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   60 |     unsigned char  dummy           __attribute__ ((packed));
      |                                                           ^
lat.h:61:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   61 |     unsigned char  hiver           __attribute__ ((packed)); // Highest protocol version
      |                                                           ^
lat.h:62:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   62 |     unsigned char  lover           __attribute__ ((packed)); // Lowest protocol version
      |                                                           ^
lat.h:63:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   63 |     unsigned char  latver          __attribute__ ((packed)); // LAT version No. (5)
      |                                                           ^
lat.h:64:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   64 |     unsigned char  latver_eco      __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                           ^
lat.h:75:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   75 |   unsigned char  cmd             __attribute__ ((packed)); // always 0x28
      |                                                         ^
lat.h:76:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   76 |   unsigned char  circuit_timer   __attribute__ ((packed)); // in 10s milliseconds
      |                                                         ^
lat.h:77:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   77 |   unsigned char  hiver           __attribute__ ((packed)); // Highest protocol version
      |                                                         ^
lat.h:78:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   78 |   unsigned char  lover           __attribute__ ((packed)); // Lowest protocol version
      |                                                         ^
lat.h:79:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   79 |   unsigned char  latver          __attribute__ ((packed)); // LAT version No. (5)
      |                                                         ^
lat.h:80:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   80 |   unsigned char  latver_eco      __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                         ^
lat.h:81:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   81 |   unsigned char  incarnation     __attribute__ ((packed)); // Message incarnation
      |                                                         ^
lat.h:82:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   82 |   unsigned char  flags           __attribute__ ((packed)); // Change flags
      |                                                         ^
lat.h:84:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   84 |   unsigned char  multicast_timer __attribute__ ((packed)); // Multicast timer (seconds)
      |                                                         ^
lat.h:85:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   85 |   unsigned char  node_status     __attribute__ ((packed)); // 2 (accepting connections)
      |                                                         ^
lat.h:86:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   86 |   unsigned char  group_length    __attribute__ ((packed));
      |                                                         ^
lat.h:99:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   99 |     unsigned char  latver      __attribute__ ((packed)); // LAT version No. (5)
      |                                                       ^
lat.h:100:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  100 |     unsigned char  latver_eco  __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                       ^
lat.h:101:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  101 |     unsigned char  maxsessions __attribute__ ((packed));
      |                                                       ^
lat.h:102:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  102 |     unsigned char  exqueued    __attribute__ ((packed)); // Extra data link buffer queued
      |                                                       ^
lat.h:103:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  103 |     unsigned char  circtimer   __attribute__ ((packed)); // in 10s of milliseconds
      |                                                       ^
lat.h:104:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  104 |     unsigned char  keepalive   __attribute__ ((packed)); // in seconds
      |                                                       ^
lat.h:106:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  106 |     unsigned char  prodtype    __attribute__ ((packed));
      |                                                       ^
lat.h:107:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  107 |     unsigned char  prodver     __attribute__ ((packed));
      |                                                       ^
lat.h:119:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  119 |     unsigned char  latver      __attribute__ ((packed)); // LAT version No. (5)
      |                                                       ^
lat.h:120:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  120 |     unsigned char  latver_eco  __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                       ^
lat.h:121:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  121 |     unsigned char  maxsessions __attribute__ ((packed));
      |                                                       ^
lat.h:122:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  122 |     unsigned char  exqueued    __attribute__ ((packed));
      |                                                       ^
lat.h:123:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  123 |     unsigned char  circtimer   __attribute__ ((packed));
      |                                                       ^
lat.h:124:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  124 |     unsigned char  keepalive   __attribute__ ((packed));
      |                                                       ^
lat.h:126:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  126 |     unsigned char  prodtype    __attribute__ ((packed));
      |                                                       ^
lat.h:127:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  127 |     unsigned char  prodver     __attribute__ ((packed));
      |                                                       ^
lat.h:139:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  139 |     unsigned char local_session  __attribute__ ((packed));
      |                                                         ^
lat.h:140:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  140 |     unsigned char remote_session __attribute__ ((packed));
      |                                                         ^
lat.h:141:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  141 |     unsigned char length         __attribute__ ((packed));
      |                                                         ^
lat.h:142:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  142 |     unsigned char cmd            __attribute__ ((packed));
      |                                                         ^
lat.h:148:48: warning: 'packed' attribute ignored for field of type 'LAT_Header' [-Wattributes]
  148 |     LAT_Header  header  __attribute__ ((packed));
      |                                                ^
lat.h:149:48: warning: 'packed' attribute ignored for field of type 'LAT_SlotCmd' [-Wattributes]
  149 |     LAT_SlotCmd slot    __attribute__ ((packed));
      |                                                ^
lat.h:154:56: warning: 'packed' attribute ignored for field of type 'LAT_Header' [-Wattributes]
  154 |     LAT_Header    header        __attribute__ ((packed));
      |                                                        ^
lat.h:155:56: warning: 'packed' attribute ignored for field of type 'LAT_SlotCmd' [-Wattributes]
  155 |     LAT_SlotCmd   slot          __attribute__ ((packed));
      |                                                        ^
lat.h:156:56: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  156 |     unsigned char serviceclass  __attribute__ ((packed));
      |                                                        ^
lat.h:157:56: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  157 |     unsigned char attslotsize   __attribute__ ((packed));
      |                                                        ^
lat.h:158:56: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  158 |     unsigned char dataslotsize  __attribute__ ((packed));
      |                                                        ^
lat.h:163:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  163 |     unsigned char  cmd           __attribute__ ((packed));
      |                                                         ^
lat.h:164:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  164 |     unsigned char  format        __attribute__ ((packed));
      |                                                         ^
lat.h:165:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  165 |     unsigned char  hiver         __attribute__ ((packed)); // Highest protocol version
      |                                                         ^
lat.h:166:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  166 |     unsigned char  lover         __attribute__ ((packed)); // Lowest protocol version
      |                                                         ^
lat.h:167:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  167 |     unsigned char  latver        __attribute__ ((packed)); // LAT version No. (5)
      |                                                         ^
lat.h:168:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  168 |     unsigned char  latver_eco    __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                         ^
lat.h:172:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  172 |     unsigned char  opcode        __attribute__ ((packed));
      |                                                         ^
lat.h:173:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  173 |     unsigned char  modifier      __attribute__ ((packed));
      |                                                         ^
lat.h:200:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  200 |     unsigned char  cmd           __attribute__ ((packed));
      |                                                         ^
lat.h:201:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  201 |     unsigned char  format        __attribute__ ((packed));
      |                                                         ^
lat.h:202:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  202 |     unsigned char  hiver         __attribute__ ((packed)); // Highest protocol version
      |                                                         ^
lat.h:203:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  203 |     unsigned char  lover         __attribute__ ((packed)); // Lowest protocol version
      |                                                         ^
lat.h:204:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  204 |     unsigned char  latver        __attribute__ ((packed)); // LAT version No. (5)
      |                                                         ^
lat.h:205:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  205 |     unsigned char  latver_eco    __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                         ^
lat.h:208:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  208 |     unsigned char  entry_count   __attribute__ ((packed));
      |                                                         ^
In file included from session.cc:50:
server.h:237:9: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
  237 |         const bool operator==(serviceinfo &si)  { return (si == name);}
      |         ^~~~~
server.h:238:9: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
  238 |         const bool operator==(const std::string &nm) { return (nm == name);}
      |         ^~~~~
server.h:239:9: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
  239 |         const bool operator!=(serviceinfo &si)  { return (si != name);}
      |         ^~~~~
server.h:240:9: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
  240 |         const bool operator!=(const std::string &nm) { return (nm != name);}
      |         ^~~~~
server.h:206:105: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  206 |         serviceinfo(std::string n, int r, bool s, std::string i = std::string(""), int mc=0, char* comm="",
      |                                                                                                         ^~
--- reversesession.o ---
In file included from reversesession.cc:31:
lat.h:34:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   34 |     unsigned char  cmd             __attribute__ ((packed));
      |                                                           ^
lat.h:35:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   35 |     unsigned char  num_slots       __attribute__ ((packed));
      |                                                           ^
lat.h:38:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   38 |     unsigned char  sequence_number __attribute__ ((packed));
      |                                                           ^
lat.h:39:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   39 |     unsigned char  ack_number      __attribute__ ((packed));
      |                                                           ^
lat.h:45:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   45 |   unsigned char  cmd             __attribute__ ((packed));
      |                                                         ^
lat.h:46:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   46 |   unsigned char  dummy           __attribute__ ((packed));
      |                                                         ^
lat.h:47:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   47 |   unsigned char  hiver           __attribute__ ((packed)); // Highest protocol version
      |                                                         ^
lat.h:48:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   48 |   unsigned char  lover           __attribute__ ((packed)); // Lowest protocol version
      |                                                         ^
lat.h:49:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   49 |   unsigned char  latver          __attribute__ ((packed)); // LAT version No. (5)
      |                                                         ^
lat.h:50:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   50 |   unsigned char  latver_eco      __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                         ^
lat.h:59:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   59 |     unsigned char  cmd             __attribute__ ((packed));
      |                                                           ^
lat.h:60:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   60 |     unsigned char  dummy           __attribute__ ((packed));
      |                                                           ^
lat.h:61:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   61 |     unsigned char  hiver           __attribute__ ((packed)); // Highest protocol version
      |                                                           ^
lat.h:62:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   62 |     unsigned char  lover           __attribute__ ((packed)); // Lowest protocol version
      |                                                           ^
lat.h:63:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   63 |     unsigned char  latver          __attribute__ ((packed)); // LAT version No. (5)
      |                                                           ^
lat.h:64:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   64 |     unsigned char  latver_eco      __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                           ^
lat.h:75:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   75 |   unsigned char  cmd             __attribute__ ((packed)); // always 0x28
      |                                                         ^
lat.h:76:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   76 |   unsigned char  circuit_timer   __attribute__ ((packed)); // in 10s milliseconds
      |                                                         ^
lat.h:77:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   77 |   unsigned char  hiver           __attribute__ ((packed)); // Highest protocol version
      |                                                         ^
lat.h:78:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   78 |   unsigned char  lover           __attribute__ ((packed)); // Lowest protocol version
      |                                                         ^
lat.h:79:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   79 |   unsigned char  latver          __attribute__ ((packed)); // LAT version No. (5)
      |                                                         ^
lat.h:80:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   80 |   unsigned char  latver_eco      __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                         ^
lat.h:81:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   81 |   unsigned char  incarnation     __attribute__ ((packed)); // Message incarnation
      |                                                         ^
lat.h:82:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   82 |   unsigned char  flags           __attribute__ ((packed)); // Change flags
      |                                                         ^
lat.h:84:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   84 |   unsigned char  multicast_timer __attribute__ ((packed)); // Multicast timer (seconds)
      |                                                         ^
lat.h:85:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   85 |   unsigned char  node_status     __attribute__ ((packed)); // 2 (accepting connections)
      |                                                         ^
lat.h:86:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   86 |   unsigned char  group_length    __attribute__ ((packed));
      |                                                         ^
lat.h:99:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   99 |     unsigned char  latver      __attribute__ ((packed)); // LAT version No. (5)
      |                                                       ^
lat.h:100:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  100 |     unsigned char  latver_eco  __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                       ^
lat.h:101:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  101 |     unsigned char  maxsessions __attribute__ ((packed));
      |                                                       ^
lat.h:102:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  102 |     unsigned char  exqueued    __attribute__ ((packed)); // Extra data link buffer queued
      |                                                       ^
lat.h:103:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  103 |     unsigned char  circtimer   __attribute__ ((packed)); // in 10s of milliseconds
      |                                                       ^
lat.h:104:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  104 |     unsigned char  keepalive   __attribute__ ((packed)); // in seconds
      |                                                       ^
lat.h:106:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  106 |     unsigned char  prodtype    __attribute__ ((packed));
      |                                                       ^
lat.h:107:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  107 |     unsigned char  prodver     __attribute__ ((packed));
      |                                                       ^
lat.h:119:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  119 |     unsigned char  latver      __attribute__ ((packed)); // LAT version No. (5)
      |                                                       ^
lat.h:120:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  120 |     unsigned char  latver_eco  __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                       ^
lat.h:121:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  121 |     unsigned char  maxsessions __attribute__ ((packed));
      |                                                       ^
lat.h:122:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  122 |     unsigned char  exqueued    __attribute__ ((packed));
      |                                                       ^
lat.h:123:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  123 |     unsigned char  circtimer   __attribute__ ((packed));
      |                                                       ^
lat.h:124:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  124 |     unsigned char  keepalive   __attribute__ ((packed));
      |                                                       ^
lat.h:126:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  126 |     unsigned char  prodtype    __attribute__ ((packed));
      |                                                       ^
lat.h:127:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  127 |     unsigned char  prodver     __attribute__ ((packed));
      |                                                       ^
lat.h:139:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  139 |     unsigned char local_session  __attribute__ ((packed));
      |                                                         ^
lat.h:140:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  140 |     unsigned char remote_session __attribute__ ((packed));
      |                                                         ^
lat.h:141:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  141 |     unsigned char length         __attribute__ ((packed));
      |                                                         ^
lat.h:142:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  142 |     unsigned char cmd            __attribute__ ((packed));
      |                                                         ^
lat.h:148:48: warning: 'packed' attribute ignored for field of type 'LAT_Header' [-Wattributes]
  148 |     LAT_Header  header  __attribute__ ((packed));
      |                                                ^
lat.h:149:48: warning: 'packed' attribute ignored for field of type 'LAT_SlotCmd' [-Wattributes]
  149 |     LAT_SlotCmd slot    __attribute__ ((packed));
      |                                                ^
lat.h:154:56: warning: 'packed' attribute ignored for field of type 'LAT_Header' [-Wattributes]
  154 |     LAT_Header    header        __attribute__ ((packed));
      |                                                        ^
lat.h:155:56: warning: 'packed' attribute ignored for field of type 'LAT_SlotCmd' [-Wattributes]
  155 |     LAT_SlotCmd   slot          __attribute__ ((packed));
      |                                                        ^
lat.h:156:56: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  156 |     unsigned char serviceclass  __attribute__ ((packed));
      |                                                        ^
lat.h:157:56: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  157 |     unsigned char attslotsize   __attribute__ ((packed));
      |                                                        ^
lat.h:158:56: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  158 |     unsigned char dataslotsize  __attribute__ ((packed));
      |                                                        ^
lat.h:163:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  163 |     unsigned char  cmd           __attribute__ ((packed));
      |                                                         ^
lat.h:164:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  164 |     unsigned char  format        __attribute__ ((packed));
      |                                                         ^
lat.h:165:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  165 |     unsigned char  hiver         __attribute__ ((packed)); // Highest protocol version
      |                                                         ^
lat.h:166:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  166 |     unsigned char  lover         __attribute__ ((packed)); // Lowest protocol version
      |                                                         ^
lat.h:167:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  167 |     unsigned char  latver        __attribute__ ((packed)); // LAT version No. (5)
      |                                                         ^
lat.h:168:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  168 |     unsigned char  latver_eco    __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                         ^
lat.h:172:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  172 |     unsigned char  opcode        __attribute__ ((packed));
      |                                                         ^
lat.h:173:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  173 |     unsigned char  modifier      __attribute__ ((packed));
      |                                                         ^
lat.h:200:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  200 |     unsigned char  cmd           __attribute__ ((packed));
      |                                                         ^
lat.h:201:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  201 |     unsigned char  format        __attribute__ ((packed));
      |                                                         ^
lat.h:202:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  202 |     unsigned char  hiver         __attribute__ ((packed)); // Highest protocol version
      |                                                         ^
lat.h:203:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  203 |     unsigned char  lover         __attribute__ ((packed)); // Lowest protocol version
      |                                                         ^
lat.h:204:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  204 |     unsigned char  latver        __attribute__ ((packed)); // LAT version No. (5)
      |                                                         ^
lat.h:205:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  205 |     unsigned char  latver_eco    __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                         ^
lat.h:208:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  208 |     unsigned char  entry_count   __attribute__ ((packed));
      |                                                         ^
In file included from reversesession.cc:38:
server.h:237:9: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
  237 |         const bool operator==(serviceinfo &si)  { return (si == name);}
      |         ^~~~~
server.h:238:9: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
  238 |         const bool operator==(const std::string &nm) { return (nm == name);}
      |         ^~~~~
server.h:239:9: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
  239 |         const bool operator!=(serviceinfo &si)  { return (si != name);}
      |         ^~~~~
server.h:240:9: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
  240 |         const bool operator!=(const std::string &nm) { return (nm != name);}
      |         ^~~~~
server.h:206:105: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  206 |         serviceinfo(std::string n, int r, bool s, std::string i = std::string(""), int mc=0, char* comm="",
      |                                                                                                         ^~
--- interfaces-linux.o ---
if c++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"latd\" -DVERSION=\"1.21\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_PTY_H=1 -DHAVE_TERMIOS_H=1 -DHAVE_MCHECK_H=1 -DHAVE_NETINET_ETHER_H=1 -DHAVE_NET_ETHERNET_H=1 -DHAVE_FEATURES_H=1 -DHAVE_OPENPTY=1 -DLOGIN_BIN=\"/bin/login\" -DLATCP_SOCKNAME=\"/var/run/latcp\" -DLLOGIN_SOCKNAME=\"/var/run/latlogin\" -I. -I. -DLATD_CONF=\"/usr/pkg/etc/latd.conf\" -DSBINDIR=\"/usr/pkg/sbin\" -DBINDIR=\"/usr/pkg/bin\"   -DPREFIX="\"/usr/pkg\"" -fno-rtti -fno-exceptions -Wstrict-prototypes -Wno-unused -pipe -O2 -DENABLE_DEFAULT_SERVICE -W -MT interfaces-linux.o -MD -MP -MF ".deps/interfaces-linux.Tpo"  -c -o interfaces-linux.o `test -f 'interfaces-linux.cc' || echo './'`interfaces-linux.cc;  then mv -f ".deps/interfaces-linux.Tpo" ".deps/interfaces-linux.Po";  else rm -f ".deps/interfaces-linux.Tpo"; exit 1;  fi
cc1plus: warning: command-line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
--- latcp.o ---
if c++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"latd\" -DVERSION=\"1.21\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_PTY_H=1 -DHAVE_TERMIOS_H=1 -DHAVE_MCHECK_H=1 -DHAVE_NETINET_ETHER_H=1 -DHAVE_NET_ETHERNET_H=1 -DHAVE_FEATURES_H=1 -DHAVE_OPENPTY=1 -DLOGIN_BIN=\"/bin/login\" -DLATCP_SOCKNAME=\"/var/run/latcp\" -DLLOGIN_SOCKNAME=\"/var/run/latlogin\" -I. -I. -DLATD_CONF=\"/usr/pkg/etc/latd.conf\" -DSBINDIR=\"/usr/pkg/sbin\" -DBINDIR=\"/usr/pkg/bin\"   -DPREFIX="\"/usr/pkg\"" -fno-rtti -fno-exceptions -Wstrict-prototypes -Wno-unused -pipe -O2 -DENABLE_DEFAULT_SERVICE -W -MT latcp.o -MD -MP -MF ".deps/latcp.Tpo"  -c -o latcp.o `test -f 'latcp.cc' || echo './'`latcp.cc;  then mv -f ".deps/latcp.Tpo" ".deps/latcp.Po";  else rm -f ".deps/latcp.Tpo"; exit 1;  fi
cc1plus: warning: command-line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
--- interfaces-linux.o ---
interfaces-linux.cc:57:10: fatal error: algo.h: No such file or directory
   57 | #include <algo.h>
      |          ^~~~~~~~
compilation terminated.
*** [interfaces-linux.o] Error code 1

bmake: stopped in /home/pbulk/build/net/latd/work/latd-1.21
--- latcp.o ---
In file included from /usr/include/c++/11/backward/strstream:50,
                 from latcp.cc:52:
/usr/include/c++/11/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. [-Wcpp]
   32 | #warning \
      |  ^~~~~~~
In file included from latcp.cc:54:
lat.h:34:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   34 |     unsigned char  cmd             __attribute__ ((packed));
      |                                                           ^
lat.h:35:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   35 |     unsigned char  num_slots       __attribute__ ((packed));
      |                                                           ^
lat.h:38:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   38 |     unsigned char  sequence_number __attribute__ ((packed));
      |                                                           ^
lat.h:39:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   39 |     unsigned char  ack_number      __attribute__ ((packed));
      |                                                           ^
lat.h:45:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   45 |   unsigned char  cmd             __attribute__ ((packed));
      |                                                         ^
lat.h:46:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   46 |   unsigned char  dummy           __attribute__ ((packed));
      |                                                         ^
lat.h:47:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   47 |   unsigned char  hiver           __attribute__ ((packed)); // Highest protocol version
      |                                                         ^
lat.h:48:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   48 |   unsigned char  lover           __attribute__ ((packed)); // Lowest protocol version
      |                                                         ^
lat.h:49:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   49 |   unsigned char  latver          __attribute__ ((packed)); // LAT version No. (5)
      |                                                         ^
lat.h:50:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   50 |   unsigned char  latver_eco      __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                         ^
lat.h:59:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   59 |     unsigned char  cmd             __attribute__ ((packed));
      |                                                           ^
lat.h:60:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   60 |     unsigned char  dummy           __attribute__ ((packed));
      |                                                           ^
lat.h:61:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   61 |     unsigned char  hiver           __attribute__ ((packed)); // Highest protocol version
      |                                                           ^
lat.h:62:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   62 |     unsigned char  lover           __attribute__ ((packed)); // Lowest protocol version
      |                                                           ^
lat.h:63:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   63 |     unsigned char  latver          __attribute__ ((packed)); // LAT version No. (5)
      |                                                           ^
lat.h:64:59: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   64 |     unsigned char  latver_eco      __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                           ^
lat.h:75:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   75 |   unsigned char  cmd             __attribute__ ((packed)); // always 0x28
      |                                                         ^
lat.h:76:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   76 |   unsigned char  circuit_timer   __attribute__ ((packed)); // in 10s milliseconds
      |                                                         ^
lat.h:77:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   77 |   unsigned char  hiver           __attribute__ ((packed)); // Highest protocol version
      |                                                         ^
lat.h:78:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   78 |   unsigned char  lover           __attribute__ ((packed)); // Lowest protocol version
      |                                                         ^
lat.h:79:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   79 |   unsigned char  latver          __attribute__ ((packed)); // LAT version No. (5)
      |                                                         ^
lat.h:80:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   80 |   unsigned char  latver_eco      __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                         ^
lat.h:81:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   81 |   unsigned char  incarnation     __attribute__ ((packed)); // Message incarnation
      |                                                         ^
lat.h:82:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   82 |   unsigned char  flags           __attribute__ ((packed)); // Change flags
      |                                                         ^
lat.h:84:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   84 |   unsigned char  multicast_timer __attribute__ ((packed)); // Multicast timer (seconds)
      |                                                         ^
lat.h:85:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   85 |   unsigned char  node_status     __attribute__ ((packed)); // 2 (accepting connections)
      |                                                         ^
lat.h:86:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   86 |   unsigned char  group_length    __attribute__ ((packed));
      |                                                         ^
lat.h:99:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
   99 |     unsigned char  latver      __attribute__ ((packed)); // LAT version No. (5)
      |                                                       ^
lat.h:100:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  100 |     unsigned char  latver_eco  __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                       ^
lat.h:101:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  101 |     unsigned char  maxsessions __attribute__ ((packed));
      |                                                       ^
lat.h:102:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  102 |     unsigned char  exqueued    __attribute__ ((packed)); // Extra data link buffer queued
      |                                                       ^
lat.h:103:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  103 |     unsigned char  circtimer   __attribute__ ((packed)); // in 10s of milliseconds
      |                                                       ^
lat.h:104:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  104 |     unsigned char  keepalive   __attribute__ ((packed)); // in seconds
      |                                                       ^
lat.h:106:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  106 |     unsigned char  prodtype    __attribute__ ((packed));
      |                                                       ^
lat.h:107:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  107 |     unsigned char  prodver     __attribute__ ((packed));
      |                                                       ^
lat.h:119:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  119 |     unsigned char  latver      __attribute__ ((packed)); // LAT version No. (5)
      |                                                       ^
lat.h:120:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  120 |     unsigned char  latver_eco  __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                       ^
lat.h:121:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  121 |     unsigned char  maxsessions __attribute__ ((packed));
      |                                                       ^
lat.h:122:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  122 |     unsigned char  exqueued    __attribute__ ((packed));
      |                                                       ^
lat.h:123:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  123 |     unsigned char  circtimer   __attribute__ ((packed));
      |                                                       ^
lat.h:124:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  124 |     unsigned char  keepalive   __attribute__ ((packed));
      |                                                       ^
lat.h:126:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  126 |     unsigned char  prodtype    __attribute__ ((packed));
      |                                                       ^
lat.h:127:55: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  127 |     unsigned char  prodver     __attribute__ ((packed));
      |                                                       ^
lat.h:139:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  139 |     unsigned char local_session  __attribute__ ((packed));
      |                                                         ^
lat.h:140:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  140 |     unsigned char remote_session __attribute__ ((packed));
      |                                                         ^
lat.h:141:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  141 |     unsigned char length         __attribute__ ((packed));
      |                                                         ^
lat.h:142:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  142 |     unsigned char cmd            __attribute__ ((packed));
      |                                                         ^
lat.h:148:48: warning: 'packed' attribute ignored for field of type 'LAT_Header' [-Wattributes]
  148 |     LAT_Header  header  __attribute__ ((packed));
      |                                                ^
lat.h:149:48: warning: 'packed' attribute ignored for field of type 'LAT_SlotCmd' [-Wattributes]
  149 |     LAT_SlotCmd slot    __attribute__ ((packed));
      |                                                ^
lat.h:154:56: warning: 'packed' attribute ignored for field of type 'LAT_Header' [-Wattributes]
  154 |     LAT_Header    header        __attribute__ ((packed));
      |                                                        ^
lat.h:155:56: warning: 'packed' attribute ignored for field of type 'LAT_SlotCmd' [-Wattributes]
  155 |     LAT_SlotCmd   slot          __attribute__ ((packed));
      |                                                        ^
lat.h:156:56: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  156 |     unsigned char serviceclass  __attribute__ ((packed));
      |                                                        ^
lat.h:157:56: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  157 |     unsigned char attslotsize   __attribute__ ((packed));
      |                                                        ^
lat.h:158:56: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  158 |     unsigned char dataslotsize  __attribute__ ((packed));
      |                                                        ^
lat.h:163:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  163 |     unsigned char  cmd           __attribute__ ((packed));
      |                                                         ^
lat.h:164:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  164 |     unsigned char  format        __attribute__ ((packed));
      |                                                         ^
lat.h:165:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  165 |     unsigned char  hiver         __attribute__ ((packed)); // Highest protocol version
      |                                                         ^
lat.h:166:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  166 |     unsigned char  lover         __attribute__ ((packed)); // Lowest protocol version
      |                                                         ^
lat.h:167:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  167 |     unsigned char  latver        __attribute__ ((packed)); // LAT version No. (5)
      |                                                         ^
lat.h:168:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  168 |     unsigned char  latver_eco    __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                         ^
lat.h:172:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  172 |     unsigned char  opcode        __attribute__ ((packed));
      |                                                         ^
lat.h:173:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  173 |     unsigned char  modifier      __attribute__ ((packed));
      |                                                         ^
lat.h:200:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  200 |     unsigned char  cmd           __attribute__ ((packed));
      |                                                         ^
lat.h:201:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  201 |     unsigned char  format        __attribute__ ((packed));
      |                                                         ^
lat.h:202:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  202 |     unsigned char  hiver         __attribute__ ((packed)); // Highest protocol version
      |                                                         ^
lat.h:203:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  203 |     unsigned char  lover         __attribute__ ((packed)); // Lowest protocol version
      |                                                         ^
lat.h:204:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  204 |     unsigned char  latver        __attribute__ ((packed)); // LAT version No. (5)
      |                                                         ^
lat.h:205:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  205 |     unsigned char  latver_eco    __attribute__ ((packed)); // LAT version No. (LSB)
      |                                                         ^
lat.h:208:57: warning: 'packed' attribute ignored for field of type 'unsigned char' [-Wattributes]
  208 |     unsigned char  entry_count   __attribute__ ((packed));
      |                                                         ^
latcp.cc: In function 'void start_latd(int, char**)':
latcp.cc:798:20: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  798 |         latd_bin = "/usr/sbin/latd";
      |                    ^~~~~~~~~~~~~~~~
latcp.cc:799:21: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  799 |         latd_path = "/usr/sbin";
      |                     ^~~~~~~~~~~
latcp.cc:803:20: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  803 |         latd_bin = "PREFIX/sbin/latd";
      |                    ^~~~~~~~~~~~~~~~~~
latcp.cc:804:21: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  804 |         latd_path = "PREFIX/sbin";
      |                     ^~~~~~~~~~~~~
latcp.cc:834:21: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  834 |         newenv[0] = "PATH=/bin:/usr/bin:/sbin:/usr/sbin";
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
latcp.cc:835:21: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  835 |         newenv[1] = "LATCP_STARTED=true"; // Tell latd it was started by us.
      |                     ^~~~~~~~~~~~~~~~~~~~
latcp.cc:877:38: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  877 |                         newargv[0] = "/bin/sh";
      |                                      ^~~~~~~~~
latcp.cc:878:38: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  878 |                         newargv[1] = "/etc/latd.conf";
      |                                      ^~~~~~~~~~~~~~~~
latcp.cc: In function 'bool open_socket(bool)':
<command-line>: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
latcp.cc:977:43: note: in expansion of macro 'VERSION'
  977 |     send_msg(latcp_socket, LATCP_VERSION, VERSION, strlen(VERSION)+1);
      |                                           ^~~~~~~
1 error

bmake: stopped in /home/pbulk/build/net/latd/work/latd-1.21
*** Error code 2

Stop.
bmake[1]: stopped in /data/jenkins/workspace/pkgsrc-el9-trunk-x86_64/net/latd
*** Error code 1

Stop.
bmake: stopped in /data/jenkins/workspace/pkgsrc-el9-trunk-x86_64/net/latd