Re: Problem compiling gtk+-2.4.3 on Mandrake 10.0

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

 



Am Dienstag, 29. Juni 2004 12:12 schrieb Andreas Gick:
> Am Sonntag, 27. Juni 2004 21:37 schrieb Andreas Gick:
> > Am Sonntag, 27. Juni 2004 19:55 schrieben Sie:
> > > Le dim 27/06/2004 à 19:43, Andreas Gick a écrit :
> > > > Am Sonntag, 27. Juni 2004 18:36 schrieben Sie:
> > > > > Le dim 27/06/2004 à 15:28, Andreas Gick a écrit :
> > > > > > Am Sonntag, 27. Juni 2004 14:41 schrieben Sie:
> > > > > > > Le dim 27/06/2004 à 14:26, Andreas Gick a écrit :
> > > > > > > > Hello everybody!
> > > > > > > >
> > > > > > > > My problem is the following. When I try to run make in the
> > > > > > > > gtk+2.4.3 directory the process stops and I receive the
> > > > > > > > following error messages::
> > > > > > > >
> > > > > > > > make[4]: Entering directory
> > > > > > > > `/home/andi/Ausgepackt/gtk+-2.4.3/gtk' /bin/sh ../libtool
> > > > > > > > --mode=link gcc  -g -O2 -Wall  -L/usr/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 -Wall -o
> > > > > > > > .libs/gtk-query-immodules-2.0 queryimmodules.o
> > > > > > > > -L/usr/local/lib ./.libs/libgtk-x11-2.0.so
> > > > > > > > /home/andi/Ausgepackt/gtk+-2.4.3/gdk/.libs/libgdk-x11-2.0.so
> > > > > > > > -L/usr/X11R6/lib /usr/local/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 /usr/local/lib/libpangoxft-1.0.so
> > > > > > > > /usr/local/lib/libpangox-1.0.so
> > > > > > > > /usr/local/lib/libpango-1.0.so
> > > > > > > > /home/andi/Ausgepackt/gtk+-2.4.3/gdk-pixbuf/.libs/libgdk_pixb
> > > > > > > >uf -2 .0.s o /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/andi/Ausgepackt/gtk+-2.4.3/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_completion_complete_utf8' ./.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_printf_escaped' ./.libs/libgtk-x11-2.0.so:
> > > > > > > > undefined reference to `g_value_take_string'
> > > > > > > > ./.libs/libgtk-x11-2.0.so: undefined reference to
> > > > > > > > `g_markup_vprintf_escaped'
> > > > > > > > /usr/local/lib/libpango-1.0.so: undefined reference to
> > > > > > > > `g_unichar_get_mirror_char'
> > > > > > > > collect2: ld returned 1 exit status
> > > > > > > > make[4]: *** [gtk-query-immodules-2.0] Fehler 1
> > > > > > > > make[4]: Leaving directory
> > > > > > > > `/home/andi/Ausgepackt/gtk+-2.4.3/gtk' make[3]: ***
> > > > > > > > [all-recursive] Fehler 1
> > > > > > > > make[3]: Leaving directory
> > > > > > > > `/home/andi/Ausgepackt/gtk+-2.4.3/gtk' make[2]: *** [all]
> > > > > > > > Fehler 2
> > > > > > > > make[2]: Leaving directory
> > > > > > > > `/home/andi/Ausgepackt/gtk+-2.4.3/gtk' make[1]: ***
> > > > > > > > [all-recursive] Fehler 1
> > > > > > > > make[1]: Leaving directory `/home/andi/Ausgepackt/gtk+-2.4.3'
> > > > > > > > make: *** [all] Fehler 2
> > > > > > > >
> > > > > > > > I managed to install pango, atk and glib and even got the
> > > > > > > > ./configure script for gtk+ to finally execute. But right now
> > > > > > > > I'm helpless, because the environment variables 
> > > > > > > > PKG_CONFIG_PAT and LD_LIBRARY_PATH are set correctly, which
> > > > > > > > caused the troubles I had before, so I don't know what to do.
> > > > > > > > I would be grateful for any hint on how to fix this,
> > > > > > > >
> > > > > > > > Andreas
> > > > > > >
> > > > > > > I am not sure, but the problem might come from the fact you
> > > > > > > have two versions of glib-2.0 in your command line :
> > > > > > > /usr/lib/libglib-2.0.so and /usr/local/lib/libglib-2.0.so.
> > > > > > > What are your PKG_CONFIG_PATH and LD_LIBRARY_PATH variables?
> > > > > >
> > > > > > PKG_CONFIG_PATH is set to /usr/local/lib/pkgconfig and
> > > > > > LD_LIBRARY_PATH to /usr/local/lib
> > > > > > Without these settings the wrong glib version was detected.
> > > > >
> > > > > This is correct. Did you set the two variables before compiling
> > > > > glib, atk and pango? Check the libdir variables in the
> > > > > /usr/local/lib/*.pc files. If it's correct, I don't understand why
> > > > > glib, gobject  and gmodule appear twice in the command.
> > > >
> > > >  It is possible that I compiled glib without setting the variables (I
> > > > don't remember exactly), because it worked without errors, but the
> > > > *.pc files contain the correct directories. They are in
> > > > /usr/local/lib/pkgconfig not in /usr/local/lib, I don't know if this
> > > > makes any difference...
> > >
> > > Of course:-) I mistyped the path. You can try to compile again
> > > everything with the two variables set. If it does not work, I have no
> > > other idea.
> >
> > Ok I'll check out compiling again, thank you so far.
> >  I've also downnloaded a rpm from the mandrake cooker , which wouldn't
> > install without uninstalling all gtk+2 depending apps. I thought
> > compiling would be an alternative for this.
>
> Well, that didn't work either.

Finally I got it to work following this link 
http://mail.gnome.org/archives/gtk-app-devel-list/2003-November/msg00051.html
After running I moved all *.la files from 
/usr/local/lib and /usr/lib into a separate directory. Then I replaced 
/usr/lib/libgobject-2.0.la
/usr/lib/libgmodule-2.0.la
 /usr/lib/libglib-2.0.la
in the dependency_libs line of the file libgtk-x11-2.0.la by
/usr/local/lib/libgobject-2.0.la
/usr/local/lib/libgmodule-2.0.la
 /usr/local/lib/libglib-2.0.la  . Then I ran make again that indicated that a 
*.la file was missing and I checked wether it 
contained /usr/lib/libgobject-2.0.la
/usr/lib/libgmodule-2.0.la
 /usr/lib/libglib-2.0.la
in the dependency_libs line and replaced it by the above 
mentioned /usr/local/lib/... and copied it back to the original location.
(I only needed to do that for the libatk-1.0.la file)
After that I could run make and make install without encountering any errors.
_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list


[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux