Re: [Hamlib-developer] Error building Hamlib
Library to control radio transceivers and receivers
Brought to you by:
n0nb
From: Gary R. <cga...@gm...> - 2023-05-09 12:30:18
|
Looks like in the process of updating Msys2 i broke GCC > On May 9, 2023, at 6:40 AM, Gary Rogers <cga...@gm...> wrote: > > I got the following error today when using Hamlib for Windows in JTSDK - mingw64. I built with my usual option 7 and retried using option 8 and then option 7. Hamlib built in MacOS and Linux without errors. Any suggestions to fix? I ran all the updates for Msys2 and all are up to date. > > CC multicast.lo > ../../src/src/multicast.c: In function 'GetWinsockErrorString': > ../../src/src/multicast.c:333:15: warning: unused variable 'charsWritten' [-Wunused-variable] > 333 | DWORD charsWritten; > | ^~~~~~~~~~~~ > ../../src/src/multicast.c: In function 'GetWinsockLastError': > ../../src/src/multicast.c:493:5: error: expected declaration or statement at end of input > 493 | } > | ^ > ../../src/src/multicast.c:493:5: warning: no return statement in function returning non-void [-Wretu > rn-type] > ../../src/src/multicast.c: At top level: > ../../src/src/multicast.c:471:9: warning: 'multicast_send' defined but not used [-Wunused-function] > 471 | int multicast_send(RIG * rig, const char *msg, int msglen) > | ^~~~~~~~~~~~~~ > ../../src/src/multicast.c:450:10: warning: 'multicast_close' defined but not used [-Wunused-functio > ] > 450 | void multicast_close(RIG * rig) > | ^~~~~~~~~~~~~~~ > ../../src/src/multicast.c:347:9: warning: 'multicast_init' defined but not used [-Wunused-function] > 347 | int multicast_init(RIG * rig, char *addr, int port) > | ^~~~~~~~~~~~~~ > ../../src/src/multicast.c:330:10: warning: 'GetWinsockErrorString' defined but not used [-Wunused-fu > nction] > 330 | void GetWinsockErrorString(char *errorBuffer, DWORD errorBufferSize) > | ^~~~~~~~~~~~~~~~~~~~~ > make[2]: *** [Makefile:635: multicast.lo] Error 1 > make[2]: Leaving directory '/home/charlesrogers/src/hamlib/build/src' > make[1]: *** [Makefile:498: all] Error 2 > make[1]: Leaving directory '/home/charlesrogers/src/hamlib/build/src' > make: *** [Makefile:635: all-recursive] Error 1 > > CLEAR SOURCE then CLOSE and RESTART MSYS2 IF YOU INTEND TO BUILD STATIC LIBRARIES > |