<br><br><div class="gmail_quote">On Sat, Feb 5, 2011 at 4:42 AM, Thorsten Zachmann <span dir="ltr"><<a href="mailto:t.zachmann@zagge.de">t.zachmann@zagge.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hello Pierre,<br>
<br>
On Saturday, February 05, 2011 00:26:26 Pierre Stirnweiss wrote:<br>
> -kde4_add_library(librcps_plan SHARED ${librcps_LIB_SRCS})<br>
> +kde4_add_library(librcps_plan STATIC ${librcps_LIB_SRCS})<br>
<br>
this change breaks compiling on linux<br></blockquote><div><br>Bummer, here is a catch 22 situation. What does the error mean? Is it easily fixable on linux?<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
Linking CXX shared module ../../../../lib/kplatorcpsscheduler.so<br>
/usr/bin/ld: ../../../../lib/liblibrcps_plan.a(librcps.o): relocation<br>
R_X86_64_32 against `.rodata' can not be used when making a shared object;<br>
recompile with -fPIC<br>
../../../../lib/liblibrcps_plan.a: could not read symbols: Bad value<br>
collect2: ld returned 1 exit status<br>
make[2]: *** [lib/kplatorcpsscheduler.so] Error 1<br>
make[1]: ***<br>
[kplato/plugins/schedulers/rcps/CMakeFiles/kplatorcpsscheduler.dir/all] Error<br>
2<br>
make: *** [all] Error 2<br>
<br>
When reverting this change it compiles fine again.<br>
<br>
Also I get the following message<br>
<br>
/home/tz/develop/kde/git/calligra/kplato/plugins/schedulers/rcps/libs/src/librcps.c:<br>
At top level:<br>
/home/tz/develop/kde/git/calligra/kplato/plugins/schedulers/rcps/libs/src/librcps.c:514:<br>
warning: initialization discards qualifiers from pointer target type<br>
/home/tz/develop/kde/git/calligra/kplato/plugins/schedulers/rcps/libs/src/librcps.c:515:<br>
warning: initialization discards qualifiers from pointer target type<br>
/home/tz/develop/kde/git/calligra/kplato/plugins/schedulers/rcps/libs/src/librcps.c:516:<br>
warning: initialization discards qualifiers from pointer target type<br>
/home/tz/develop/kde/git/calligra/kplato/plugins/schedulers/rcps/libs/src/librcps.c:517:<br>
warning: initialization discards qualifiers from pointer target type<br>
/home/tz/develop/kde/git/calligra/kplato/plugins/schedulers/rcps/libs/src/librcps.c:518:<br>
warning: initialization discards qualifiers from pointer target type<br>
/home/tz/develop/kde/git/calligra/kplato/plugins/schedulers/rcps/libs/src/librcps.c:519:<br>
warning: initialization discards qualifiers from pointer target type<br></blockquote><div><br>not culprit for those ones.<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
/home/tz/develop/kde/git/calligra/kplato/plugins/schedulers/rcps/libs/src/lib.h:7:<br>
warning: ‘kpt_max’ defined but not used<br>
/home/tz/develop/kde/git/calligra/kplato/plugins/schedulers/rcps/libs/src/lib.h:12:<br>
warning: ‘kpt_min’ defined but not used<br>
<br>
<br>
maybe this kpt_max and kpt_min can be replaced by qMax and qMin?<br></blockquote><div><br>actually it shouldn't even be fixed with kpt_ prefix. This is an external library copied in source for convinience. This ought to be fixed upstream actually.<br>
</div></div><br>Pierre<br><br>