Opened 12 years ago

Closed 12 years ago

#38330 closed defect (fixed)

marble @4.10.1: error: use of undeclared identifier 'isnan'; did you mean 'std::isnan'?

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: sharky@…
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc: NicosPavlov
Port: marble

Description

Building marble @4.10.1 fails on OS X 10.8.2 with Xcode 4.6:

[ 93%] /opt/local/var/macports/build/_Users_rschmidt_macports_dports_kde_marble/marble/work/marble-4.10.1/src/plugins/positionprovider/gpsd/GpsdPositionProviderPlugin.cpp:79:42: error: use of undeclared identifier 'isnan'; did you m[ 93%] ean 'std::isnan'?
    if ( data.status == STATUS_NO_FIX || isnan( data.fix.longitude ) || isnan( data.fix.latitude ) )
                                         ^~~~~
                                         std::isnan
/usr/include/c++/4.2.1/cmath:550:5: note: 'std::isnan' declared here
    isnan(_Tp __f) { return ::__gnu_cxx::__capture_isnan(__f); }
    ^

Attachments (1)

main.log.bz2 (70.8 KB) - added by ryandesign (Ryan Carsten Schmidt) 12 years ago.

Download all attachments as: .zip

Change History (2)

Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: main.log.bz2 added

comment:1 Changed 12 years ago by NicosPavlov

Resolution: fixed
Status: newclosed

There is indeed some symbol issues in some kde ports recently. This one did not pop up in my tests or on the bot as it occurs in case of an opportunistic linking. Thanks for pointing it out. The link and the symbols should be fixed in r103867.

Note: See TracTickets for help on using tickets.