Martin Buchholz <martin(a)xemacs.org> writes:
Executive summary: gtk-xemacs-21.2 is broken in at least two
different
ways, even if --with-gtk is not used.
>>>>> "Bill" == William M Perry <wmperry(a)aventail.com>
writes:
Bill> I just committed the changes to the 'generic' XEmacs files, so that we
can
Bill> test whether there will be any badness if people build --with-gtk=no (the
Bill> default).
Bill> There seems to be a CVS lock right now, and I forgot to check in the
Bill> configure script, but you can regenerate it with 'autoconf' without a
Bill> problem.
I built the gtk-xemacs-21.2 branch. It seemed to want to use gtk,
even though I didn't ask it to. Then it died as follows (on linux):
checking for specified window system
checking for GNOME configuration script... gnome-config
Defining HAVE_GNOME
Appending "-rdynamic -L/usr/lib -L/usr/X11R6/lib -lgnomeui -lart_lgpl
-lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule -lXext -lX11 -lgnome -lgnomesupport -lesd
-laudiofile -lm -ldb1 -lglib -ldl" to $libs_gtk
Appending "-I/usr/include -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include
-I/usr/X11R6/include -I/usr/lib/glib/include" to $c_switch_gtk
checking for GTK configuration script... gtk-config
checking gtk version... 1.2.6
checking gtk libs... Appending "-L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk
-rdynamic -lgmodule -lglib -ldl -lXext -lX11 -lm" to $libs_gtk
-L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXext -lX11 -lm
checking gtk cflags... Appending "-I/usr/X11R6/include
-I/usr/lib/glib/include" to $c_switch_gtk
-I/usr/X11R6/include -I/usr/lib/glib/include
checking for main in -lgdk_imlib... yes
Prepending "-lgdk_imlib" to $libs_gtk
checking for Imlib_init in -lImlib... yes
Appending "-lImlib" to $libs_gtk
checking for gdk_imlib_init... yes
Defining HAVE_GDK_IMLIB_INIT
Defining HAVE_XPM
Defining HAVE_GTK
xemacs will be linked with "console-gtk.o device-gtk.o event-gtk.o
frame-gtk.o"
xemacs will be linked with "objects-gtk.o redisplay-gtk.o glyphs-gtk.o"
xemacs will be linked with "select-gtk.o gccache-gtk.o"
xemacs will be linked with "gtk-xemacs.o ui-gtk.o"
checking for glade/glade.h... no
checking for glade.h... no
checking for main in -lxml... yes
Prepending "-lxml" to $libs_gtk
checking for main in -lglade... yes
Prepending "-lglade" to $libs_gtk
checking for main in -lglade-gnome... yes
Prepending "-lglade-gnome" to $libs_gtk
no
/project/xemacs/ws/gtk/configure: line 6196: syntax error near unexpected token `!'
/project/xemacs/ws/gtk/configure: line 6196: `! ! ! ! ! '
Command "/project/xemacs/ws/gtk/configure --extra-verbose --with-gnu-make
--package-path=~/.xemacs:/usr/local/lib/xemacs/xemacs-packages:/usr/local/lib/xemacs/mule-packages
--with-widgets=no --site-prefixes=/local/xemacs/aux:/usr/local --compiler=gcc29
--error-checking=none --debug=no --memory-usage-stats=no --use-union-type=no --with-mule
--with-pop --with-dragndrop=no --use-minimal-tagbits=no
--use-indexed-lrecord-implementation=no --cflags=-fstrict-aliasing -O3 -pipe -Wall
-Winline -Wmissing-prototypes -Wmissing-declarations -Wno-switch -Wno-sign-compare
-Wno-uninitialized -Wshadow --prefix=/local/xemacs/inst" failed: rc=2
Grrr - stupid mistake on my part. Just committed changes to fix them. I
hand applied a patch or two to configure.in, and the `!' markers got left
in one chunk, and I forgot to put the 'if test "$with_gtk" !=
"no"' check
around some stuff. Now I have to figure out why it _didn't_ find gtk on my
box. Very weird.
On my Solaris system, there is no hint of gtk or gnome, so you'd
think
everything would be hunky-dorey. In fact, configure is happy after
failing to find gtk:
checking for specified window system
checking for GNOME configuration script... /project/xemacs/ws/gtk/configure:
gnome-config: not found
no
checking for GTK configuration script... /project/xemacs/ws/gtk/configure: gtk12-config:
not found
/project/xemacs/ws/gtk/configure: gtk14-config: not found
/project/xemacs/ws/gtk/configure: gtk-config: not found
no
but compile fails as follows:
cc -c -fast -xO5 -Demacs -I. -DHAVE_CONFIG_H -I/usr/local/xemacs/aux/include
-I/usr/local/include -I/usr/local/canna/include -I/usr/dt/include -I/usr/openwin/include
/project/xemacs/ws/gtk/src/events.c
"/project/xemacs/ws/gtk/src/events.c", line 33: cannot find include file:
"console-gtk.h"
cc: acomp failed for /project/xemacs/ws/gtk/src/events.c
make[1]: *** [events.o] Error 2
I just checked in all the GTK code - I doubt any of it will compile, but
the header files will fulfill this. Sorry about that.
-Bill P.