You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@trafficserver.apache.org by Jean Baptiste Favre <we...@jbfavre.org> on 2021/10/16 12:06:59 UTC

ATS 9.1.0 build failed

Hello,
I'm working on packaging ATS 9.1.0 for Debian.
Currently, I'm stuck with an error when building traffic_top:

traffic_top/traffic_top.cc: In function 'void prettyPrint(int, int,
double, int)':
traffic_top/traffic_top.cc:129:18: error: format not a string literal
and no format arguments [-Werror=format-security]
  129 |   mvprintw(y, x, buffer);
      |                  ^~~~~~
traffic_top/traffic_top.cc: In function 'void makeTable(int, int, const
std::__cxx11::list<std::__cxx11::basic_string<char> >&, Stats&)':
traffic_top/traffic_top.cc:146:13: error: format not a string literal
and no format arguments [-Werror=format-security]
  146 |     mvprintw(my_y, x, prettyName.c_str());
      |     ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1plus: some warnings being treated as errors
make[3]: *** [Makefile:2743: traffic_top/traffic_top-traffic_top.o] Error 1
make[3]: Leaving directory '/home/debocker/source/build/src'
make[2]: *** [Makefile:2805: all-recursive] Error 1
make[2]: Leaving directory '/home/debocker/source/build/src'
make[1]: *** [Makefile:868: all-recursive] Error 1
make[1]: Leaving directory '/home/debocker/source/build'
dh_auto_build: error: make -j1 returned exit code 2
make: *** [debian/rules:32: binary] Error 2

I joined configure output as well as build log as attachement.

Any help will be appreciated.

Best,
Jean Baptiste