Open buijs-jive opened 1 year ago
Can you try the issue-25
branch? I remember already fixing this, only it's not merged into the 3.1.0-branch yet (see the commit log: https://github.com/jive-vlbi/jive5ab/commits/issue-25)
After having checked this, another compilation error remains on Debian 12, in the counted pointer
code.
The easiest fix is to configure the build to force-use C++11:
$> cmake [other options] -DC++11=ON ..
After that the compilation should "just work"
git clone https://github.com/jive-vlbi/jive5ab.git cd jive5ab git checkout 3.1.0-branch mkdir package cd package/ cmake -DSSAPI_ROOT=nossapi ../ make package
`/jive5ab/package$ cmake -DSSAPI_ROOT=nossapi ../ CMake Deprecation Warning at CMakeLists.txt:2 (cmake_minimum_required): Compatibility with CMake < 2.8.12 will be removed from a future version of CMake.
Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.
Configuration: 3.1.0-dev Debug WDAPI= SSE=41 FILA= -- Configuring done -- Generating done -- Build files have been written to: /home/buijs/jive5ab/package buijs@flexbuf7:~/jive5ab/package$ make package make[2]: Warning: File 'libudt5ab/CMakeFiles/udt5ab.dir/compiler_depend.make' has modification time 0.24 s in the future make[2]: warning: Clock skew detected. Your build may be incomplete. [ 8%] Built target udt5ab make[2]: Warning: File 'src/CMakeFiles/jive5ab.dir/compiler_depend.make' has modification time 0.19 s in the future [ 9%] Building CXX object src/CMakeFiles/jive5ab.dir/threadfns.cc.o /home/buijs/jive5ab/src/threadfns.cc: In function ‘void udpsreader_th_zeroeing(inq_type, sync_type )’:
/home/buijs/jive5ab/src/threadfns.cc:3150:15: error: ‘void operator delete ’ called on pointer returned from a mismatched allocation function [-Werror=mismatched-new-delete]
3150 | delete [] zeroes;
| ^
~/home/buijs/jive5ab/src/threadfns.cc:3095:63: note: returned from ‘void calloc(size_t, size_t)’ 3095 | unsigned char zeroes = (unsigned char*)::calloc(nzeroes, 1); |~~^~~~~~ `