Problems compiling gtk+ 2.2.4 on RedHat Linux 8.0

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

 



I'm having some difficulty compiling gtk+ under RedHat 8.0, and wanted
to see if anyone on the list might have some ideas as to what is causing
the problem:

Using gcc 3.2 (gnupro release 03-r1), and invoking configure as follows:

*********

PKG_CONFIG_PATH=/et/sw/opensource/glib/2.2.3/lib/pkgconfig:/et/sw/opensource/atk/1.2.4/lib/pkgconfig:/et/sw/opensource/pango/1.2.5/lib/pkgconfig \
	INSTALL_DATA='/vobs/tools_source/opensource/gtk+/build_ET_40a7b0c_gtk+-2.2.4/install-sh -c -m 644' \
	PERL=/et/sw/bin/perl \
	LDFLAGS="-L/et/sw/opensource/libpng/1.2.5/lib
-L/et/sw/opensource/tiff/3.5.7/lib " \
	CPPFLAGS="-I/et/sw/opensource/libpng/1.2.5/include
-I/et/sw/opensource/tiff/3.5.7/include" \
	CC=/et/sw/redhat/gnupro/current/bin/gcc
CXX=/et/sw/redhat/gnupro/current/bin/g++
INSTALL=/vobs/tools_source/opensource/gtk+/build_ET_40a7b0c_gtk+-2.2.4/install-sh PATH=/et/sw/opensource/pkgconfig/0.15.0/bin:/et/sw/opensource/glib/2.2.3/bin:/et/sw/redhat/gnupro/current/bin:/usr/bin:/bin:/usr/sbin:/sbin LD_LIBRARY_PATH=/et/sw/opensource/glib/2.2.3/lib:/et/sw/redhat/gnupro/current/lib ./configure --prefix=/et/sw/opensource/gtk+/2.2.4 \
	--disable-shared \
	--disable-modules \
	--with-included-loaders=ani,bmp,gif,ico,png,pnm,ras,tga,tiff,wbmp,xpm\
	--enable-static \
	--without-libjpeg \
	--x-includes=/usr/X11R6/include \
	--x-libraries=/usr/X11R6/lib \
	--with-libpng=/et/sw/opensource/libpng/1.2.5

**********

The build seems to proceed in a fairly normal manner until attempting to
build the modules/input directory (target gtk.immodules), at which point
I receive the following error (I receive this error for every .la file
within modules/input, but for brevity have only included the errors for
the first of the .la files):

**********

../../gtk/gtk-query-immodules-2.0 *.la > gtk.immodules
Cannot load module
/vobs/tools_source/opensource/gtk+/build_ET_40a7b0c_gtk+-2.2.4/modules/input/im-am-et.la: /vobs/tools_source/opensource/gtk+/build_ET_40a7b0c_gtk+-2.2.4/modules/input/.libs/: cannot read file data: Invalid argument
/vobs/tools_source/opensource/gtk+/build_ET_40a7b0c_gtk+-2.2.4/modules/input/im-am-et.la does not export GTK+ IM module API: /vobs/tools_source/opensource/gtk+/build_ET_40a7b0c_gtk+-2.2.4/modules/input/.libs/: cannot read file data: Invalid argument

**********

As a result of this, modules/input/gtk.immodules is empty, except for
the autogeneration comments, and the build fails.

The contents of modules/input/im-am-et.la at the time of failure are:

**********

# im-am-et.la - a libtool library file
# Generated by ltmain.sh - GNU libtool 1.5 (1.1220.2.1 2003/04/14
22:48:00)
#
# Please DO NOT delete this file!
# It is necessary for linking the library.
 
# The name that we can dlopen(3).
dlname=''
 
# Names of this library.
library_names=''
 
# The name of the static archive.
old_library='im-am-et.a'
 
# Libraries that this one depends upon.
dependency_libs=' -L/et/sw/opensource/libpng/1.2.5/lib
-L/et/sw/opensource/tiff/3.5.7/lib -L/et/sw/opensource/glib/2.2.3/lib
-L/usr/X11R6/lib -L/et/sw/opensource/pango/1.2.5/lib
/vobs/tools_source/opensource/gtk+/build_ET_40a7b0c_gtk+-2.2.4/gtk/libgtk-x11-2.0.la /vobs/tools_source/opensource/gtk+/build_ET_40a7b0c_gtk+-2.2.4/gdk/libgdk-x11-2.0.la /vobs/tools_source/opensource/gtk+/build_ET_40a7b0c_gtk+-2.2.4/gdk-pixbuf/libgdk_pixbuf-2.0.la -L/et/sw/opensource/atk/1.2.4/lib -lXinerama -lXext /et/sw/opensource/pango/1.2.5/lib/libpangox-1.0.la -lX11 /et/sw/opensource/pango/1.2.5/lib/libpango-1.0.la /et/sw/opensource/atk/1.2.4/lib/libatk-1.0.la /et/sw/opensource/glib/2.2.3/lib/libgobject-2.0.la /et/sw/opensource/glib/2.2.3/lib/libgmodule-2.0.la -ldl /et/sw/opensource/glib/2.2.3/lib/libglib-2.0.la -ltiff -lpng -lz -lm   '
 
# Version information for im-am-et.
current=0
age=0
revision=0
 
# Is this an already installed library?
installed=no
 
# Should we warn about portability when linking against -modules?
shouldnotlink=yes
 
# Files to dlopen/dlpreopen
dlopen=''
dlpreopen=''
 
# Directory that this library needs to be installed in:
libdir='/et/sw/opensource/gtk+/2.2.4/lib/gtk-2.0/2.2.0/immodules'

**********

Looking at the modules/input/.libs directory, I see :

**********

-rw-r--r--    1 cmadm    cmadm      120054 Jan 21 13:44 im-am-et.a
lrwxrwxrwx    1 cmadm    cmadm          14 Jan 21 13:44 im-am-et.la ->
../im-am-et.la
-rw-r--r--    1 cmadm    cmadm        1478 Jan 21 13:44 im-am-et.lai

**********

Looking at the modules/input/im-am-et.a library for symbol information,
I see:

**********

imam-et.o:
00000040 t am_et_class_init
00000020 d am_et_compose_seqs
00000024 r am_et_info
00000050 t am_et_init
00000000 t am_et_register_type
         U g_object_new
         U g_type_module_register_type
         U gtk_im_context_simple_add_table
         U gtk_im_context_simple_get_type
000000c0 T im_module_create
00000090 T im_module_exit
00000080 T im_module_init
000000a0 T im_module_list
00003414 d info_list
00000000 r object_info.0
00000000 D type_am_et_translit

**********

This suggests to me that the library does in fact support the GTK+ IM
API, but that the problem has to do with access of the library by
libtool and/or gtk-query-immodules-2.0

Does anyone have any suggestions about how to resolve this build issue? 
Given that the failing components seem to be input methods for locales
that I don't need to support anyways, I'd be happy if there is some
hidden configure option to disable these modules.

Thank you,
Aaron Neerenberg
Software Engineering, Tools, and Infrastructure Team,
Credence Systems Corporation



-- 

_______________________________________________

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