You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version: v0.6.0 (should be reproducible on master)
Platform: macOS 12.6
Compiler: AppleClang 14.0.0
When WITH_THREADS options is set to OFF, linking glog will pop an linking error which says undef: __ZN6google24glog_internal_namespace_31IsFailureSignalHandlerInstalledEv
It looks like the symbol google::glog_internal_namespace_::IsFailureSignalHandlerInstalled() is defined in src/signalhandler.cc ,
Hi there, I just came to the same problem.
Just comment the if condition line in the glog/CMakeLists.txt to fix.
#if (HAVE_PTHREAD OR WIN32 OR CYGWIN)
list (APPEND GLOG_SRCS src/signalhandler.cc)
#endif (HAVE_PTHREAD OR WIN32 OR CYGWIN)
And I tried some basic functions, like LOG(INFO), they worked.
But not sure if there will be unknown issues, and I wonder if this is an intended behavior too.
Wish this will help.
Version: v0.6.0 (should be reproducible on master)
Platform: macOS 12.6
Compiler: AppleClang 14.0.0
When
WITH_THREADS
options is set to OFF, linking glog will pop an linking error which saysundef: __ZN6google24glog_internal_namespace_31IsFailureSignalHandlerInstalledEv
It looks like the symbol
google::glog_internal_namespace_::IsFailureSignalHandlerInstalled()
is defined insrc/signalhandler.cc
,glog/src/signalhandler.cc
Lines 367 to 381 in 05fbc65
and the source file will not be included in the build target if WITH_THREADS is set to OFF.
glog/CMakeLists.txt
Lines 530 to 536 in 05fbc65
glog/CMakeLists.txt
Lines 621 to 623 in 05fbc65
Is this an intended behavior? If not, I can help to fix this.
The text was updated successfully, but these errors were encountered: