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

List:       kde-devel
Subject:    Re: Error while linking kdelibs4_snapshot.
From:       Michaël_Larouche <kuramadoushi.shock () globetrotter ! net>
Date:       2005-10-11 13:19:31
Message-ID: 200510110915.30051.kuramadoushi.shock () globetrotter ! net
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


Le October 11, 2005 02:59, Stephan Kulow a écrit :
> Am Dienstag, 11. Oktober 2005 01:58 schrieb Michaël Larouche:
> > >ld: ./kdecore/.libs/kglobal.o: relocation R_X86_64_PC32 against
> > > `KGlobal::_locale' can not be used when making a shared object;
> > > recompile with -fPIC
>
> That one looks _very_ weired. What does file .libs/kglobal.o
> .libs/klocale.o say?
>
> Greetings, Stephan
>

It says nothing, just "compiling kglobal.cpp and compiling klocale.cpp". The 
error only happen on linking and on libkdecore.la. 

kglobal.lo (from unsermake -n)
> test -n "" || echo "compiling /KDE/svn/kde4/kdelibs/kdecore/kglobal.cpp"
> if test ! -d "../kdecore/.libs"; then mkdir "../kdecore/.libs"; status=$?;
> if test "$status" -ne 0 && test ! -d "../kdecore/.libs"; then exit $status;
> fi; fi depfile='../kdecore/.deps/kglobal.Ulo'
> tmpdepfile='../kdecore/.deps/kglobal.TUlo'
> targetfile='$(top_builddir)/kdecore/kglobal.lo';set g++ -DHAVE_CONFIG_H
> -I../kdecore -I/KDE/svn/kde4/kdelibs/kdecore -I..
> -I/KDE/svn/kde4/kdelibs/kdefx -I/KDE/svn/kde4/kdelibs/kdecore/network
> -I/KDE/svn/kde4/kdelibs/dcop -I/KDE/svn/kde4/kdelibs/libltdl
> -I/KDE/svn/kde4/kdelibs/kdefx -I../kdecore -I/KDE/svn/kde4/kdelibs/kdecore
> -I/KDE/svn/kde4/kdelibs/kdeui -I/KDE/svn/kde4/kdelibs/kio
> -I/KDE/svn/kde4/kdelibs/kio/kio -I/KDE/svn/kde4/kdelibs/kio/kfile
> -I/KDE/svn/kde4/kdelibs -I/KDE/kde4/include -I/KDE/kde4/include/Qt
> -I/KDE/kde4/include/QtCore -I/KDE/kde4/include/QtGui
> -I/KDE/kde4/include/Qt3Support -I. -I/KDE/kde4/include 
> -I/usr/include/libart-2.0  -DQT_THREAD_SUPPORT -D_REENTRANT  
> -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500
> -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W
> -Wpointer-arith -g3 -fno-inline -Wformat-security
> -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common
> -fvisibility=hidden -fvisibility-inlines-hidden -DQT_CLEAN_NAMESPACE
> -DQT_NO_CAST_TO_ASCII -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION
> -DQT3_SUPPORT  -fPIC -DPIC -c /KDE/svn/kde4/kdelibs/kdecore/kglobal.cpp -o
> ../kdecore/.libs/kglobal.o -Wp,-MD,$tmpdepfile; if test -n ""; then echo
> "$@"; "$@"; else rslt=$("$@" 2>&1); fi; stat=$?;       if test $stat -ne 0;
> then         if test -z ""; then echo "$@"; echo "$rslt" >&2; fi;  else    
>  test -n "$rslt" && echo "$rslt" >&2;    echo "$targetfile : \\" >
> "$depfile.tmp";       deps=`sed -e 's,.*:,,' $tmpdepfile | sed -e
> 's,\\\\,,g'`;    echo 'builddir=$(top_builddir)/kdecore' > $depfile.tmp ;  
> echo 'top_builddir=..' >> $depfile.tmp ;   echo "targetfile=$targetfile" >>
> $depfile.tmp ;   for dep in $deps ; do echo $dep >> $depfile.tmp ; done ;  
> mv $depfile.tmp $depfile;     fi;     rm -f "$tmpdepfile"; exit $stat echo
> '# Generated by libtool replacement' > ../kdecore/kglobal.lo
> echo "pic_object='.libs/kglobal.o'" >> ../kdecore/kglobal.lo
> echo "non_pic_object=none" >> ../kdecore/kglobal.lo

Also I tried before exporting empty C[XX]FLAGS, adding manually -fPIC to my 
CFLAGS, put the same CFLAGS as in my make.conf. And I always reconfigure.

Maybe it's related to -fvisibility-hidden ?

-- 
Michaël Larouche (Shock The Dark Mage)
KDE developer working on Kopete, Kamefu...on dial-up :P
--------------------------------------
Blog: http://mlarouche.blogspot.com/
MSN/Email: michael.larouche@kdemail.net
IRC: irc.freenode.org/DarkShock on #kopete, #kde-devel, #kde4-devel, #plasma, 
#kemul
Jabber: darkshock@myjabber.net, darkshock@linux-quebec.org, 
darkshock@gmail.com
AIM: darkshock19
Gadu-Gadu: 1172438
ICQ: 29644783
Yahoo: darkshock_TT



[Attachment #5 (application/pgp-signature)]

 =

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscrib=
e <<


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

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