Re: Conflict between two libglib-2.0.so
- From: Laurent BESSON <laurent besson st com>
- To: Vincent LADEUIL <v ladeuil alplog fr>
- Cc: gtk-perl-list gnome org
- Subject: Re: Conflict between two libglib-2.0.so
- Date: Wed, 10 Aug 2005 11:42:27 +0200
Hello,
In fact, I just found a solution by modifying my perl header like this:
: # -*- perl -*-
eval 'export LD_LIBRARY_PATH;
LD_LIBRARY_PATH=/apa/free2/SunOS/5.8/lib:$LD_LIBRARY_PATH; exec
${PERL:=perl} $0 ${1+"$@"}'
if 0;
and this workaround the problem
Vincent LADEUIL wrote:
"Laurent" == Laurent BESSON <laurent besson st com> writes:
Laurent> Hello, I'm using perl/Gtk2 package under Sun Solaris
Laurent> 8 OS and I have a problem when running perl/gtk2 app
Laurent> when Sun Gnome package are installed on a
Laurent> workstation.
I had this problem with Solaris 10 too (a preview release. I
didn't check again but I think it's still true with the official
release).
Laurent> If the Gnome package is not installed, perl/Gtk2 is
Laurent> finding the glib-2.0/gtk-2.0 libs (.so) in some path
Laurent> (/apa/free2/SunOS/5.8/lib) and these libs are the
Laurent> libs used when compiling/installing the perl/Gtk2
Laurent> package and my app is running fine.
Laurent> Unfortunately, on some workstations, the glib/gtk
Laurent> libs are also present in /usr/lib (coming from Sun
Laurent> Gnome pacakge) and they are not as up-to-date as the
Laurent> one in /apa/free2/... BUT they are used first by
Laurent> ld.so when running perl.
It's a little bit more complicated but the effect is the same.
The problem is that gtk describes its own dependancies in a way
that is problematic in some pretty rare occurrences (in the
gtk+-2.0.pc file).
I do not have anymore the configuration to reproduce it but try
to play with pkg-config and the light will come (try with and
without the following patch and it will become obvious).
Laurent> I have tried silly things in my perl app like this
Laurent> but without success:
Laurent> BEGIN { $ENV{LD_LIBRARY_PATH} =
Laurent> "/apa/free2/SunOS/5.8/lib:".$ENV{LD_LIBRARY_PATH} }
He he. Mee too.
Laurent> I thought the line above would help perl using the
Laurent> /apa/free2/.. link path before the /usr/lib but it
Laurent> didn't work.
Laurent> Any ideas ?
See patch below. This patch have to be applied before building
gtk (yes the C version).
Have a look at the following bug report:
http://bugzilla.gnome.org/show_bug.cgi?id=165499
It would be nice if you can reproduce it and explain it better
than me, quite like you have done in your mail and adding
pkg-config outputs.
Hope that helps,
Vincent
Laurent> Laurent.
Laurent> _______________________________________________
Laurent> gtk-perl-list mailing list gtk-perl-list gnome org
Laurent> http://mail.gnome.org/mailman/listinfo/gtk-perl-list
*** gtk+-2.0.pc.in~ Tue Mar 5 22:03:49 2002
--- gtk+-2.0.pc.in Fri Jan 28 12:46:51 2005
***************
*** 10,15 ****
Name: GTK+
Description: GIMP Tool Kit (${target} target)
Version: @VERSION@
! Requires: gdk-${target}-2.0 @GTK_PACKAGES@
Libs: -L${libdir} -lgtk-${target}- GTK_API_VERSION@ @GTK_EXTRA_LIBS@
Cflags: -I${includedir}/gtk-2.0 @GTK_EXTRA_CFLAGS@
--- 10,15 ----
Name: GTK+
Description: GIMP Tool Kit (${target} target)
Version: @VERSION@
! Requires: glib-2.0 gdk-${target}-2.0 @GTK_PACKAGES@
Libs: -L${libdir} -lgtk-${target}- GTK_API_VERSION@ @GTK_EXTRA_LIBS@
Cflags: -I${includedir}/gtk-2.0 @GTK_EXTRA_CFLAGS@
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]