On Mon, Aug 13, 2018 at 02:18:41PM -0500, Hartmut Kaiser wrote:
> > Thanks I searched for ldl and libdl... This gets me further:
> >
> > diff --git a/CMakeLists.txt b/CMakeLists.txt index c780ea50ef..69e8261dce
> > 100644
> > --- a/CMakeLists.txt
> > +++ b/CMakeLists.txt
> > @@ -1227,9 +1227,15 @@ if(NOT WIN32)
> >      endif()
> >    endif()
> >
> > -  if(NOT ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
> > -    hpx_libraries(dl)
> > -  endif()
> > +  # XXXPW if(NOT ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
> > +    find_library(DL_LIBRARY NAMES dl)
> > +    if(DL_LIBRARY)
> > +      message(STATUS "dl library found")
> > +      hpx_libraries(dl)
> > +    else()
> > +      message(STATUS "dl library not found")
> > +    endif()
> > +  # XXXPW endif()
> >
> >    if(NOT APPLE AND NOT ("${HPX_PLATFORM_UC}" STREQUAL "ANDROID"))
> >      hpx_libraries(rt)
> >
> >
> > but there are lots of ways of skinning that cat - have you a preferred way
> > of doing AC_CHECK_LIB([dl],[dlopen]) ?
> >
> > (On linking I get:
> 
> How about doing something like this:
> https://github.com/Fadis/libdcompile/blob/master/CMakeFiles/modules/FindLibD
> L.cmake

It think that that assumes that you need an extra library to go with
the include file, which isn't the case. According to
hpx/util/plugin/dll.hpp, we assume that everyone not on windows has
the include file. I think the find_library() is good enough, but could be
convinced about a CHECK_LIBRARY_EXISTS().

> > CMakeFiles/hpx.dir/runtime/threads/executors/this_thread_executors.cpp.o:
> > In function
> > `hpx::threads::coroutines::detail::context_base::~context_base()':
> > this_thread_executors.cpp:(.text._ZN3hpx7threads10coroutines6detail12conte
> > xt_baseD2Ev[_ZN3hpx7threads10coroutines6detail12context_baseD5Ev]+0x41):
> > undefined reference to
> > `hpx::threads::coroutines::detail::posix::use_guard_pages'
> > )
> 
> This is unrelated. The variable is defined here:
> https://github.com/STEllAR-GROUP/hpx/blob/master/src/util/runtime_configurat
> ion.cpp#L71-L83.

Thanks - I did the awful "add OS" there to carry on - really need to
think about what we are actually testing for...

Possibly related, I now get

ld: cannot find -lhpx_wrap

Is that also the GSoC runtime project?


cheers,

Patrick
_______________________________________________
hpx-users mailing list
[email protected]
https://mail.cct.lsu.edu/mailman/listinfo/hpx-users

Reply via email to