¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

#fldigi #hamlib Hamlib 4.6 not working #fldigi #hamlib


 

The current release of Hamlib is now version 4.6
?
fldigi hamlib control does not work with my Yaesu FT-890.
When I click Initialize, nothing happens and hamlib becomes unchecked.
Hamlib NET rigctl does work with my SDR.
?
The Yaesu FT-890 does work with Hamlib 4.5.5.
?
I tried fldigi 4.2.06 and fldigi 4.2.06.17
I am using a Raspberry Pi 5 and Dietpi debian bookworm. I?have a USB to RS232 cable.
?


 

Hamlib has recently reverted the change that broke fldigi hamlib control build with this comment:
Change rig_list_foreach back to using const argument -- was breaking many C++ application builds
?
I expect that this will fix fldigi hamlib control.


 

¿ªÔÆÌåÓý

Hi Steve

It actually broke my fldigi/hamlib alpha builds. ie 4.2.06.18 and 19 now fails with Hamlib 4.7~git 2024-12-29T16:43:39Z SHA=028d75 64-bit (and later)

rigcontrol/hamlib.cxx: In function ¡®void hamlib_get_rigs()¡¯:
rigcontrol/hamlib.cxx:612:26: error: invalid conversion from ¡®int (*)(rig_caps*, void*)¡¯ to ¡®int (*)(const rig_caps*, void*)¡¯ [-fpermissive]
? 612 |???????? rig_list_foreach(add_to_list, 0);
????? |????????????????????????? ^~~~~~~~~~~
????? |????????????????????????? |
????? |????????????????????????? int (*)(rig_caps*, void*)
In file included from ./include/rigclass.h:27,
???????????????? from ./include/main.h:36,
???????????????? from ./include/squelch_status.h:31,
???????????????? from ./include/status.h:29,
???????????????? from ./include/nanoIO.h:42,
???????????????? from ./include/confdialog.h:424,
???????????????? from rigcontrol/hamlib.cxx:34:
/usr/local/include/hamlib/rig.h:3794:18: note:?? initializing argument 1 of ¡®int rig_list_foreach(int (*)(const rig_caps*, void*), void*)¡¯
?3794 | rig_list_foreach HAMLIB_PARAMS((int (*cfunc)(const struct rig_caps *, rig_ptr_t),

Cheers Bob VK2YQA

On 3/1/25 08:24, Steve, KB5AW via groups.io wrote:

Hamlib has recently reverted the change that broke fldigi hamlib control build with this comment:
Change rig_list_foreach back to using const argument -- was breaking many C++ application builds
?
I expect that this will fix fldigi hamlib control.
_._,_._,_



 

I compiled 4.2.06.17 with hamlib 4.6, which did not work, but it now works with hamlib 4.7.
?
It is apparent that he "fixed" fldigi 4.2.06.18 for hamlib 4.6.
?
Since the rig_caps variable is the source of the problem, fldigi 4.2.06.19 should build with hamlib 4.6.
?
Now flgidi has to decide whether or not to revert the hamlib changes, as hamlib will eventually make a new release with the rig_caps changes.
?
My fldigi 4.2.06.19 build is also failing because of rig_caps.
?


 

I reverted to hamlib 4.6 and successfully built fldigi 4.2.06.19. It works with my Yaesu FT-890.
?
I switched Hamlib back to version 4.7~git and fldigi 4.2.06.19 still works with my Yaesu FT-890.
?
This may be a workaround until a permanent fix is available.
?


 

Compiling fldigi with Hamlib 4.7~git may have been resolved.
?
On Jan 3, Hamlib made this change:
#define RIGCAPS_NOT_CONST 1
// As of 2025-01-03 removeing this -- fldigi was the only one that got it right
// riglist_foreach is now constant again but others are not
// #define RIGCAPS_NOT_CONST 1
?
RIGCAPS_NOT_CONST should be removed now because rig_caps has been reverted to type const.
This was still in place after rig_caps was reverted to type const, causing fldigi to fail.
?
I installed the latest Hamlib 4.7~git and reinstalled fldigi 4.2.06.19 successfully.
It is working and now listening to the ARRL RTTY roundup.


 

¿ªÔÆÌåÓý

Thanks Steve

Did a git pull & build of 4.7 and 4.2.06.19 is now most happy!

Cheers Bob VK2YQA

On 5/1/25 15:55, Steve, KB5AW via groups.io wrote:

Compiling fldigi with Hamlib 4.7~git may have been resolved.
?
On Jan 3, Hamlib made this change:
#define RIGCAPS_NOT_CONST 1
// As of 2025-01-03 removeing this -- fldigi was the only one that got it right
// riglist_foreach is now constant again but others are not
// #define RIGCAPS_NOT_CONST 1
?
RIGCAPS_NOT_CONST should be removed now because rig_caps has been reverted to type const.
This was still in place after rig_caps was reverted to type const, causing fldigi to fail.
?
I installed the latest Hamlib 4.7~git and reinstalled fldigi 4.2.06.19 successfully.
It is working and now listening to the ARRL RTTY roundup.
_._,_._,_