Mailinglist Archive: opensuse-packaging (86 mails)

< Previous Next >
Re: [opensuse-packaging] What does it mean?
  • From: Boris Manojlovic <boris@xxxxxxxxx>
  • Date: Tue, 18 Oct 2011 21:53:54 +0200
  • Message-id: <CAHisY=PvZMLc7VuwVBL+URxVpz71ik6i1WZq7WAqkaBaoOiE6A@mail.gmail.com>
On Tue, Oct 18, 2011 at 8:42 PM, Ilya Chernykh <anixxsus@xxxxxxxxx> 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@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-packaging+owner@xxxxxxxxxxxx



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@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-packaging+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups