Subject: Re: XFree86-clients: xterm won't compile
To: None <talmage@acm.org>
From: Juan RP <juan@xtraeme.unixbsd.org>
List: tech-pkg
Date: 01/27/2004 23:18:11
--Signature=_Tue__27_Jan_2004_23_18_11_+0100_0LyWvUI=XOWTwB/e
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

On Tue, 27 Jan 2004 17:14:50 -0500
"David W. Talmage" <talmage@madison.onespeeddave.com> wrote:

> 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]')
> ...

Can you provide the exact information about your system, etc?

I've tested it on NetBSD 1.6.1/-current (x86) and it worked perfectly.

-- 
Juan RP <juan@xtraeme.unixbsd.org>


--Signature=_Tue__27_Jan_2004_23_18_11_+0100_0LyWvUI=XOWTwB/e
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (NetBSD)

iD8DBQFAFuOmypkLYVDran0RAo73AKCEvH+MYDMhdcK/y6LzD3eUXjXrqwCaAvJJ
t8ZzbNjQZuDbVv8xiba5XGg=
=0XTG
-----END PGP SIGNATURE-----

--Signature=_Tue__27_Jan_2004_23_18_11_+0100_0LyWvUI=XOWTwB/e--