Package: xterm
Version: 231-1
Severity: minor
Tags: patch

Compile fails if xterm was configured with the following command:

./configure --disable-88-color --enable-setuid --enable-color-class 
--disable-full-tgetent --enable-trace --disable-session-mgt --disable-tcap-fkeys
--enable-ziconbeep --enable-samename --disable-initial-erase --disable-imake 
--enable-bold-color --enable-blink-cursor --disable-active-icon 
--enable-warnings
--enable-num-lock --disable-ansi-color --disable-input-method --enable-toolbar 
--disable-color-mode --disable-broken-osc --enable-hp-fkeys --enable-rightbar
--enable-regex --disable-wide-chars --enable-doublechars --disable-dabbrev 
--enable-sun-fkeys --disable-readline-mouse --disable-256-color 
--enable-narrowproto
--disable-desktop --enable-mini-luit --enable-tcap-query --enable-dec-locator 
--disable-vt52 --disable-maximize --disable-freetype --disable-16-color
--enable-c1-print --enable-paste64 --enable-tek4014 --enable-sco-fkeys 
--disable-echo --disable-exec-xterm --disable-pty-handshake 
--enable-logfile-exec
--disable-rectangles --enable-i18n --enable-boxchars --disable-logging 
--enable-highlighting --disable-luit --disable-broken-st --disable-leaks
--enable-xmc-glitch --enable-setgid --enable-load-vt-fonts

The error message is:

gcc -I. -I. -DHAVE_CONFIG_H  -I/usr/include/freetype2  -I. -Dlinux -D__i386__ 
-D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE
-D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 
-DNARROWPROTO    -DUTMP  -DOSMAJORVERSION=2 -DOSMINORVERSION=6  -D_GNU_SOURCE
-DPROJECTROOT='"/usr"' -D__vendorversion__='"Version 6.9.0 X.Org"'  -g -O2  -c 
./button.c
./button.c: In function 'SelectionReceived':
./button.c:1614: error: 'TScreen' has no member named 'c1_printable'
make: *** [button.o] Error 1

A possible patch to solve this problem is attached.

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.23 (PREEMPT)
Locale: LANG=hu_HU, LC_CTYPE=hu_HU (charmap=ISO-8859-2)
Shell: /bin/sh linked to /bin/bash

Versions of packages xterm depends on:
ii  libc6                     2.7-5          GNU C Library: Shared libraries
ii  libfontconfig1            2.4.2-1.2      generic font configuration library
ii  libice6                   2:1.0.4-1      X11 Inter-Client Exchange library
ii  libncurses5               5.6+20071124-1 Shared libraries for terminal hand
ii  libsm6                    2:1.0.3-1+b1   X11 Session Management library
ii  libx11-6                  2:1.0.3-7      X11 client-side library
ii  libxaw7                   2:1.0.4-1      X11 Athena Widget library
ii  libxext6                  1:1.0.3-2      X11 miscellaneous extension librar
ii  libxft2                   2.1.12-2       FreeType-based font drawing librar
ii  libxmu6                   1:1.0.3-1      X11 miscellaneous utility library
ii  libxt6                    1:1.0.5-3      X11 toolkit intrinsics library
ii  xbitmaps                  1.0.1-2        Base X bitmaps

Versions of packages xterm recommends:
ii  xutils                      1:7.1.ds.3-1 X Window System utility programs

-- no debconf information

--- xterm-231/charproc.c.orig	2008-01-08 21:57:31.000000000 +0100
+++ xterm-231/charproc.c	2008-01-08 21:57:45.000000000 +0100
@@ -5976,10 +5976,12 @@ VTDestroy(Widget w GCC_UNUSED)
     }
 #endif
 
+#if OPT_COLOR_RES
     /* free local copies of resource strings */
     for (n = 0; n < NCOLORS; ++n) {
 	FREE_LEAK(screen->Tcolors[n].resource);
     }
+#endif
 #if OPT_SELECT_REGEX
     for (n = 0; n < NSELECTUNITS; ++n) {
 	FREE_LEAK(screen->selectExpr[n]);

Reply via email to