On 2015-02-24 10:20-0500 Jim Dishaw wrote: >> I am virtually positive that [commit] will solve the above linking issue, >> but let >> me know how it goes, and if that linking works how much further you get. > > I updated from the git repository and now got the following error: > > Linking CXX executable wxPLViewer > ld: library not found for -lrt > clang: error: linker command failed with exit code 1 (use -v to see > invocation) > make[2]: *** [utils/wxPLViewer] Error 1 > make[1]: *** [utils/CMakeFiles/wxPLViewer.dir/all] Error 2 > make: *** [all] Error 2 > > librt is not available on Mac OS X nor is it in MacPorts. Which function are > we pulling in from librt?
Please see discussion at <http://stackoverflow.com/questions/1505402/library-not-found-for-lrt-with-qtcreator-mac-os> which implies librt (the real-time extensions library) is part of the POSIX standard that Mac OS X ignores. So for Mac's we must remove the explicit linking with rt, but before I tried that I noticed rt was not specifically mentioned at all in the wxwidgets case so I dropped the explicit mention in the wxPLViewer case and that worked fine on Debian stable. (However, the situation is a little ambiguous there because "ldd" reveals that rt is implicitly linked in even when I don't link it explicitly.) @Jim: So I have pushed a change to our build system to drop explicit linking with the rt library on all platforms, and please try that to see how much further you get. @Phil: You should test this change on CentOS and Ubuntu, and if either of those need rt explicitly linked (but not wxwidgets which apparently has never had rt explicitly linked by our build system), then all you have to do is change one statement in utils/CMakeLists.txt to reinstate the old behaviour (which also works on Debian stable) without interfering with Jim's Mac OS X build. Alan __________________________ Alan W. Irwin Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); the Time Ephemerides project (timeephem.sf.net); PLplot scientific plotting software package (plplot.sf.net); the libLASi project (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel