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.