Matthew Palmer wrote: > On Mon, Aug 28, 2006 at 07:57:27PM +0200, Michael Biebl wrote: >> Now lintian complains about the files in /usr/lib/kde3: >> >> E: kdesvn-kio-plugins: shlib-with-non-pic-code usr/lib/kde3/kded_kdesvnd.so >> E: kdesvn-kio-plugins: shlib-with-non-pic-code usr/lib/kde3/kio_ksvn.so >> E: kdesvn: shlib-with-non-pic-code usr/lib/kde3/libkdesvnpart.so >> >> Looking at the corresponding check, lintian greps for TEXTREL in objdump >> -x and indead, this section is there. Can someone explain what this >> section is for, google was not very helpful there. >> >> The command line when linking the modules is >> /usr/bin/c++ -fPIC -g -Wall -O2 -Wnon-virtual-dtor -Wno-long-long -ansi >> -Wundef -Wcast-align -Wconversion -Wchar-subscripts -Wall -W >> -Wpointer-arith -Wwrite-strings -O2 -Wformat-security -fno-exceptions >> -fno-check-new -fno-common -fexceptions -fstack-protector -shared >> -Wl,-soname,kded_kdesvnd.so -o ../../lib/kded_kdesvnd.so > > More important than the linker command line is the compilation command line. > You need to make sure that all of the source files that make up those .so > files were built with -fPIC in their command lines. Hi Matt, thanks for your advice but it seems that they all are built with -fPIC. The command line for a source file looks like this: /usr/bin/c++ -Dkded_kdesvnd_EXPORTS -g -Wall -O2 -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -O2 -Wformat-security -fno-exceptions -fno-check-new -fno-common -fexceptions -fstack-protector -fPIC -I/usr/include/kde -I/usr/share/qt3/include -I/usr/include/apr-0 -I/usr/include/subversion-1 -I/home/michael/svn/kdesvn/./src -I/home/michael/svn/kdesvn/./src/svnfrontend -I/home/michael/svn/kdesvn/. -I/home/michael/svn/kdesvn/./obj-i486-linux-gnu/src -I/home/michael/svn/kdesvn/./obj-i486-linux-gnu/src/svnfrontend -I/home/michael/svn/kdesvn/./obj-i486-linux-gnu -DQT_CLEAN_NAMESPACE -D_GNU_SOURCE -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -DQT_SHARED -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -D_REENTRANT -o src/kdesvnd/CMakeFiles/kded_kdesvnd.dir/kdesvnd_dcop_skel.o -c /home/michael/svn/kdesvn/./obj-i486-linux-gnu/src/kdesvnd/kdesvnd_dcop_skel.cpp Any other ideas? Michael -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth?
Attachment:
signature.asc
Description: OpenPGP digital signature