gdha / pi4-uptime-kuma-helm

Modified repo of uptime-kuma-helm (from https://github.com/k3rnelpan1c-dev/uptime-kuma-helm)
GNU General Public License v3.0
0 stars 0 forks source link

error: ‘ch_user’ was not declared in this scope #46

Open gdha opened 6 months ago

gdha commented 6 months ago
g++  -g -O2 -I/app/ntopng -I/app/ntopng/include -Wall -I/usr/local/include -std=c++1y -D_FILE_OFFSET_BITS=64 -I/usr/include/hiredis -I/usr/include/hiredis -I/usr/include/aarch64-linux-gnu -I/app/ntopng/third-party/mongoose -I/usr/include/json-c   -I../nDPI/src/include -I../nDPI/src/lib/third_party/include -I/app/ntopng/third-party/lua-5.4.6/src   -I/usr/include/mariadb -I/usr/include/mariadb/mysql -isystem /usr/include/mit-krb5 -I/usr/include/pgm-5.3 -I/usr/include/libxml2 -g -O2 -I/app/ntopng -I/app/ntopng/include -Wno-address-of-packed-member -Wno-unused-function -I/usr/local/include -I/app/ntopng/third-party/http-client-c/src/  -I/usr/include/openssl  -DDATA_DIR='"/usr/local/share"'  -c src/Prefs.cpp -o src/Prefs.o
src/Prefs.cpp: In destructor ‘virtual Prefs::~Prefs()’:
src/Prefs.cpp:288:7: error: ‘ch_user’ was not declared in this scope; did you mean ‘es_user’?
  288 |   if (ch_user) free(ch_user);
      |       ^~~~~~~
      |       es_user
src/Prefs.cpp: In member function ‘int Prefs::setOption(int, char*)’:
src/Prefs.cpp:1937:21: error: ‘ch_user’ was not declared in this scope; did you mean ‘es_user’?
 1937 |                     ch_user = mysql_user;
      |                     ^~~~~~~
      |                     es_user
src/Prefs.cpp:1941:12: error: ‘ch_user’ was not declared in this scope; did you mean ‘es_user’?
 1941 |       if (!ch_user || !mysql_user) {
      |            ^~~~~~~
      |            es_user
make: *** [Makefile:133: src/Prefs.o] Error 1