https://bugs.kde.org/show_bug.cgi?id=519958

            Bug ID: 519958
           Summary: compilation error due to isnan
    Classification: Applications
           Product: kstars
      Version First 3.8.2
       Reported In:
          Platform: NetBSD pkgsrc
                OS: NetBSD
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

Created attachment 192156
  --> https://bugs.kde.org/attachment.cgi?id=192156&action=edit
Patch fixing the build.

DESCRIPTION

When building kstars 3.8.2 on NetBSD 11.99.5/x86_64 (gcc 14.3.0) there are a
couple places where the build stops because of isnan(), like:
```
kstars-3.8.2/kstars/ekos/focus/curvefit.cpp: In member function 'bool
Ekos::CurveFitting::getGaussianParams(StarParams*)':
kstars-3.8.2/kstars/ekos/focus/curvefit.cpp:2593:9: error: 'isnan' was not
declared in this scope; did you mean 'std::isnan'?
 2593 |     if (isnan(FWHM) || FWHM < 0.0)
      |         ^~~~~
      |         std::isnan
```
or
```
kstars-3.8.2/kstars/skyqpainter.cpp: In member function 'virtual bool
SkyQPainter::drawImageOverlay(const QList<ImageOverlay>*, bool)':
kstars-3.8.2/kstars/skyqpainter.cpp:921:25: error: 'isnan' was not declared in
this scope
  921 |         if (!visible || isnan(pos.x()) || isnan(pos.y()))
      |                         ^~~~~
```

STEPS TO REPRODUCE
Try building kstars 3.8.2 on NetBSD 11.99.5/x86_64.

OBSERVED RESULT
See above.

EXPECTED RESULT
Build succeeds.

SOFTWARE/OS VERSIONS
Operating System (available in the Info Center app, or by running `kinfo` in a
terminal window): NetBSD
KDE Plasma Version: n/a
KDE Frameworks Version:  6.18.0
Qt Version: 6.11.0

ADDITIONAL INFORMATION

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to