Pango makefile generation picks up old glib despite PKG_CONFIG_PATH set to new glib



Hi,
 
I have a problem with pango 1.8.1 makefile generation picking up the old glib in /usr/lib in spite of PKG_CONFIG_PATH being set to /opt/gtk-2.6/lib/pkgconfig.
 
LD_LIBRARY_PATH is set to /opt/gtk-2.6/lib (where glib 2.6.4 is).
 
This results in the errors:
 
./.libs/libpangoxft-1.0.so: undefined reference to `g_type_instance_get_private'
./.libs/libpangoxft-1.0.so: undefined reference to `g_type_class_add_private'
./.libs/libpangoxft-1.0.so: undefined reference to `g_assert_warning'
/home/administrator/gtk-2.6/pango-1.8.1/pango/.libs/libpango-1.0.so: undefined reference to `g_unichar_get_mirror_char'
./.libs/libpangox-1.0.so: undefined reference to `g_return_if_fail_warning'
collect2: ld returned 1 exit status
make[4]: *** [pango-querymodules] Error 1
make[4]: Leaving directory `/home/administrator/gtk-2.6/pango-1.8.1/pango'
 
The problem is in the following Makefile line:
 
gcc -g -O2 -Wall -o .libs/pango-querymodules querymodules.o ./.libs/libpangox-1.0.so -L/opt/gtk-2.6/lib -L/usr/X11R6/lib ./.libs/libpangoxft-1.0.so /home/administrator/gtk-2.6/pango-1.8.1/pango/.libs/libpangoft2-1.0.so -lXft -lX11 -lXrender ./.libs/libpangoft2-1.0.so /home/administrator/gtk-2.6/pango-1.8.1/pango/.libs/libpango-1.0.so /usr/lib/libfontconfig.so /usr/lib/libexpat.so /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 -lm /opt/gtk-2.6/lib/libgobject-2.0.so /opt/gtk-2.6/lib/libgmodule-2.0.so -ldl /opt/gtk-2.6/lib/libglib-2.0.so -Wl,--rpath -Wl,/opt/gtk-2.6/lib
 
This refers to libgobject-2.0.so twice. Both in /opt/gtk-2.6/lib/ (glib 2.6.4) and /usr/lib/ (old library).
 
How do I stop the old glib library being referenced as well as the correct glib library?
 
Thanks,
 
Jan


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