Hello Daniel, Wednesday, April 15, 2009, 2:03:40 AM, you wrote:
DS> Hey CMakers! DS> 2. What's the purpose of CMake/Platforms/config-aix.h ? This is a legacy file that goes with CMake itself. I didn't check if it is really needed. DS> 3. I still can't build curl with cmake on Linux: DS> [ 29%] Building C object src/CMakeFiles/curl.dir/main.c.o DS> In file included from /home/daniel/src/curl-alt/lib/setup.h:40, DS> from /home/daniel/src/curl-alt/lib/strtoofft.h:26, DS> from /home/daniel/src/curl-alt/lib/curlx.h:41, DS> from /home/daniel/src/curl-alt/src/main.c:100: DS> /home/daniel/src/curl-alt/lib/config.h:375:1: warning: "HAVE_LIBZ" redefined Basically, CMake builds must use generated config.h file. Looks like you are building in-source, and the build takes wrong config.h file. Try this: mkdir curl_build cd curl_build cmake ../path-to-curl make This should build curl out-of-source (which is the normal build mode for CMake). DS> Linking C executable curl DS> CMakeFiles/curl.dir/curlutil.c.o: In function `cutil_tvnow': DS> curlutil.c:(.text+0x15): undefined reference to `clock_gettime' DS> collect2: ld returned 1 exit status Again, it looks like your build catches the wrong config.h :) -- Best regards, Tetetest mailto:tetet...@rambler.ru