Linking error in digikam

Lubos Lunak l.lunak at suse.cz
Sat Dec 17 13:51:03 GMT 2005


Dne sobota 17 prosinec 2005 09:53 Andras Mantia napsal(a):
> Hi,
>
>  I have a linking error in digikam which seems to be 64bit specific and
> as this is the first time I have such a system I have no idea what to
> do:
>
> linking ../digikam/digikam/libdigikam.la
...
> ../digikam/digikam/digikamfirstrun.lo
> /usr/lib64/gcc/x86_64-suse-linux/4.0.2/../../../../x86_64-suse-linux/bin/ld
>: ../digikam/utilities/setup/.libs/libsetup.a(setupgeneral.o): relocation
> R_X86_64_PC32 against `QDir::operator!=(QDir const&) const' can not be used
> when making a shared object; recompile with -fPIC
> /usr/lib64/gcc/x86_64-suse-linux/4.0.2/../../../../x86_64-suse-linux/bin/ld
>: final link failed: Bad value
> collect2: ld returned 1 exit status
> Error creating ../digikam/digikam/libdigikam.la. Exit status 1.
>
>
> I've tried what it suggests (add -fPIC to KDE_CXXFLAGS
> in /digikam/utilities/setup/Makefile.am), but it does not help. Is this
> a problem in digikam or with the 64bit version of Qt in SUSE 10?

 Neither.

>
> Does anyone know how to solve such problems?

 Google is your friend :). It seems to be a gcc bug related to visibility and 
the workaround should be not using -fvisibility* with x86_64.

-- 
Lubos Lunak
KDE developer
---------------------------------------------------------------------
SuSE CR, s.r.o.  e-mail: l.lunak at suse.cz , l.lunak at kde.org
Drahobejlova 27  tel: +420 2 9654 2373
190 00 Praha 9   fax: +420 2 9654 2374
Czech Republic   http://www.suse.cz/




More information about the kde-core-devel mailing list