Uwe Brauer writes:
>> "Jeff" == Jeff Sparkes <jsparkes(a)gmail.com>
writes:
> On Wed, Nov 13, 2013 at 5:44 AM, Uwe Brauer <oub(a)mat.ucm.es> wrote:
>> gdk_x11_window_lookup_for_display
>>
> Looks like you have a Gtk older than 2.24. I've checked in a fix.
Here are the error messages:
,----
| event-gtk.c:395:34: error: use of undeclared identifier 'GDK_KEY_Shift_Lock'
Uwe, please post your Installation file which is generated by
configure, and config.log. It looks to me like you're only getting
part of GTK+ somehow.
Also, post the result of "pkg-config --modversion gtk+-2.0", which
should tell us if you really are building with an older GTK+.
Jeff, I'm having trouble on the Mac. I do have GTK+ 2.24.22, and I get
a build and the automatic test suite runs OK. But as soon as I try to
run it with the GUI, it crashes:
(gdb) run -vanilla
Starting program: /Users/steve/src/XEmacs/21.5/xemacs-gtk/+build/src/xemacs -vanilla
Xlib: extension "RANDR" missing on display
"/tmp/launch-vyVDPM/org.x:0".
Program received signal SIGSEGV, Segmentation fault.
0x00000001018e68d6 in g_type_fundamental ()
from /opt/local/lib/libgobject-2.0.0.dylib
(gdb) bt 5
#0 0x00000001018e68d6 in g_type_fundamental ()
from /opt/local/lib/libgobject-2.0.0.dylib
#1 0x00000001018d88b4 in g_object_new ()
from /opt/local/lib/libgobject-2.0.0.dylib
#2 0x00000001001b4ba6 in gtk_xemacs_new (f=0x0)
at /Users/steve/src/XEmacs/21.5/xemacs-gtk/src/gtk-xemacs.c:123
#3 0x000000010018f4fa in gtk_init_device (d=0x1022359b0, unused_props=...)
at /Users/steve/src/XEmacs/21.5/xemacs-gtk/src/device-gtk.c:272
#4 0x0000000100077e7e in Fmake_device (type=..., connection=..., props=...)
at /Users/steve/src/XEmacs/21.5/xemacs-gtk/src/device.c:662
(More stack frames follow...)
(gdb) quit
The warning about the RANDR extension happens with most X programs (I
think I have an old Xquartz server or something). I doubt it's
relevant but I include it for completeness. If you haven't seen
anything like this crash, don't spend too much time on it. It looks
like it's deep in libgobject. I have checked the libraries, and all
of them except the basic libc come from MacPorts, which is up to date
so they should be consistent. However, my version of Mac OS X is old
(Snow Leopard) and I think my most recent updates to GTK and friends
were binary packages -- it's possible that the MacPorts maintainers
are assuming Lion or more recent.
I also have a patch that fixes the pkg-config version detection
bogosity (I guess use of --version is left over from the days when
gtk-config was distributed with GTK+, now it refers to the version of
pkg-config d'oh :-). I did check for other uses of pkg-config
--version, there weren't any.
diff -r 456e7527e552 ChangeLog
--- a/ChangeLog Wed Nov 13 15:15:01 2013 -0500
+++ b/ChangeLog Thu Nov 14 22:34:51 2013 +0900
@@ -1,3 +1,9 @@
+2013-11-14 Stephen J. Turnbull <stephen(a)xemacs.org>
+
+ * configure.ac (GTK+): Restore missing $ in variable reference.
+ Use pkg-config --modversion (not --version) to get version of package.
+ Adjust GTK+ version reporting (2.24.22 is known good).
+
2013-09-15 Jeff Sparkes <jsparkes(a)gmail.com>
* configure.ac: Force -lX11 for gtk to link XKeycodeToKeysym.
diff -r 456e7527e552 configure
--- a/configure Wed Nov 13 15:15:01 2013 -0500
+++ b/configure Thu Nov 14 22:34:51 2013 +0900
@@ -12246,7 +12246,7 @@
$as_echo_n "checking for GTK configuration script... " >&6; }
for possible in gtk+-2.0
do
- possible_version=`pkg-config {possible} --version 2> /dev/null`
+ possible_version=`pkg-config ${possible} --modversion 2> /dev/null`
if test "x${possible_version}" != "x"; then
GTK_CONFIG="pkg-config ${possible}"
case "${possible_version}" in
@@ -12255,15 +12255,7 @@
with_gtk=no
break
;;
- 0.22*)
- with_gtk=yes
- break
- ;;
- 0.25*)
- with_gtk=yes
- break
- ;;
- 0.26*)
+ 2.24.22)
with_gtk=yes
break
;;
@@ -12279,7 +12271,7 @@
if test "${GTK_CONFIG}" != "no"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking gtk version"
>&5
$as_echo_n "checking gtk version... " >&6; }
- GTK_VERSION=`${GTK_CONFIG} --version`
+ GTK_VERSION=`${GTK_CONFIG} --modversion`
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${GTK_VERSION}"
>&5
$as_echo "${GTK_VERSION}" >&6; }
diff -r 456e7527e552 configure.ac
--- a/configure.ac Wed Nov 13 15:15:01 2013 -0500
+++ b/configure.ac Thu Nov 14 22:34:51 2013 +0900
@@ -2860,7 +2860,7 @@
AC_MSG_CHECKING(for GTK configuration script)
for possible in gtk+-2.0
do
- possible_version=`pkg-config {possible} --version 2> /dev/null`
+ possible_version=`pkg-config ${possible} --modversion 2> /dev/null`
if test "x${possible_version}" != "x"; then
GTK_CONFIG="pkg-config ${possible}"
case "${possible_version}" in
@@ -2868,15 +2868,7 @@
with_gtk=no
break
;;
- 0.22*)
- with_gtk=yes
- break
- ;;
- 0.25*)
- with_gtk=yes
- break
- ;;
- 0.26*)
+ 2.24.22)
with_gtk=yes
break
;;
@@ -2889,7 +2881,7 @@
if test "${GTK_CONFIG}" != "no"; then
AC_MSG_CHECKING(gtk version)
- GTK_VERSION=`${GTK_CONFIG} --version`
+ GTK_VERSION=`${GTK_CONFIG} --modversion`
AC_MSG_RESULT(${GTK_VERSION})
AC_MSG_CHECKING(gtk libs)
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta