check_disk is missing -lrt on Solaris (#1329)

nameless-user <[email protected]>
Newsgroups gmane.network.nagios.devel
Message-ID <monitoring-plugins/monitoring-plugins/issues/[email protected]>
The following is being reported against monitoring-plugins-v2.1.1-39-g8095.

In the link of `check_disk.o` on Solaris 8, I get:

    Undefined                       first referenced
    symbol                             in file
    nanosleep                           check_disk.o
    ld: fatal: Symbol referencing errors. No output written to check_disk
    *** Error code 1
    make: Fatal error: Command failed for target `check_disk'

A look at the man page for nanosleep(3RT) on this platform shows that
it requires the `-lrt` library to be linked in, to access this function.


-- 
Reply to this email on GitHub:
https://github.com/monitoring-plugins/monitoring-plugins/issues/1329
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.