I'm trying to set up a nightly build for CMake on OpenBSD and I'm getting some linker issues. When I configure CMake to use it's internal versions of curl, expat, and libz, then everything builds. It does, however, fail the X11 test because of a linker error:
http://www.cdash.org/CDash/testDetails.php?test=43846434&build=534940 [100%] Building C object CMakeFiles/UseX11.dir/X11.c.o Linking C executable UseX11 /usr/X11R6/lib/libSM.so.8.0: warning: strcpy() is almost always misused, please use strlcpy() /usr/X11R6/lib/libICE.so.9.0: warning: strcat() is almost always misused, please use strlcat() /usr/X11R6/lib/libSM.so.8.0: warning: sprintf() is often misused, please use snprintf() /usr/bin/ld: warning: libICE.so.9.0, needed by /usr/X11R6/lib/libSM.so.8.0, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libXau.so.9.0, needed by /usr/X11R6/lib/libX11.so.11.2, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libXdmcp.so.9.0, needed by /usr/X11R6/lib/libX11.so.11.2, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libX11.so.11.2, needed by /usr/X11R6/lib/libXext.so.10.0, not found (try using -rpath or -rpath-link) /usr/X11R6/lib/libX11.so.11.2: undefined reference to `XdmcpWrap' /usr/X11R6/lib/libX11.so.11.2: undefined reference to `XauGetBestAuthByAddr' /usr/X11R6/lib/libX11.so.11.2: undefined reference to `XauDisposeAuth' collect2: ld returned 1 exit status gmake[2]: *** [UseX11] Error 1 gmake[1]: *** [CMakeFiles/UseX11.dir/all] Error 2 gmake: *** [all] Error 2 But when I try to configure cmake using the system libraries for curl, expat, and libz, then I get similar linker errors for the cmake build itself: http://www.cdash.org/CDash/buildSummary.php?buildid=534978 /usr/bin/ld: warning: libintl.so.4.0, needed by /usr/local/lib/libcurl.so.13.2, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libiconv.so.6.0, needed by /usr/local/lib/libcurl.so.13.2, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libidn.so.16.30, needed by /usr/local/lib/libcurl.so.13.2, not found (try using -rpath or -rpath-link) /usr/local/lib/libcurl.so.13.2: undefined reference to `tld_strerror' /usr/local/lib/libcurl.so.13.2: undefined reference to `stringprep_check_version' /usr/local/lib/libcurl.so.13.2: undefined reference to `idn_free' /usr/local/lib/libcurl.so.13.2: undefined reference to `idna_strerror' /usr/local/lib/libcurl.so.13.2: undefined reference to `idna_to_unicode_lzlz' /usr/local/lib/libcurl.so.13.2: undefined reference to `stringprep_locale_charset' /usr/local/lib/libcurl.so.13.2: undefined reference to `idna_to_ascii_lz' /usr/local/lib/libcurl.so.13.2: undefined reference to `tld_check_lz' collect2: ld returned 1 exit status gmake[2]: *** [bin/DumpDocumentation] Error 1 gmake[1]: *** [Source/CMakeFiles/DumpDocumentation.dir/all] Error 2 Chuck Atkins R&D Engineer Kitware, Inc. (518) 371-3971 x603 -- "Mathematicians are tools for turning coffee grounds into formulas.", Paul Erdos
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake