[Swfdec] compiling latest swfdec in debian unstable

Santiago Garcia Mantinan manty at debian.org
Thu Feb 14 11:14:38 PST 2008


Hi!

> since a few days all the dependencies for compiling and running swfdec
> 0.5.90 and newer are met in debian experimental. So after adding the
> experimental repository in /etc/apt/sources.list and doing apt-get -t
> experimental install libsoup2.4-dev libglib2.0-dev you can continue to
> test latest and greatest swfdec.

Well, I was waiting for those dependencies to get to experimental for my
arch as well (amd64) but it took them a while, so I compiled them myself in
order to be able to test the new swfdec, it really was weird for me to read
your mail, I have been able to compile swfdec, but not swfdec-mozilla or
swfdec-gnome 0.5.90 under sid using the libsoup2.4 from experimental, this
is the error I got:

 cc -shared  .libs/libswfdecmozilla_la-plugin.o .libs/libswfdecmozilla_la-plugin_x11.o .libs/libswfdecmozilla_la-swfmoz_dialog.o .libs/libswfdecmozilla_la-swfmoz_loader.o .libs/libswfdecmozilla_la-swfmoz_player.o  -lswfdec-gtk-0.5 -lswfdec-0.5 /usr/lib/libgtk-x11-2.0.so -loil-0.3 /usr/lib/libgdk-x11-2.0.so /usr/lib/libatk-1.0.so /usr/lib/libgdk_pixbuf-2.0.so -lm /usr/lib/libpangocairo-1.0.so /usr/lib/libpango-1.0.so /usr/lib/libcairo.so /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so -ldl /usr/lib/libglib-2.0.so  -Wl,--export-dynamic -Wl,-soname -Wl,libswfdecmozilla.so -Wl,-version-script -Wl,.libs/libswfdecmozilla.ver -o .libs/libswfdecmozilla.so
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/4.2.3/../../../../lib/libswfdec-gtk-0.5.a(libswfdec_gtk_0.5_la-swfdec_gtk_keys.o): relocation R_X86_64_32S against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-linux-gnu/4.2.3/../../../../lib/libswfdec-gtk-0.5.a: could not read symbols: Bad value
collect2: ld returned 1 exit status

Aren't you getting a similar?

Any ideas on how to fix this? adding -fPIC to this doesn't help.

I have checked the libs and they seem to be using -fPIC already, I can link
a dummy program against -lswfdec-gtk-0.5 -lswfdec-0.5 without problems, but
when it comes to building this mozilla lib, it fails. The commands that are
used for 0.5.90 are the same as those used on 0.5.5 and 0.5.5 does compile
ok on my current environment.

All I can say is that this is weird!

Regards...
-- 
Manty/BestiaTester -> http://manty.net


More information about the Swfdec mailing list