I'm having a problem building Akonadi.  When running cmake, I get an 
error.  The build/CMakeFiles/CMakeError.log gives:


File 
/tmp/akonadi/akonadi-1.11.0/build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx:
/* */
#include <QtCore/qglobal.h>

int main(int argc, char** argv)
{
   (void)argv;
#ifndef Q_WS_WIN
   return ((int*)(&Q_WS_WIN))[argc];
#else
   (void)argc;
   return 0;
#endif
}

This is a file generated by 
/usr/share/cmake-2.8/Modules/CheckSymbolExists.cmake:

set(CMAKE_CONFIGURABLE_FILE_CONTENT
       "${CMAKE_CONFIGURABLE_FILE_CONTENT}\nint main(int argc, char** 
argv)\n{\n  (void)argv;\n#ifndef ${SYMBOL}\n  return 
((int*)(&${SYMBOL}))[argc];\n#else\n  (void)argc;\n  return 
0;\n#endif\n}\n")


Now I may be misreadign this completely, but I'd think that if the 
tested symbol, in this case Q_WS_WIN does not exist, then it should 
never be referenced.

Should the #ifndef really be #ifdef?

Changing that allows the build to complete.

   -- Bruce
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to