On 02/27/2014 12:02 AM, Bruce Dubbs wrote:
> Armin K. wrote:
>> 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).
> 
> Now that's odd.  I had commend out the offending line in 
> CheckSymbolExists.cmake so I reset it and commented out the new line.
> 
> When rechecking, it now works.  I'll keep an eye on it and we can 
> revisit the problem if it occurs again.  I still think the logic in the 
> cmake modules is wrong.
> 
>    -- Bruce
> 
> 

No, the check is right. It is supposed to fail if the function isn't found.

See my logs. I tend to believe that new Qt instructions will cause more
than this problem.

-- 
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

Reply via email to