Package: wengophone
Version: 2.0.0~rc5-svn8108-1
Severity: serious

Hi,

It seems that wengophone no longer properly builds on all arches
because it's not using -fPIC to create a shared library.  Note that 
wengophone_2.0.0~rc4-svn8088-1 still build without problems.

>From the buildd log:
/usr/bin/gcc  -g -Wall -O2 -O2 -g 
-I/build/buildd/wengophone-2.0.0~rc5-svn8108/./obj-x86_64-linux-gnu/wifo/phapi/speex
 -I/build/buildd/wengophone-2.0.0~rc5-svn8108/./wifo/phapi/speex 
-I/build/buildd/wengophone-2.0.0~rc5-svn8108/./wifo/phapi/speex/include 
-DQT_NO_KEYWORDS -o wifo/phapi/speex/CMakeFiles/speex.dir/libspeex/bits.o   -c 
/build/buildd/wengophone-2.0.0~rc5-svn8108/./wifo/phapi/speex/libspeex/bits.c
[...]
/usr/bin/gcc  -fPIC -g -Wall -O2 -O2 -g  -shared -Wl,-soname,phspeexplugin.so 
-o phspeexplugin.so "CMakeFiles/phspeexplugin.dir/phcodec-speex.o" 
-L/build/buildd/wengophone-2.0.0~rc5-svn8108/./obj-x86_64-linux-gnu/wifo/phapi/speex
 -lspeex 
-Wl,-rpath,/build/buildd/wengophone-2.0.0~rc5-svn8108/./obj-x86_64-linux-gnu/wifo/phapi/speex
/usr/bin/ld:
/build/buildd/wengophone-2.0.0~rc5-svn8108/./obj-x86_64-linux-gnu/wifo/phapi/speex/libspeex.a(bits.o):
 relocation R_X86_64_32 against `a local symbol' can not be used when making a 
shared object; recompile with -fPIC
/build/buildd/wengophone-2.0.0~rc5-svn8108/./obj-x86_64-linux-gnu/wifo/phapi/speex/libspeex.a:
 could not read symbols: Bad value collect2: ld returned 1 exit status
make[3]: *** [wifo/phapi/phspeexplugin.so] Error 1

As you see, bits.c wasn't build with -fPIC.

In wengophone_2.0.0~rc4-svn8088-1
this looked like:
/usr/bin/gcc  -fPIC -g -Wall -O2 -O2 -g  -shared -Wl,-soname,phspeexplugin.so 
-o phspeexplugin.so "CMakeFiles/phspeexplugin.dir/phcodec-speex.o"

So it wasn't linked to -lspeex.

I also have to wonder about the rpath that is set, which doesn't
look like a useful path to me.

I suggest you read policy 10.2.


Kurt



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to