Moving these definitions breaks world outside the kernel :-(

building shared library libmapper_std.so.5
Building /usr/obj/usr/src/amd64.amd64/lib/libiconv_modules/mapper_zone/libmapper_zone.so.5
building shared library libmapper_zone.so.5
Building /usr/obj/usr/src/amd64.amd64/lib/libstats/tcp_stats.o
/usr/src/lib/libstats/../../sys/netinet/tcp_stats.c:137:38: error: use of undeclared identifier 'CC_ECN' 137 | STATS_VSS_DVHIST32_USR(HBKTS(DVBKT(CC_ECN), DVBKT(CC_RTO),
      |                                                    ^
/usr/src/lib/libstats/../../sys/netinet/tcp_stats.c:137:38: error: use of undeclared identifier 'CC_ECN' /usr/src/lib/libstats/../../sys/netinet/tcp_stats.c:137:53: error: use of undeclared identifier 'CC_RTO' 137 | STATS_VSS_DVHIST32_USR(HBKTS(DVBKT(CC_ECN), DVBKT(CC_RTO),
      |                                                                   ^
/usr/src/lib/libstats/../../sys/netinet/tcp_stats.c:137:53: error: use of undeclared identifier 'CC_RTO' /usr/src/lib/libstats/../../sys/netinet/tcp_stats.c:138:13: error: use of undeclared identifier 'CC_RTO_ERR'
  138 |                     DVBKT(CC_RTO_ERR), DVBKT(CC_NDUPACK)), 0)
      |                           ^
/usr/src/lib/libstats/../../sys/netinet/tcp_stats.c:138:13: error: use of undeclared identifier 'CC_RTO_ERR' /usr/src/lib/libstats/../../sys/netinet/tcp_stats.c:138:32: error: use of undeclared identifier 'CC_NDUPACK'
  138 |                     DVBKT(CC_RTO_ERR), DVBKT(CC_NDUPACK)), 0)
      |                                              ^
/usr/src/lib/libstats/../../sys/netinet/tcp_stats.c:138:32: error: use of undeclared identifier 'CC_NDUPACK' /usr/src/lib/libstats/../../sys/netinet/tcp_stats.c:137:38: error: use of undeclared identifier 'CC_ECN' 137 | STATS_VSS_DVHIST32_USR(HBKTS(DVBKT(CC_ECN), DVBKT(CC_RTO),
      |                                                    ^
/usr/src/lib/libstats/../../sys/netinet/tcp_stats.c:137:38: error: use of undeclared identifier 'CC_ECN' /usr/src/lib/libstats/../../sys/netinet/tcp_stats.c:137:53: error: use of undeclared identifier 'CC_RTO' 137 | STATS_VSS_DVHIST32_USR(HBKTS(DVBKT(CC_ECN), DVBKT(CC_RTO),
      |                                                                   ^
/usr/src/lib/libstats/../../sys/netinet/tcp_stats.c:137:53: error: use of undeclared identifier 'CC_RTO' /usr/src/lib/libstats/../../sys/netinet/tcp_stats.c:138:13: error: use of undeclared identifier 'CC_RTO_ERR'
  138 |                     DVBKT(CC_RTO_ERR), DVBKT(CC_NDUPACK)), 0)
      |                           ^
/usr/src/lib/libstats/../../sys/netinet/tcp_stats.c:138:13: error: use of undeclared identifier 'CC_RTO_ERR' /usr/src/lib/libstats/../../sys/netinet/tcp_stats.c:138:32: error: use of undeclared identifier 'CC_NDUPACK'
  138 |                     DVBKT(CC_RTO_ERR), DVBKT(CC_NDUPACK)), 0)
      |                                              ^
/usr/src/lib/libstats/../../sys/netinet/tcp_stats.c:138:32: error: use of undeclared identifier 'CC_NDUPACK' /usr/src/lib/libstats/../../sys/netinet/tcp_stats.c:142:6: error: invalid application of 'sizeof' to an incomplete type 'struct voistatspec[]'
  142 |             NVSS(vss_congsig), vss_congsig, 0);
      |             ^~~~~~~~~~~~~~~~~
/usr/obj/usr/src/amd64.amd64/tmp/usr/include/sys/stats.h:440:32: note: expanded from macro 'NVSS' 440 | #define NVSS(vss_slots) (sizeof((vss_slots)) / sizeof(struct voistatspec))
      |                                ^~~~~~~~~~~~~
17 errors generated.
*** [tcp_stats.o] Error code 1

make[5]: stopped in /usr/src/lib/libstats
ERROR_TARGET='tcp_stats.o'

Reply via email to