frameworks build issues

Stephen Kelly steveire at gmail.com
Wed Nov 23 10:46:36 UTC 2011


PERIER Romain wrote:

> 2011/11/23 Stephen Kelly <steveire at gmail.com>
> 
>> Jeremy Whiting wrote:
>>
>> > Besides the cmake
>> > issues I also get link errors in tier1/kauth like this:
>> >
>> > Linking CXX shared library ../../lib/libkauth.so
>> > /usr/bin/ld: warning: cannot find entry symbol rrors; defaulting to
>> > 00000000000067e0
>> > collect2: ld returned 1 exit status
>> > make[2]: *** [lib/libkauth.so.5.0.0] Error 1
>> > make[1]: *** [tier1/libkauth/CMakeFiles/kauth.dir/all] Error 2
>> >
>>
> 
> hi,
> 
> I found why kauth does not build. Try to build it with "make VERBOSE=1" ,
> during the linking phase there is a "-errors" options => in other words,
> you ask ld to start the execution of the program at symbol "rrors" which
> does not exist. Also that does not make sense for a shared object.  Then
> take a look at tier1/kauth/CMakeLists.txt
> "string(REPLACE "-pedantic" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")" 
> <--- this line
> 
> which means : "-pedantic-errors" is replaced by "-errors" ...


I wonder why it works for me. Do you add that flag locally? What is the 
right fix? Do a 

string(REPLACE "-pedantic-errors" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")

before the other replce?



More information about the Kde-frameworks-devel mailing list