Processed: Re: Bug#291603: zapping: FTBFS: Using static non fPIC lib to make a shared lib.

2005-01-21 Thread Debian Bug Tracking System
Processing commands for [EMAIL PROTECTED]:

> forwarded 291603 Michael Schimek <[EMAIL PROTECTED]>
Bug#291603: zapping: FTBFS: Using static non fPIC lib to make a shared lib.
Noted your statement that Bug has been forwarded to Michael Schimek <[EMAIL 
PROTECTED]>.

> severity 291603 normal
Bug#291603: zapping: FTBFS: Using static non fPIC lib to make a shared lib.
Severity set to `normal'.

> thanks
Stopping processing here.

Please contact me if you need assistance.

Debian bug tracking system administrator
(administrator, Debian Bugs database)


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



Bug#291603: zapping: FTBFS: Using static non fPIC lib to make a shared lib.

2005-01-21 Thread Kurt Roeckx
Package: zapping
Version: 0.8.0-2
Severity: serious

Hi, your package is failing to build because it's using a
static non fPIC lib to make a shared lib.

Here is an extract from the build log:
/bin/sh ../../libtool --mode=link x86_64-linux-gcc  -Wall -g -O2   -o 
libteletext.zapping.la -rpath /usr/lib/zapping/plugins  bookmark.lo export.lo 
main.lo preferences.lo search.lo toolbar.lo view.lo window.lo 
../../libvbi/libvbi.a  -lpng -lz -lm  -lpthread

*** Warning: Linking the shared library libteletext.zapping.la against the
*** static library ../../libvbi/libvbi.a is not portable!
x86_64-linux-gcc -shared  .libs/bookmark.o .libs/export.o .libs/main.o 
.libs/preferences.o .libs/search.o .libs/toolbar.o .libs/view.o .libs/window.o 
../../libvbi/libvbi.a -lpng -lz -lm -lpthread  -Wl,-soname 
-Wl,libteletext.zapping.so.0 -o .libs/libteletext.zapping.so.0.0.0
/usr/bin/ld: ../../libvbi/libvbi.a(cache.o): relocation R_X86_64_32 can not be 
used when making a shared object; recompile with -fPIC
../../libvbi/libvbi.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[4]: *** [libteletext.zapping.la] Error 1

The previous version (0.8.0-1) build without problems and
the changelog doesn't seem to indicate why this would now
fail.  It seems that previously it didn't try to make the
libteletext.zapping.so but does now.

A static library should be build without -fPIC and a
shared library should be build using -fPIC.  If you need
the static library too you will have to build all those
files twice, once using -fPIC, once not using it.

>From the build log it looks like the libvbi.a isn't used
for anything other than linking the libteletext.zapping.so
so I suggest you just build those files once using -fPIC.


Note: this is a build log from amd64, it should fail on
some other arches (like hppa) too but they failed for an
other reason so far.  If it happens to only affect amd64
please lower the severity.


Kurt



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