[Poppler-bugs] [Bug 26650] New: Compilation fails on Solaris due to missing -lrt for nanosleep

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Feb 19 07:59:14 PST 2010


http://bugs.freedesktop.org/show_bug.cgi?id=26650

           Summary: Compilation fails on Solaris due to missing -lrt for
                    nanosleep
           Product: poppler
           Version: unspecified
          Platform: All
        OS/Version: Solaris
            Status: NEW
          Severity: normal
          Priority: medium
         Component: general
        AssignedTo: poppler-bugs at lists.freedesktop.org
        ReportedBy: grobian at gentoo.org


cmake output on a Sun sparc running Solaris 10:

Linking CXX executable perf-test
CMakeFiles/perf-test.dir/perf-test.cc.o: In function `sleep_milliseconds(int)':
perf-test.cc:(.text+0x51c): undefined reference to `nanosleep'
collect2: ld returned 1 exit status
make[2]: *** [test/perf-test] Error 1
make[1]: *** [test/CMakeFiles/perf-test.dir/all] Error 2
make: *** [all] Error 2

nanosleep is in -lrt on Solaris, which is missing in the link line (cmake
nicely hides it away, pretty useful).  The autoconf based build properly
detected this.  I don't understand enough of the cmake maze to suggest a patch
to do the equivalent of the autoconf macro to check whether a function needs a
library to be linked with.

Please add the appropriate construct to the cmake system.


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Poppler-bugs mailing list