Skip to content
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

Issues compiling with latest MSYS2 install #3

Open
bkt0031 opened this issue Sep 30, 2023 · 1 comment
Open

Issues compiling with latest MSYS2 install #3

bkt0031 opened this issue Sep 30, 2023 · 1 comment
Assignees

Comments

@bkt0031
Copy link

bkt0031 commented Sep 30, 2023

I just attempted to compile this on a new installation of MSYS2 and it failed with:

network.c:66:2: error: conflicting types for 'IP_MREQ'; have 'struct <anonymous>'

Looking at that file I find the conditional expression:

#if !defined __MINGW64_VERSION_MAJOR || __MINGW64_VERSION_MAJOR != 11

Looking at MSYS2 version for MINGW64 I see:

MinGW-w64 version 12.0.0

My solution was to change the conditional to:

#if !defined __MINGW64_VERSION_MAJOR || __MINGW64_VERSION_MAJOR < 11

For the files: network.c, sdrip.c, openhpsdr.c, afedri.c, and cloudiq.c

@fventuri
Copy link
Owner

@bkt0031 - thanks for the fix; I just applied it to the main branch.

However the branch that is most current is called sm5bsz because it follows (it is actually just a copy of) Leif Åsbrink, SM5BSZ, latest subversion revision (currently 1022 from June 12th 2023) from here: svn checkout https://svn.code.sf.net/p/linrad/code/trunk linrad

I use his current code (that contains all my old changes) to build automatically the Windows executables under 'Releases'.

I just looked at his code, and the only reference I see there to __MINGW64_VERSION_MAJOR is the following in the file network.c:

#if !defined __MINGW64_VERSION_MAJOR || __MINGW64_VERSION_MAJOR < 9

which may work without any further changes.

Franco

@fventuri fventuri self-assigned this Sep 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants