On Thu, Sep 3, 2009 at 1:27 PM, Patrick Ohly<patrick.o...@gmx.de> wrote: > On Thu, 2009-09-03 at 11:23 +0100, Peter Robinson wrote: >> I get the >> following errors below on Fedora Rawhide so not sure if its due to >> later libraries or compiler. > [...] >> *** Warning: Linking the shared library libcluttergesture.la against the >> *** static library ../engine/libengine.a is not portable! > [...] >> /usr/bin/ld: ../engine/libengine.a(engine.o): relocation R_X86_64_32 >> against `.rodata.str1.1' can not be used when making a shared object; >> recompile with -fPIC >> ../engine/libengine.a: could not read symbols: Bad value > > I bet the make rules for libengine.a are lacking a "-DPIC -fPIC" in the > CFLAGS. As a result, the code is not relocatable and can only be used in > executables, but not relocatable shared objects. In 32 bit mode this is > tolerated, but not in the 64 bit mode that you are using.
Well I'm compiling with %configure --disable-static --with-pic CFLAGS="$CFLAGS -DPIC -fPIC" make %{?_smp_mflags} V=1 This on fedora expands out the cflags to the following in the build CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -DPIC -fPIC' It does compile OK on i686 with the same options. Full build logs here http://koji.fedoraproject.org/koji/getfile?taskID=1652069&name=build.log Peter _______________________________________________ Moblin dev Mailing List dev@moblin.org To manage or unsubscribe from this mailing list visit: http://lists.moblin.org/listinfo/dev or your user account on http://moblin.org once logged in. For more information on the Moblin Developer Mailing lists visit: http://moblin.org/community/mailing-lists