Giter VIP home page Giter VIP logo

Comments (10)

airween avatar airween commented on August 28, 2024

Hi @jackhill,

thanks for the hit - could you try this quick fix?

@dl1jbe, @zcsahok - do we need to handle the other possibilities in sendqrg.h?

from tlf.

jackhill avatar jackhill commented on August 28, 2024

@airween Thanks for looking into it! I can confirm that I can build and run the tests with your branch and hamlib 4.2. I didn't test running it and connecting it to any radios (I'm working on creating a package of tlf for Guix and there are some unrelated things for me to clean up before I can do that test) or against an older hamlib.

de KM4MBG

from tlf.

airween avatar airween commented on August 28, 2024

Hi @jackhill,

thanks for confirmation. Please do not apply this patch in Guix while we do not merge into the master branch.

73, de HA2OS

from tlf.

jackhill avatar jackhill commented on August 28, 2024

Sounds reasonable. I'll wait to see what the final solution is and backup that fix or package a newer release when one is available. Thanks again!

from tlf.

dl1jbe avatar dl1jbe commented on August 28, 2024

Hi @jackhill,

thanks for the hit - could you try this quick fix?

@dl1jbe, @zcsahok - do we need to handle the other possibilities in sendqrg.h?

We should at least do a '#else' and '#error' after line 30 if neither macro is defined.

The whole situation with Hamlib breaking its public API (using FILPATHLEN was a recommended part of it) in a minor version bump is highly disappointing There are quite some more ham radio applications which will be affected by that move.

While we can fix it for new code it is still a problem for using hamlib-4.2 with existing released versions of TLF. Hopefully we can work around by using '-DFILPATHLEN=HAMLIB_FILPATHLEN' or similar during build.

from tlf.

airween avatar airween commented on August 28, 2024

Hi Thomas,

I thought about I put the check into the autoconfig script, but using of FILPATHLEN macro is very limited: it's only in the sendqrg.c (and the header now). That's why I chose this solution. Would you me to put it the configure.in?

from tlf.

dl1jbe avatar dl1jbe commented on August 28, 2024

Hi Ervin, think it should not be needed. We check for hamlib in configure.in and so either macro should be here. If not, then something is quite wrong and we should '#error' out in sendqrg.h

from tlf.

airween avatar airween commented on August 28, 2024

Thanks - did you think something like this?

If it's right, I'm going to send the PR.

from tlf.

dl1jbe avatar dl1jbe commented on August 28, 2024

Better

#error "(HAMLIB_)FILPATHLEN macro not found"

to catch both versions.
Otherwise feel free to PR and merge it in.

from tlf.

airween avatar airween commented on August 28, 2024

PR #268 has merged, it solves this issue.

from tlf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.