[calligra] kplato/plugins/schedulers/rcps/libs/src: Fix Plan compile errors on windows msvc2010
Pierre Stirnweiss
pstirnweiss at googlemail.com
Sat Feb 5 07:18:50 GMT 2011
On Sat, Feb 5, 2011 at 4:42 AM, Thorsten Zachmann <t.zachmann at zagge.de>wrote:
> Hello Pierre,
>
> On Saturday, February 05, 2011 00:26:26 Pierre Stirnweiss wrote:
> > -kde4_add_library(librcps_plan SHARED ${librcps_LIB_SRCS})
> > +kde4_add_library(librcps_plan STATIC ${librcps_LIB_SRCS})
>
> this change breaks compiling on linux
>
Bummer, here is a catch 22 situation. What does the error mean? Is it easily
fixable on linux?
>
> Linking CXX shared module ../../../../lib/kplatorcpsscheduler.so
> /usr/bin/ld: ../../../../lib/liblibrcps_plan.a(librcps.o): relocation
> R_X86_64_32 against `.rodata' can not be used when making a shared object;
> recompile with -fPIC
> ../../../../lib/liblibrcps_plan.a: could not read symbols: Bad value
> collect2: ld returned 1 exit status
> make[2]: *** [lib/kplatorcpsscheduler.so] Error 1
> make[1]: ***
> [kplato/plugins/schedulers/rcps/CMakeFiles/kplatorcpsscheduler.dir/all]
> Error
> 2
> make: *** [all] Error 2
>
> When reverting this change it compiles fine again.
>
> Also I get the following message
>
>
> /home/tz/develop/kde/git/calligra/kplato/plugins/schedulers/rcps/libs/src/librcps.c:
> At top level:
>
> /home/tz/develop/kde/git/calligra/kplato/plugins/schedulers/rcps/libs/src/librcps.c:514:
> warning: initialization discards qualifiers from pointer target type
>
> /home/tz/develop/kde/git/calligra/kplato/plugins/schedulers/rcps/libs/src/librcps.c:515:
> warning: initialization discards qualifiers from pointer target type
>
> /home/tz/develop/kde/git/calligra/kplato/plugins/schedulers/rcps/libs/src/librcps.c:516:
> warning: initialization discards qualifiers from pointer target type
>
> /home/tz/develop/kde/git/calligra/kplato/plugins/schedulers/rcps/libs/src/librcps.c:517:
> warning: initialization discards qualifiers from pointer target type
>
> /home/tz/develop/kde/git/calligra/kplato/plugins/schedulers/rcps/libs/src/librcps.c:518:
> warning: initialization discards qualifiers from pointer target type
>
> /home/tz/develop/kde/git/calligra/kplato/plugins/schedulers/rcps/libs/src/librcps.c:519:
> warning: initialization discards qualifiers from pointer target type
>
not culprit for those ones.
>
> /home/tz/develop/kde/git/calligra/kplato/plugins/schedulers/rcps/libs/src/lib.h:7:
> warning: ‘kpt_max’ defined but not used
>
> /home/tz/develop/kde/git/calligra/kplato/plugins/schedulers/rcps/libs/src/lib.h:12:
> warning: ‘kpt_min’ defined but not used
>
>
> maybe this kpt_max and kpt_min can be replaced by qMax and qMin?
>
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.
Pierre
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/calligra-devel/attachments/20110205/d84f6250/attachment.htm>
More information about the calligra-devel
mailing list