-
Notifications
You must be signed in to change notification settings - Fork 64
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
lib/pud: fix build with gpsd >= 3.25 #122
base: master
Are you sure you want to change the base?
lib/pud: fix build with gpsd >= 3.25 #122
Conversation
This reverts commit 59417b5, reversing changes made to b52c790. We can't simply remove that code, otherwise we do break the build for versions of gpsd that came before gpsd-3.25. Signed-off-by: Yann E. MORIN <[email protected]>
Our `struct fixsource_t` conflicts with the one provide in gps.h since gpsd 3.25. gps.h only defines an API version; it does not provide the version of gpsd itself (and that's probably good), so we can't compare the gpsd version to decde whether we need to define that struct or not. However, `struct fixsource_t` was moved as part of API 14, so we use that instead. This is not very clean, as the proper fix would be to detect that as part of configure-like step, but since we have none, we need to detect it at build time with C preprocessor tests. Closes: OLSR#118 Supersedes: OLSR#119 OLSR#120 OLSR#121 Signed-off-by: Yann E. MORIN <[email protected]>
@mathiashro As requested in #120, here's a respin of the gpsd 3.25 fix, with a revert of #119. |
@mathiashro Do you have any feedback to provide, please? Currently, the build is broken with versions of gpsd older than 3.25, which are |
This does not seem correct. The major version was already bumped for v23: However, the fixsource_t was changed in v24: So v23 will not build with this change here? |
Introduce back the fixsource_t struct definition based on libgps version, retrieved from pkg-config. This fixes the build with libgps versions inferior or equal to 3.24 Closes: OLSR#122 Signed-off-by: Nicolas Peugnet <[email protected]>
Introduce back the fixsource_t struct definition based on libgps version, retrieved from pkg-config. This fixes the build with libgps versions inferior or equal to 3.24 Closes: OLSR#122 Co-authored-by: Nicolas Peugnet <[email protected]>
Fix build against gpsd-3.25.
Fixes: #118
Supersedes: #119 #120 #121
This was tested to fix the build with gpsd-3.25, as detected by Buildroot autobuilders:
http://autobuild.buildroot.org/results/47a619686bb47debd525c92aa7e14bee5c40ca9e