Closed macauley closed 6 years ago
cmpInt.h is found under ActivelTcl install in include folder. I was able to compile tclcompiler with it.
Unfortunately, the ActiveTcl install is not a part of this repository, and the repo really should include all files necessary to build or explicit instructions for how to find the missing files. FWIW, I found a copy in the lib/tbcload directory of my Teapot repo, which is another way to find it for a workaround, since anyone building the tdk probably will want to have built teapot/teacup too.
Thanks for the info. I also later discovered that lib/tbcload was part of the Teapot repo, but hadn't gotten back to trying to piece it together with this repo to get it to compile. Was hoping somebody from ActiveState would respond and add the missing pieces to this repo, but seems like this was open sourced in a hurry and quickly mothballed.
I was able to compile the tclcompiler by cloning https://github.com/ActiveState/teapot in parallel to the tdk clone, and in the tdk/lib/tclcompiler directory, adding the arg "CPPFLAGS=-I\<PATH TO TEAPOT REPOT>/lib/tbcload" when calling configure.
When attempting to compile the lib/tclcompiler, it is trying to pull in a header file cmpInt.h which does not seem to exist in the repo (tbcload?):
> make
gcc -DPACKAGE_NAME=\"tclcompiler\" -DPACKAGE_TARNAME=\"tclcompiler\" -DPACKAGE_VERSION=\"1.7.1\" -DPACKAGE_STRING=\"tclcompiler\ 1.7.1\" -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 -DNO_VALUES_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_THREADS=1 -DTCL_WIDE_INT_IS_LONG=1 -DUSE_TCL_STUBS=1 -I"/private/tmp/tcl-tk-20180106-65143-zbnz9t/tcl8.6.8/generic" -I"/private/tmp/tcl-tk-20180106-65143-zbnz9t/tcl8.6.8/unix" -I/usr/local/Cellar/tcl-tk/8.6.8/include -pipe -Os -Wall -Wno-implicit-int -fno-common -c
echo cmpWPkg.c` -o cmpWPkg.o cmpWPkg.c:2:10: fatal error: 'cmpInt.h' file not foundinclude "cmpInt.h"
1 error generated. make: *** [cmpWPkg.o] Error 1 `