Keeping two different versions of GTK+ on the same system.



Hi people!

Well, I am running a Debian Unstable distro and have a GTK+
installed from Debian's packages (v 2.2.4), but I would like
have too another version of GTK+ (from cvs) on my system
without remove the Debian's version. So I did:

GNOME_HOME="/usr/local/gnome-home"

export LD_LIBRARY_PATH=$GNOME_HOME/lib:$LD_LIBRARY_PATH
export MANPATH=$GNOME_HOME/man:$MANPATH
export PATH=$GNOME_HOME/bin:$PATH
export PKG_CONFIG_PATH=$GNOME_HOME/lib/pkgconfig:$PKG_CONFIG_PATH
export PERL5LIB=$GNOME_HOME/lib/perl5/site_perl:$PERL5LIB
export ACLOCAL_FLAGS="-I $GNOME_HOME/share/aclocal"
export ACLOCAL_AMFLAGS="-I $GNOME_HOME/share/aclocal"
export XDG_DATA_DIRS=$GNOME_HOME/share


It worked fine to compile GLib (from cvs), but didn't
worked to compile another libraries, like Pango.
I think there is something wrong when the compiler
tries link the library with GLib (from cvs).
As you can see on the error message:

gcc -g -O2 -Wall -o .libs/pango-querymodules querymodules.o -Wl,--export-dynamic  
./.libs/libpangox-1.0.so -L/usr/local/gnome-home/lib -L/usr/X11R6/lib 
./.libs/libpangoxft-1.0.so /home/fx/code/cvsroot/gnome/pango/pango/.libs/libpangoft2-1.0.so 
/usr/lib/libXft.so /usr/lib/libXrender.so -lX11 ./.libs/libpangoft2-1.0.so 
/home/fx/code/cvsroot/gnome/pango/pango/.libs/libpango-1.0.so -lfontconfig 
/usr/lib/libfreetype.so -lz /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so
			   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 
/usr/lib/libglib-2.0.so ./.libs/libpango-1.0.so /usr/local/gnome-home/lib/libgobject-2.0.so 
^^^^^^^^^^^^^^^^^^^^^^^                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/gnome-home/lib/libgmodule-2.0.so -ldl /usr/local/gnome-home/lib/libglib-2.0.so
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-Wl,--rpath -Wl,/usr/local/gnome-home/lib
/home/fx/code/cvsroot/gnome/pango/pango/.libs/libpango-1.0.so: undefined reference to 
`g_unichar_get_mirror_char'
collect2: ld returned 1 exit status
make[4]: *** [pango-querymodules] Error 1
make[4]: Leaving directory `/home/fx/code/cvsroot/gnome/pango/pango'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/fx/code/cvsroot/gnome/pango/pango'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/fx/code/cvsroot/gnome/pango/pango'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/fx/code/cvsroot/gnome/pango'
make: *** [all] Error 2


So, as you can see, the compiler is referencing both GLib
libraries (Debian's GLib and CVS's GLib) and I don't know why.
Could anyone help me with it?

Thanks in advance,

--fx
  



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]