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

Bug#459816: xterm: compile fails if wide-chars enabled AND c1-print disabled



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

When configuring with the following command:

./configure --enable-wide-chars --disable-c1-print

make gives the following compile time error:

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 is attached to solve this problem.

-- 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/ptyx.h.orig	2008-01-08 21:39:08.000000000 +0100
+++ xterm-231/ptyx.h	2008-01-08 21:41:00.000000000 +0100
@@ -1355,7 +1355,7 @@ typedef struct {
 #if OPT_BROKEN_ST
 	Boolean		brokenStringTerm; /* true to match old OSC parse */
 #endif
-#if OPT_C1_PRINT
+#if OPT_C1_PRINT || OPT_WIDE_CHARS
 	Boolean		c1_printable;	/* true if we treat C1 as print	*/
 #endif
 	int		border;		/* inner border			*/


Reply to: