gtk-2.3.0 build problem. prefix!=/usr but libtool uses /usr/lib/*
- From: Yotam Medini <yotam_medini fastmail fm>
- To: gtk-devel-list gnome org
- Subject: gtk-2.3.0 build problem. prefix!=/usr but libtool uses /usr/lib/*
- Date: Sat, 22 Nov 2003 23:16:14 +0200
Tried to build gtk-2.3.0 installing it under --prefix=/home/local.
I manage to build and install glib and pango, using
LDFLAGS=-L$(prefix)/lib CPPFLAGS=-I$(prefix)/include
Then proceedded to gtk also using
PKG_CONFIG_PATH=$(prefix)/lib/pkgconfig:/usr/lib/pkgconfig.
Note that I have put /home/local _before_ /usr.
Gtk+'s configure seem to run fine, but when compiling I got
...
make[5]: Entering directory `/home/local/src/gtk/gtk+-2.3.0/gtk'
/bin/sh ../libtool --mode=link gcc -g -O2 -g -Wall -L/home/local/lib -o gtk-query-immodules-2.0 queryimmodules.o libgtk-x11-2.0.la ../gdk-pixbuf/libgdk_pixbuf-2.0.la ../gdk/libgdk-x11-2.0.la
gcc -g -O2 -g -Wall -o .libs/gtk-query-immodules-2.0 queryimmodules.o -L/home/local/lib ./.libs/libgtk-x11-2.0.so /home/local/src/gtk/gtk+-2.3.0/gdk/.libs/libgdk-x11-2.0.so -L/usr/X11R6/lib /usr/lib/libatk-1.0.so /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so /usr/lib/libglib-2.0.so ../gdk-pixbuf/.libs/libgdk_pixbuf-2.0.so ../gdk/.libs/libgdk-x11-2.0.so -lXrandr -lXinerama -lXext -lXft -lXrender /usr/lib/libfontconfig.so /usr/lib/libfreetype.so -lz /usr/lib/libexpat.so -lX11 -lXcursor /home/local/lib/libpangoxft-1.0.so /home/local/lib/libpangox-1.0.so /home/local/lib/libpango-1.0.so /home/local/src/gtk/gtk+-2.3.0/gdk-pixbuf/.libs/libgdk_pixbuf-2.0.so /home/local/lib/libgmodule-2.0.so -ldl /home/local/lib/libgobject-2.0.so /home/local/lib/libglib-2.0.so -lm -Wl,--rpath -Wl,/home/local/lib
/home/local/src/gtk/gtk+-2.3.0/gdk/.libs/libgdk-x11-2.0.so: undefined reference to `g_unsetenv'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_type_instance_get_private'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_param_spec_get_redirect_target'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_object_class_override_property'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_type_class_add_private'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_object_interface_install_property'
collect2: ld returned 1 exit status
make[5]: *** [gtk-query-immodules-2.0] Error 1
make[5]: Leaving directory `/home/local/src/gtk/gtk+-2.3.0/gtk'
....
So far, i did not figure out why libtool decided to use
/usr/lib/libgmodule-2.0.so /usr/lib/libglib-2.0.so
while having
/home/local/lib/libgobject-2.0.so
/home/local/lib/libglib-2.0.so
installed. It does refer to them in the link line, but 'too late'
after the current incompatible of /usr/lib were used.
-- yotam
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]