vzlogger
vzlogger copied to clipboard
Build on Debian fails because of tempnam_r
It is actually the linker that fails:
/usr/bin/ld: CMakeFiles/vzlogger_unit_tests.dir/MeterD0.cpp.o: in function MeterD0_basic_dump_fd_Test::TestBody()': /home/jo/projects/debian/vzlogger/tests/MeterD0.cpp:37: warning: the use of
tmpnam_r' is dangerous, better use `mkstemp'
make[3]: Verzeichnis „/home/jo/projects/debian/vzlogger/obj-x86_64-linux-gnu“ wird verlassen
[ 70%] Built target vzlogger_unit_tests
make[2]: Verzeichnis „/home/jo/projects/debian/vzlogger/obj-x86_64-linux-gnu“ wird verlassen
This is happening on a mostly bullseye amd64 system with a few libs from testing. Especially binutils is 2.37-4 from testing.