On 9/11/23 15:40, jean-frederic clere wrote:
Hi,
I have:
+++
jfclere@dhcp-144-162 swoc]$ make
CXX src/bw_ip_format.lo
In file included from
/home/jfclere/trafficserver/lib/swoc/include/swoc/swoc_ip.h:16,
from src/bw_ip_format.cc:8:
/home/jfclere/trafficserver/lib/swoc/include/swoc/TextView.h:892:1:
error: 'intmax_t' does not name a type; did you mean 'int8_t'?
892 | intmax_t svtoi(TextView src, TextView *parsed = nullptr, int
base = 0);
| ^~~~~~~~
| int8_t
/home/jfclere/trafficserver/lib/swoc/include/swoc/TextView.h:904:1:
error: 'uintmax_t' does not name a type; did you mean 'uint8_t'?
904 | uintmax_t svtou(TextView src, TextView *parsed = nullptr, int
base = 0);
| ^~~~~~~~~
| uint8_t
/home/jfclere/trafficserver/lib/swoc/include/swoc/TextView.h:922:1:
error: 'uintmax_t' does not name a type; did you mean 'uint8_t'?
922 | uintmax_t
| ^~~~~~~~~
| uint8_t
/home/jfclere/trafficserver/lib/swoc/include/swoc/TextView.h:944:1:
error: 'uintmax_t' does not name a type; did you mean 'uint8_t'?
944 | uintmax_t
| ^~~~~~~~~
| uint8_t
make: *** [Makefile:783: src/bw_ip_format.lo] Error 1
+++
I am sure I am making something wrong... Any hints?
The fix looks to be:
+++
[jfclere@fedora trafficserver]$ git diff .
diff --git a/lib/swoc/include/swoc/TextView.h
b/lib/swoc/include/swoc/TextView.h
index e1537416f..897fd7968 100644
--- a/lib/swoc/include/swoc/TextView.h
+++ b/lib/swoc/include/swoc/TextView.h
@@ -18,6 +18,7 @@
#include <string>
#include <string_view>
#include <limits>
+#include <stdint.h>
#include "swoc/swoc_version.h"
#include "swoc/string_view_util.h"
+++
I am on fedora38.
--
Cheers
Jean-Frederic