Hi, on solaris2.6, nanosleep() comes from libposix4.
This is not caught by the current configure script, would it be possible to add it? Here is a post that does this test: http://lists.xiph.org/pipermail/icecast-dev/2004-March/000981.html In that case the patch was: Index: configure.in =================================================================== RCS file: /usr/local/cvsroot/icecast/configure.in,v retrieving revision 1.45 diff -u -r1.45 configure.in --- configure.in 29 Jan 2004 23:23:52 -0000 1.45 +++ configure.in 7 Mar 2004 08:36:54 -0000 @@ -62,7 +62,9 @@ dnl Check for types dnl Checks for library functions. -AC_CHECK_FUNCS(localtime_r nanosleep poll) +AC_CHECK_FUNCS(localtime_r poll) +AC_SEARCH_LIBS(nanosleep, rt posix4, AC_DEFINE(HAVE_NANOSLEEP, 1, + [Define if you have nanosleep])) XIPH_NET dnl -- configure options -- I looked at configure.in from the 4.9.1 tarball and guessed this might be enough: - AC_CHECK_FUNCS(nanosleep, [], AC_CHECK_LIB(rt, nanosleep, nanosleep_needs rt="yes"], AC_MSG_ERROR(cannot find nanosleep))) + AC_CHECK_FUNCS(nanosleep, [], AC_CHECK_LIB(rt posix4, nanosleep, nanosleep_needs_rt="yes"], AC_MSG_ERROR(cannot find nanosleep))) I'd be happy to test. I can clone git, but I don't know if I have the right auto* versions to create configure from configure.in. Kind regards Vince _______________________________________________ collectd mailing list [email protected] http://mailman.verplant.org/listinfo/collectd
