Re: gtk+ link error
- From: Michael L Torrie <torriem chem byu edu>
- To: Russell Shaw <rjshaw iprimus com au>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: gtk+ link error
- Date: Tue, 04 Nov 2003 11:50:11 -0700
On Tue, 2003-11-04 at 04:09, Russell Shaw wrote:
To build gtk, i did:
./configure CFLAGS="-g -O0" --enable-gtk-doc=yes PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"
That won't work. Should be:
PKG_CONFIG_PATH="/usr/local/lib/pkgconfig" ./configure CFLAGS="-g -O0"
--enable-gtk-doc=yes
or just do
export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"
and then do the configure.
Michael
It gives an error:
/bin/sh ../libtool --mode=link gcc -g -O0 -Wall -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 -O0 -Wall -o .libs/gtk-query-immodules-2.0 queryimmodules.o ./.libs/libgtk-x11-2.0.so
-L/usr/local/lib /home/russell/AAProjs/GNU/gtk+/gdk/.libs/libgdk-x11-2.0.so -L/usr/X11R6/lib
/usr/lib/libatk-1.0.so ../gdk-pixbuf/.libs/libgdk_pixbuf-2.0.so ../gdk/.libs/libgdk-x11-2.0.so -lXinerama
-lXext /usr/lib/libXft.so /usr/lib/libfreetype.so -lz -lfontconfig /usr/lib/libXcursor.so
/usr/lib/libXrender.so -lX11 /usr/lib/libpangoxft-1.0.so /usr/lib/libpangox-1.0.so /usr/lib/libpango-1.0.so
/usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so /usr/lib/libglib-2.0.so
/home/russell/AAProjs/GNU/gtk+/gdk-pixbuf/.libs/libgdk_pixbuf-2.0.so /usr/local/lib/libgmodule-2.0.so -ldl
/usr/local/lib/libgobject-2.0.so /usr/local/lib/libglib-2.0.so -lm -Wl,--rpath -Wl,/usr/local/lib
/home/russell/AAProjs/GNU/gtk+/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'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_markup_vprintf_escaped'
collect2: ld returned 1 exit status
make[4]: *** [gtk-query-immodules-2.0] Error 1
I think it's because it first links with /usr/lib/libglib-2.0.so (my old system glib)
instead of /usr/local/lib/libglib-2.0.so (newly compiled which has g_unsetenv).
How do i get /usr/local/lib/libglib-2.0.so linked instead of /usr/lib/libglib-2.0.so ?
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
--
Michael L Torrie <torriem chem byu edu>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]