#69124 closed defect (fixed)

openjdk8 @8u372_2+release+zero: error: use of undeclared identifier 'finite'; did you mean 'isfinite'?

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: usersxx
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc:
Port: openjdk8

Description

https://build.macports.org/builders/ports-13_arm64-builder/builds/48202/steps/install-port/logs/stdio

/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_java_openjdk8/openjdk8/work/jdk8u-jdk8u372-ga/hotspot/src/share/vm/utilities/globalDefinitions_gcc.hpp:252:59: error: use of undeclared identifier 'finite'; did you mean 'isfinite'?
inline int g_isfinite(jfloat  f)                 { return finite(f); }
                                                          ^~~~~~
                                                          isfinite
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.sdk/usr/include/c++/v1/math.h:453:1: note: 'isfinite' declared here
isfinite(_A1 __lcpp_x) _NOEXCEPT
^

finite is ancient. It was replaced by isfinite in C99.

Change History (2)

comment:1 Changed 10 months ago by jmroot (Joshua Root)

I was kind of hoping this would be fixed in a newer version, but apparently 8u402 still fails this way (see #69120).

comment:2 Changed 10 months ago by jmroot (Joshua Root)

Resolution: fixed
Status: assignedclosed

In c407e3b336b5f8c7760fa57360ce0f629bb78b62/macports-ports (master):

openjdk8: use isfinite() instead of finite()

Fixes: #69124

Note: See TracTickets for help on using tickets.