-
Notifications
You must be signed in to change notification settings - Fork 208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multicast feature breaks MinGW build #710
Comments
The rand() is fixed but now am seeing this from the linker:
|
This would indicate it's linking an old library
The function is defined in network.o and it builds on Linux, Windows and github.
nm network.o | grep multi0000000000000f60 T network_multicast_server
Unless there's some limit on symbol length in your linker....it's an older system, right? I know there was some limit many moons ago.MISRA C 2004 and the ISO standard said don't depend on more then 31 chars but we're not near that yet.
Check the object file for the definition and also check the library that's being linked....there's a disagreement there.
Mike W9MDB
On Saturday, May 22, 2021, 07:15:04 AM CDT, Nate Bargmann ***@***.***> wrote:
The rand() is fixed but now am seeing this from the linker:
Making install in tests
make[1]: Entering directory '/home/nate/builds/hamlib-4.3~git/tests'
CC rigctl-rigctl.o
CC rigctl-rigctl_parse.o
CC rigctl-dumpcaps.o
CC rigctld-rigctld.o
CC rigctld-rigctl_parse.o
CC rigctld-dumpcaps.o
CC rigmem-rigmem.o
CC rigmem-memsave.o
CC rigmem-memload.o
CC rigmem-memcsv.o
CC rigsmtr.o
CC rigswr.o
CC rotctl-rotctl.o
CC rotctl-rotctl_parse.o
CC rotctl-dumpcaps_rot.o
CC rotctld-rotctld.o
CC rotctld-rotctl_parse.o
CC rotctld-dumpcaps_rot.o
CC rigctlcom-rigctlcom.o
CC rigctlcom-rigctl_parse.o
CC rigctlcom-dumpcaps.o
CC ampctl-ampctl.o
CC ampctl-ampctl_parse.o
CC ampctl-dumpcaps_amp.o
CC ampctld-ampctld.o
CC ampctld-ampctl_parse.o
CC ampctld-dumpcaps_amp.o
CCLD rigctl.exe
CCLD rigctld.exe
CCLD rigmem.exe
/usr/bin/i686-w64-mingw32-ld: rigctld-rigctld.o: in function `main':
/home/nate/builds/hamlib-4.3~git/tests/rigctld.c:749: undefined reference to `network_multicast_server'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:1002: rigctld.exe] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/home/nate/builds/hamlib-4.3~git/tests'
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
No old library. As a reminder this is in a virtual machine running Debian 10 where Hamlib has never been installed, only built. |
Did you check the library to see if it contains the reference?
nm network.o | grep multi0000000000000f60 T network_multicast_server
nm /usr/local/lib/libhamlib.so | grep multi00000000000a5d90 T network_multicast_server
On Saturday, May 22, 2021, 08:43:11 AM CDT, Nate Bargmann ***@***.***> wrote:
No old library. As a reminder this is in a virtual machine running Debian 10 where Hamlib has never been installed, only built.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
The address is too specific in your example. Here is what I get:
No
and:
|
Another build failure in the VM. Just checked with:
Here is the error output:
|
This should be fixed now.
As for the random() that's not in the current code.
Line 6524 shows rand() on the github copy of rig.c
Mike W9MDB
On Wednesday, May 26, 2021, 12:41:33 PM CDT, Nate Bargmann ***@***.***> wrote:
Another build failure in the VM. Just checked with:
RELEASE = 4.3~git
GITSHA1 = d2f7957
YMD = 20210526
Building Hamlib 4.3~git for W32
Here is the error output:
Making install in tests
make[1]: Entering directory '/home/nate/builds/hamlib-4.3~git/tests'
CC rigctl-rigctl.o
CC rigctl-rigctl_parse.o
CC rigctl-dumpcaps.o
CC rigctld-rigctld.o
CC rigctld-rigctl_parse.o
CC rigctld-dumpcaps.o
CC rigmem-rigmem.o
CC rigmem-memsave.o
CC rigmem-memload.o
CC rigmem-memcsv.o
CC rigsmtr.o
CC rigswr.o
CC rotctl-rotctl.o
CC rotctl-rotctl_parse.o
CC rotctl-dumpcaps_rot.o
CC rotctld-rotctld.o
CC rotctld-rotctl_parse.o
CC rotctld-dumpcaps_rot.o
CC rigctlcom-rigctlcom.o
CC rigctlcom-rigctl_parse.o
CC rigctlcom-dumpcaps.o
CC ampctl-ampctl.o
CC ampctl-ampctl_parse.o
CC ampctl-dumpcaps_amp.o
CC ampctld-ampctld.o
CC ampctld-ampctl_parse.o
CC ampctld-dumpcaps_amp.o
CCLD rigctl.exe
CCLD rigctld.exe
CCLD rigmem.exe
/usr/bin/i686-w64-mingw32-ld: rigctl-rigctl.o: in function `main':
/home/nate/builds/hamlib-4.3~git/tests/rigctl.c:177: undefined reference to `cookie_use'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:994: rigctl.exe] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/home/nate/builds/hamlib-4.3~git/tests'
make: *** [Makefile:603: install-recursive] Error 1
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
That fixed that part of the build and the daily snapshots built and have been uploaded as of SHA1 8ded446. I so see this in both 32 and 64 bit MinGW builds:
|
I understand the |
Try again...
Mike
On Wednesday, May 26, 2021, 01:03:34 PM CDT, Nate Bargmann ***@***.***> wrote:
That fixed that part of the build and the daily snapshots built and have been uploaded as of SHA1 8ded446.
I so see this in both 32 and 64 bit MinGW builds:
CC register.lo
rig.c:93:1: warning: ‘cdecl’ attribute only applies to function types [-Wattributes]
HAMLIB_EXPORT(int) cookie_use;
^~~~~~~~~~~~~
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Clean as a hound's tooth! Thanks, Mike. |
Hi Mike.
I guess this affected yesterday's run already but I just remembered to check this.
Cleaned out my build directory and ran my scripts manually. Here is the start for 32 bit:
And it fails at this toward the end:
Now 64 bit
Looks to be about the same result:
And fails the same:
Hope that helps.
The text was updated successfully, but these errors were encountered: