List Info

Thread: Gtk2-MozEmbed




Gtk2-MozEmbed
user name
2007-01-21 17:09:19
Hi,
A few months ago, I mentioned a problem with Gtk2-MozEmbed.
With some
versions of the mozilla libs, the compilation would work
fine, but the
program segfaulted as soon as the mozembed widget was
displayed.

It turns out that simply setting LD_LIBRARY_PATH to the
mozilla libs
path fix the problem. (tested on both mandriva 2007 and
ubuntu 6.10)

It would be nice if a fix could be made in Gtk2-MozEmbed so
that setting
LD_LIBRARY_PATH is not needed, or at least make it so that
it doesn't
cause the whole program to crash.

Quentin

_______________________________________________
gtk-perl-list mailing list
gtk-perl-listgnome.org

http://mail.gnome.org/mailman/listinfo/gtk-perl-list

Re: Gtk2-MozEmbed
user name
2007-01-22 13:29:00
On Mon, 2007-01-22 at 00:09 +0100, Quentin wrote:

> It turns out that simply setting LD_LIBRARY_PATH to the
mozilla libs
> path fix the problem. (tested on both mandriva 2007 and
ubuntu 6.10)

Aha!  Those ExtUtils::MakeMaker warnings always looked
suspicious:

  Unrecognized argument in LIBS ignored: '-Wl,-rpath'
  Unrecognized argument in LIBS ignored:
'-Wl,/usr/lib/firefox'

So yeah, EU::MM removes the -rpath linker argument when
building
Gtk2::MozEmbed.  This seems to cause the need to set
LD_LIBRARY_PATH.

But wait, Gtk2::MozEmbed's Makefile.PL tells EU::MM to use

  LD_RUN_PATH=$libdir $Config

as the linker.  If I remember correctly, LD_RUN_PATH tells
the linker to
hardcode $libdir into the list of search paths of the object
it creates.
This used to have the same effect as the

  -Wl,-rpath -Wl,$libdir

dance.  I have no clue why this stopped working some time
ago.

Any ideas?

-- 
Bye,
-Torsten

_______________________________________________
gtk-perl-list mailing list
gtk-perl-listgnome.org

http://mail.gnome.org/mailman/listinfo/gtk-perl-list

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )