Created attachment 234870 [details] Use size_t when building with clang With the current port build using clang, wsjtx will occasionally exit with a message along the lines of: Fortran runtime error: Actual string length is shorter than the declared one for dummy argument 'msgsent' (-4294967274/22) This is caused by using the wrong type for the hidden arguments that specify the character length when calling fortran subroutines from C. The attached patch solves the issue.
ugh i just hit this. can we land it? :)
Working and tested patch... anyone?
urgh I will test this today.
Quite a few errors with original patch which is why this was languishing... sorry Looks like latest standard of c++ broke original patch e.g. usr/include/c++/v1/__type_traits/enable_if.h:20:1: error: templates must have C++ linkage template <bool, class _Tp = void> struct _LIBCPP_TEMPLATE_VIS enable_if {}; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/home/db/ports/comms/wsjtx/work/.build/wsjtx-prefix/src/wsjtx-build/wsjtx_config.h:5:1: note: extern "C" language linkage specification begins here extern "C" { ^ In file included from <built-in>:1: In file included from /usr/home/db/ports/comms/wsjtx/work/.build/wsjtx-prefix/src/wsjtx-build/wsjtx_config.h:63: In file included from /usr/include/c++/v1/cstddef:38: /usr/include/c++/v1/__type_traits/enable_if.h:21:50: error: explicit specialization of undeclared template struct 'enable_if' ...
Created attachment 242392 [details] fix for size_t when building with clang new patch Please test this diff.