On 02/26/2014 11:41 PM, Bruce Dubbs wrote:
> 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
>
Can you post the output of CMake from a clean build directory? (not the
log, just the output on the screen).
--
Note: My last name is not Krejzi.
--
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page