[MacPorts] #62397: colorer @take5.be5_2: error: redefinition of 'log' as different kind of symbol
MacPorts
noreply at macports.org
Sun Mar 7 00:23:17 UTC 2021
#62397: colorer @take5.be5_2: error: redefinition of 'log' as different kind of
symbol
-------------------------+---------------------
Reporter: cooljeanius | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.6.4
Keywords: | Port: colorer
-------------------------+---------------------
Seems to be some sort of issue with variable naming and/or header
inclusion:
{{{
../shared//./common/Logging.cpp:13:14: error: redefinition of 'log' as
different kind of symbol
static FILE *log = 0;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/math.h:1003:1:
note: previous definition is here
log(_A1 __lcpp_x) _NOEXCEPT {return ::log((double)__lcpp_x);}
^
../shared//./common/Logging.cpp:19:10: error: reference to overloaded
function could not be resolved; did you mean to call it?
while (log == 0 && idx < 10){
^~~
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/math.h:1003:1:
note: possible target for call
log(_A1 __lcpp_x) _NOEXCEPT {return ::log((double)__lcpp_x);}
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/math.h:997:46:
note: possible target for call
inline _LIBCPP_INLINE_VISIBILITY long double log(long double __lcpp_x)
_NOEXCEPT {return ::logl(__lcpp_x);}
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/math.h:996:46:
note: possible target for call
inline _LIBCPP_INLINE_VISIBILITY float log(float __lcpp_x) _NOEXCEPT
{return ::logf(__lcpp_x);}
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/math.h:373:15:
note: possible target for call
extern double log(double);
^
}}}
Full error output is kinda long; I'll attach logs.
--
Ticket URL: <https://trac.macports.org/ticket/62397>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list