[opensuse-packaging] What does it mean?
-- Performing Test C_HAVE_PIC - Failed -- Performing Test CXX_HAVE_PIC -- Performing Test CXX_HAVE_PIC - Success CMake Error at CMakeLists.txt:123 (MESSAGE): shared library support is missing This happens only in Factory. The package is https://build.opensuse.org/package/live_build_log?arch=i586&package=kde3-kwa... -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On 18/10/11 14:12, Ilya Chernykh wrote:
-- Performing Test C_HAVE_PIC - Failed -- Performing Test CXX_HAVE_PIC -- Performing Test CXX_HAVE_PIC - Success CMake Error at CMakeLists.txt:123 (MESSAGE): shared library support is missing
This happens only in Factory. The package is
https://build.opensuse.org/package/live_build_log?arch=i586&package=kde3-kwa...
It means, when you keep beating a dead horse, at some point it will start to rot and stink. The compiler _for_sure_ has support for PIC (position-independent code) http://en.wikipedia.org/wiki/Position-independent_code So it is 100% a bug in CMakeLists.txt. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Tuesday 18 October 2011 21:51:48 Cristian Rodríguez wrote:
-- Performing Test C_HAVE_PIC - Failed -- Performing Test CXX_HAVE_PIC -- Performing Test CXX_HAVE_PIC - Success CMake Error at CMakeLists.txt:123 (MESSAGE): shared library support is missing
This happens only in Factory. The package is
https://build.opensuse.org/package/live_build_log?arch=i586&package=kde3-kwa...
It means, when you keep beating a dead horse, at some point it will start to rot and stink.
The compiler _for_sure_ has support for PIC (position-independent code) http://en.wikipedia.org/wiki/Position-independent_code So it is 100% a bug in CMakeLists.txt.
Is it wrong? CHECK_C_COMPILER_FLAG(" ${CMAKE_SHARED_LIBRARY_C_FLAGS}" C_HAVE_PIC) -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On 18/10/11 15:11, Ilya Chernykh wrote:
CHECK_C_COMPILER_FLAG(" ${CMAKE_SHARED_LIBRARY_C_FLAGS}" C_HAVE_PIC)
what does ${CMAKE_SHARED_LIBRARY_C_FLAGS} variable contains ? -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Tuesday 18 October 2011 22:29:08 Cristian Rodríguez wrote:
On 18/10/11 15:11, Ilya Chernykh wrote:
CHECK_C_COMPILER_FLAG(" ${CMAKE_SHARED_LIBRARY_C_FLAGS}" C_HAVE_PIC)
what does ${CMAKE_SHARED_LIBRARY_C_FLAGS} variable contains ?
CMAKE_SHARED_LIBRARY_C_FLAGS="-fPIC" -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Tue, Oct 18, 2011 at 8:42 PM, Ilya Chernykh <anixxsus@gmail.com> wrote:
On Tuesday 18 October 2011 22:29:08 Cristian Rodríguez wrote:
On 18/10/11 15:11, Ilya Chernykh wrote:
CHECK_C_COMPILER_FLAG(" ${CMAKE_SHARED_LIBRARY_C_FLAGS}" C_HAVE_PIC)
what does ${CMAKE_SHARED_LIBRARY_C_FLAGS} variable contains ?
CMAKE_SHARED_LIBRARY_C_FLAGS="-fPIC" -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
looking into /usr/src/packages/BUILD/kwave-0.7.12/build/CMakeFiles/CMakeError.log it will give you exact fail reason ... (debug is below ) or to be more exact remove from spec file -permisive in CFLAGS to be like spec file patch ==================== snip ======================= --- kde3-kwave.spec~ 2011-10-18 21:37:10.000000000 +0200 +++ kde3-kwave.spec 2011-10-18 21:49:38.880180170 +0200 @@ -89,7 +89,7 @@ cp -f %{SOURCE1} . %build -export CFLAGS="%{optflags} -Wl,--add-needed -fpermissive" +export CFLAGS="%{optflags} -Wl,--add-needed" export CXXFLAGS="%{optflags} -Wl,--add-needed -fpermissive" %{__mkdir} build cd build ==================== snip ======================= debug log: =============================== SNIP ===================== kuca:/usr/src/packages/BUILD/kwave-0.7.12> cat /usr/src/packages/BUILD/kwave-0.7.12/build/CMakeFiles/CMakeError.log Performing C SOURCE FILE Test C_HAVE_PIC failed with the following output: Change Dir: /usr/src/packages/BUILD/kwave-0.7.12/build/CMakeFiles/CMakeTmp Run Build Command:/usr/bin/gmake "cmTryCompileExec/fast" /usr/bin/gmake -f CMakeFiles/cmTryCompileExec.dir/build.make CMakeFiles/cmTryCompileExec.dir/build gmake[1]: Entering directory `/usr/src/packages/BUILD/kwave-0.7.12/build/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /usr/src/packages/BUILD/kwave-0.7.12/build/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec.dir/src.c.o /usr/bin/gcc -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -Wl,--add-needed -fpermissive -DC_HAVE_PIC -fPIC -o CMakeFiles/cmTryCompileExec.dir/src.c.o -c /usr/src/packages/BUILD/kwave-0.7.12/build/CMakeFiles/CMakeTmp/src.c cc1: warning: command line option '-fpermissive' is valid for C++/ObjC++ but not for C [enabled by default] Linking C executable cmTryCompileExec /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec.dir/link.txt --verbose=1 /usr/bin/gcc -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -Wl,--add-needed -fpermissive -DC_HAVE_PIC CMakeFiles/cmTryCompileExec.dir/src.c.o -o cmTryCompileExec -rdynamic gmake[1]: Leaving directory `/usr/src/packages/BUILD/kwave-0.7.12/build/CMakeFiles/CMakeTmp' Source file was: int main(void) { return 0; } =============================== SNIP ===================== -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Tuesday 18 October 2011 23:53:54 Boris Manojlovic wrote:
looking into /usr/src/packages/BUILD/kwave-0.7.12/build/CMakeFiles/CMakeError.log it will give you exact fail reason ... (debug is below )
or to be more exact remove from spec file -permisive in CFLAGS to be like
Thanks! -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
participants (3)
-
Boris Manojlovic
-
Cristian Rodríguez
-
Ilya Chernykh