Menu

#1910 Problem compiling tk 8.5a2

obsolete: 8.5a2
closed-invalid
5
2005-05-17
2005-05-16
Pierre
No

# make
gcc -pipe -c -O2 -s -O3 -march=i686 -Wall
-Wno-implicit-int -fno-strict-aliasing -fPIC
-I/tmp/tk8.5a2/unix -I/tmp/tk8.5a2/unix/../generic
-I/tmp/tk8.5a2/unix/../bitmaps -I/tmp/tcl8.5a2/generic
-I/tmp/tcl8.5a2/unix -I/usr/X11R6/include
-DPACKAGE_NAME=\"tk\" -DPACKAGE_TARNAME=\"tk\"
-DPACKAGE_VERSION=\"8.5\" -DPACKAGE_STRING=\"tk\ 8.5\"
-DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
-DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1
-DTCL_THREADS=1 -DUSE_THREAD_ALLOC=1
-DUSE_THREAD_STORAGE=1 -D_REENTRANT=1 -D_THREAD_SAFE=1
-DHAVE_PTHREAD_ATTR_SETSTACKSIZE=1
-DHAVE_PTHREAD_GETATTR_NP=1 -DGETATTRNP_NOT_DECLARED=1
-DHAVE_READDIR_R=1 -DPEEK_XCLOSEIM=1
-DTCL_CFG_OPTIMIZED=1 -DTCL_CFG_DEBUG=1
-D_LARGEFILE64_SOURCE=1 -DTCL_WIDE_INT_TYPE=long\ long
-DHAVE_STRUCT_STAT64=1 -DHAVE_TYPE_OFF64_T=1
-DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1
-DHAVE_PW_GECOS=1 -DHAVE_XFT=1 -DTCL_NO_DEPRECATED
-DUSE_TCL_STUBS /tmp/tk8.5a2/unix/../generic/tk3d.c
In file included from
/tmp/tk8.5a2/unix/../generic/tkPort.h:32,
from
/tmp/tk8.5a2/unix/../generic/tkInt.h:27,
from
/tmp/tk8.5a2/unix/../generic/tk3d.h:18,
from
/tmp/tk8.5a2/unix/../generic/tk3d.c:16:
/tmp/tk8.5a2/unix/tkUnixPort.h:224:20: tclInt.h: No
such file or directory
make: *** [tk3d.o] Error 1

Discussion

  • Don Porter

    Don Porter - 2005-05-16

    Logged In: YES
    user_id=80530

    Did you pass the correct
    --with-tcl= argument to configure?

     
  • Don Porter

    Don Porter - 2005-05-16
    • labels: --> 84. Unix Build
    • assigned_to: nobody --> dgp
    • milestone: --> obsolete: 8.5a2
    • status: open --> pending-invalid
     
  • Pierre

    Pierre - 2005-05-17

    Logged In: YES
    user_id=512388

    What do you mean by 'correct' ?
    I just installed tcl 8.5a2 before.

     
  • Pierre

    Pierre - 2005-05-17
    • status: pending-invalid --> open-invalid
     
  • Don Porter

    Don Porter - 2005-05-17

    Logged In: YES
    user_id=80530

    I see in your report the option
    "-I/tmp/tcl8.5a2/generic" . That
    should be all that's needed to
    find the file /tmp/tcl8.5a2/generic/tclInt.h

    Did you unpack the Tcl source code
    distribution into the directory named
    /tmp/tcl8.5a2 ? Where is the file
    /tmp/tcl8.5a2/generic/tclInt.h ?

    It would help clarify things if you told
    us everything about your failed attempt
    to build Tcl/Tk. Where are the files;
    what options did you pass to configure; etc. ?

     
  • Pierre

    Pierre - 2005-05-17

    Logged In: YES
    user_id=512388

    After compiling and installing tcl successfully, I removed
    the directory containing the sources, as I do for any other
    software.
    Does the tcl installation need to keep the source directory
    on the system ?

     
  • Don Porter

    Don Porter - 2005-05-17
    • status: open-invalid --> closed-invalid
     
  • Don Porter

    Don Porter - 2005-05-17

    Logged In: YES
    user_id=80530

    I offer you several options:

    1) Keep the Tcl sources in place until
    after you build/install Tk. Once both are
    installed, you can remove sources for
    both. This will definitely work.

    2) Go ahead and delete the Tcl sources,
    and when you configure Tk, use the
    --with-tcl= option to tell Tk where the Tcl
    file tclConfig.sh got installed. This might
    work, but might not; doesn't get tested
    regularly.

    3) Skip all the headaches of building Tcl/Tk
    and just get them in binary form as part of
    ActiveTcl from:

    www.activestate.com

    If you can recommend any concrete changes
    to the Tk README and other files to make this
    more clear, please contribute them.