[vz-users] Fehler beim Compilieren von vzlogger

Beckert beckert at gmx.de
Di Dez 15 12:01:44 CET 2020


Hallo,

ich möchte gern meinen ISKRA MT681 mit dem vzlogger auslesen und an meine InfluxDB schicken.

Leider scheitere ich am Übersetzen unter Ubuntu 20.10 64 bit auf einem Raspi 4B.

Ich bin dieser Anleitung gefolgt https://wiki.volkszaehler.org/software/controller/vzlogger/installation_cpp-version.

Beim Aufruf von
	./install.sh vzlogger

Kommt folgende Fehlermeldung:

make -f src/CMakeFiles/vzlogger.dir/build.make src/CMakeFiles/vzlogger.dir/build
make[2]: Entering directory '/home/pi/vzlogger/build'
[ 82%] Building CXX object src/CMakeFiles/vzlogger.dir/vzlogger.cpp.o
cd /home/pi/vzlogger/build/src && /usr/bin/c++  -DHAVE_CONFIG_HPP -I/home/pi/vzlogger/build -I/home/pi/vzlogger/include
-I/home/pi/vzlogger  -W -Wall -Wextra -Werror -Wnon-virtual-dtor -Wno-system-headers -Winit-self -Wmissing-include-dirs
-Wno-pragmas -Wredundant-decls -Wno-unused-parameter -std=c++11 -fpermissive -Wno-error=redundant-decls
-Wno-ignored-qualifiers   -g3 -o CMakeFiles/vzlogger.dir/vzlogger.cpp.o -c /home/pi/vzlogger/src/vzlogger.cpp
/home/pi/vzlogger/src/vzlogger.cpp: In function ‘int main(int, char**)’:
/home/pi/vzlogger/src/vzlogger.cpp:513:10: error: invalid conversion from ‘int (*)(void*, MHD_Connection*, const char*,
const char*, const char*, const char*, size_t*, void**)’ {aka ‘int (*)(void*, MHD_Connection*, const char*, const char*,
const char*, const char*, long unsigned int*, void**)’} to ‘MHD_AccessHandlerCallback’ {aka ‘MHD_Result (*)(void*,
MHD_Connection*, const char*, const char*, const char*, const char*, long unsigned int*, void**)’} [-Werror=permissive]
  513 |          &handle_request, (void *)&mappings, MHD_OPTION_END);
      |          ^~~~~~~~~~~~~~~
      |          |
      |          int (*)(void*, MHD_Connection*, const char*, const char*, const char*, const char*, size_t*, void**)
{aka int (*)(void*, MHD_Connection*, const char*, const char*, const char*, const char*, long unsigned int*, void**)}
In file included from /home/pi/vzlogger/include/local.h:33,
                 from /home/pi/vzlogger/src/vzlogger.cpp:55:
/usr/include/microhttpd.h:2428:45: note:   initializing argument 5 of ‘MHD_Daemon* MHD_start_daemon(unsigned int,
uint16_t, MHD_AcceptPolicyCallback, void*, MHD_AccessHandlerCallback, void*, ...)’
 2428 |                   MHD_AccessHandlerCallback dh, void *dh_cls,
      |                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~
cc1plus: all warnings being treated as errors
make[2]: *** [src/CMakeFiles/vzlogger.dir/build.make:66: src/CMakeFiles/vzlogger.dir/vzlogger.cpp.o] Error 1
make[2]: Leaving directory '/home/pi/vzlogger/build'
make[1]: *** [CMakeFiles/Makefile2:954: src/CMakeFiles/vzlogger.dir/all] Error 2
make[1]: Leaving directory '/home/pi/vzlogger/build'
make: *** [Makefile:166: all] Error 2


Kann mir wer dabei helfen?



Mehr Informationen über die Mailingliste volkszaehler-users