Subject: XFree86-clients: xterm won't compile
To: None <tech-pkg@netbsd.org>
From: David W. Talmage <talmage@madison.onespeeddave.com>
List: tech-pkg
Date: 01/27/2004 17:14:50
I just built and installed XFree86-clients.  Everything but xterm
compiled.  I don't understand why the compiler is complaining.  There is
something the matter with function name in the actionsList[] in
programs/xterm/charproc.c

HandleAllowSends, for example, is defined in menu.h, which is included
by charproc.c.  I expect the others are, too.

...
making all in programs/xterm...
rm -f charproc.o
cc -c -O2 -ansi -Dasm=__asm -Wall -Wpointer-arith -Wundef   -I/usr/pkgsrc/x11/XFree86-clients/work/.buildlink/include -I/usr/pkgsrc/x11/XFree86-clients/work/.buildlink/include -I/usr/pkgsrc/x11/XFree86-clients/work/.buildlink/include/freetype2  -I/usr/pkgsrc/x11/XFree86-clients/work/xc -I/usr/pkgsrc/x11/XFree86-clients/work/xc/exports/include  -I/usr/pkgsrc/x11/XFree86-clients/work/.buildlink/include -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -I.    -DSCROLLBAR_RIGHT -DOPT_WIDE_CHARS -DOPT_LUIT_PROG -DXRENDERFONT -DPROJECTROOT=/usr/pkg    charproc.c
charproc.c:269: error: `HandleAllowSends' undeclared here (not in a function)
charproc.c:269: error: initializer element is not constant
charproc.c:269: error: (near initialization for `actionsList[0].proc')
charproc.c:269: error: initializer element is not constant
charproc.c:269: error: (near initialization for `actionsList[0]')
charproc.c:270: error: initializer element is not constant
charproc.c:270: error: (near initialization for `actionsList[1]')
charproc.c:271: error: `HandleClearSavedLines' undeclared here (not in a function)
charproc.c:271: error: initializer element is not constant
charproc.c:271: error: (near initialization for `actionsList[2].proc')
charproc.c:271: error: initializer element is not constant
charproc.c:271: error: (near initialization for `actionsList[2]')
...