Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

compiling Tk on Linux 64-bit - help with error requested

70 views
Skip to first unread message

Buchs

unread,
Nov 9, 2007, 11:40:22 AM11/9/07
to
I'm trying to build a 64-bit 8.4.16 Tcl/Tk installation for my Ubuntu
Linux install on a P4-processor-based system. I get stuck with this
error:

/usr/local/src/tk8.4.16/unix/tkUnixDraw.c:97: error: void value not
ignored as it ought to be

tkUnixDraw.c certainly is guilty of checking the return value of
XEmptyRegion in line 97:

if (XEmptyRegion((Region) damageRgn)) {

And X11/Xutil.h certainly defines the function as a void:

extern void XEmptyRegion(

I'm sure I have missed something (obvious to others) here.

If this question is better directed to another list, please let me
know.

Kevin Buchs

Larry W. Virden

unread,
Nov 14, 2007, 12:24:41 PM11/14/07
to
On Nov 9, 11:40 am, Buchs <kevin.bu...@gmail.com> wrote:
> I'm trying to build a 64-bit 8.4.16 Tcl/Tk installation for my Ubuntu
> Linux install on a P4-processor-based system. I get stuck with this
> error:

>


> And X11/Xutil.h certainly defines the function as a void:
>
> extern void XEmptyRegion(
>
> I'm sure I have missed something (obvious to others) here.

That's peculiar. On my Solaris system, the man page for XEmptyRegion
defines it to be type Bool.
It's the same way on my Red Hat local system.

When I google for void XEmptyRegion I see a variety of 2002 notes from
redhat mailing lists that patch a void declaration to a Bool...

http://www.xfree86.org/current/XEmptyRegion.3.html is the xfree86's
online doc for their code, and it shows the function as returning
Bool.

I recommend you work with the Ubuntu folk to see what happened. The
function appears to have been documented as returning Bool since at
least 1998...

>
> If this question is better directed to another list, please let me
> know.

This is the right place to ask.


gol...@gmail.com

unread,
Dec 9, 2013, 7:22:38 AM12/9/13
to
Hi Kevin,
I faced similar error during installation of tk8.4.18 in Ubuntu 13.10.
If you could be able to solve your problem, I appreciate it if your kind enough to help me.

Regards,

0 new messages