Find the answer to your Linux question:
Results 1 to 1 of 1
First of all, what the heck is the tcl command to find out if threading is enabled? I had it but lost it! So my original issue was the app ...
  1. #1
    Just Joined!
    Join Date
    Sep 2010
    Posts
    38

    Ok, Let's Start Over....(tcl/tk etc.)

    First of all, what the heck is the tcl command to find out if threading is enabled?
    I had it but lost it!

    So my original issue was the app I am trying to get to run uses tcl. The default tcl on my RHEL 5 is multi-threading. The app does not support multi-threading.
    So, I need to recompile tcl for non-threading. But, I want to leave the original tcl
    alone for other users. So I have installed tcl-8.4.19 using the following:

    ./configure --prefix=/home/sguil/tcl8.4.19nt --disable-threads
    make
    make all
    make test
    make install

    Fire tcl up and it works. Fine.

    Now, I also need tk. So I do this:

    ./configure --prefix=/home/sguil/tk8.4.19nt --disable-threads
    I get one error:
    configure: warning:
    Different --prefix selected for Tk and Tcl!
    [package require Tk] may not work correctly in tclsh.

    Why is this a warning or should I install with the same prefix I used for tcl?
    (it doesn't matter as I get a slew of errors from make)

    then, doing a "make" I get a ton of errors as such:

    /home/sguil/tkinstall/tk8.4.19/unix/../generic/tk3d.c:242: error: âNoneâ undeclared (first use in this function)
    /home/sguil/tkinstall/tk8.4.19/unix/../generic/tk3d.c:243: error: âTkBorderâ has no member named âbgGCâ
    /home/sguil/tkinstall/tk8.4.19/unix/../generic/tk3d.c:244: error: âTkBorderâ has no member named âdarkGCâ
    /home/sguil/tkinstall/tk8.4.19/unix/../generic/tk3d.c:245: error: âTkBorderâ has no member named âlightGCâ
    /home/sguil/tkinstall/tk8.4.19/unix/../generic/tk3d.c:246: error: âTkBorderâ has no member named âhashPtrâ
    /home/sguil/tkinstall/tk8.4.19/unix/../generic/tk3d.c:247: error: âTkBorderâ has no member named ânextPtrâ
    /home/sguil/tkinstall/tk8.4.19/unix/../generic/tk3d.c:256: error: âgcValuesâ undeclared (first use in this function)

    I am totally frustrated at this point and really appreciate your help.

    Ideas?

    Thanks,

    Ray

    PS: Here is the very beginning of the make output:

    gcc -c -O2 -pipe -Wall -Wno-implicit-int -fno-strict-aliasing -fPIC -I/home/sguil/tkinstall/tk8.4.19/unix -I/home/sguil/tkinstall/tk8.4.19/unix/../generic -I/home/sguil/tkinstall/tk8.4.19/unix/../bitmaps -I/home/sguil/tclinstall/tcl8.4.19/generic -DHAVE_LIMITS_H=1 -DHAVE_UNISTD_H=1 -DPEEK_XCLOSEIM=1 -D_LARGEFILE64_SOURCE=1 -DTCL_WIDE_INT_IS_LONG=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DSTDC_HEADERS=1 -DHAVE_PW_GECOS=1 -DTCL_NO_DEPRECATED -DUSE_TCL_STUBS /home/sguil/tkinstall/tk8.4.19/unix/../generic/tk3d.c
    In file included from /home/sguil/tkinstall/tk8.4.19/unix/../generic/tkInt.h:21,
    from /home/sguil/tkinstall/tk8.4.19/unix/../generic/tk3d.h:18,
    from /home/sguil/tkinstall/tk8.4.19/unix/../generic/tk3d.c:16:
    /home/sguil/tkinstall/tk8.4.19/unix/../generic/tk.h:81:23: error: X11/Xlib.h: No such file or directory
    In file included from /home/sguil/tkinstall/tk8.4.19/unix/../generic/tkInt.h:21,
    from /home/sguil/tkinstall/tk8.4.19/unix/../generic/tk3d.h:18,
    from /home/sguil/tkinstall/tk8.4.19/unix/../generic/tk3d.c:16:
    /home/sguil/tkinstall/tk8.4.19/unix/../generic/tk.h:557: error: expected declaration specifiers or â...â before âWindowâ
    /home/sguil/tkinstall/tk8.4.19/unix/../generic/tk.h:557: error: âWindowâ declared as function returning a function
    /home/sguil/tkinstall/tk8.4.19/unix/../generic/tk.h:557: warning: parameter names (without types) in function declaration
    Last edited by RayAID; 10-01-2010 at 04:42 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...