[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    Re: [calligra] kplato/plugins/schedulers/rcps/libs/src: Fix Plan
From:       Thorsten Zachmann <t.zachmann () zagge ! de>
Date:       2011-02-05 3:42:41
Message-ID: 201102050442.42277.t.zachmann () zagge ! de
[Download RAW message or body]

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

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

Thorsten

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic