From: Michael M. <mur...@gm...> - 2014-09-08 21:12:52
|
Greetings I am trying to build the extension tktreectrl-2.4.1 so I can call it from python. It took me awhile to sort out versions, but I think the version I want is under /anaconda ./configure --with-tk=/anaconda/pkgs/tk-8.5.13-1/lib --with-tcl=/anaconda/pkgs/tk-8.5.13-1/lib it finds tkConfig.sh and tclConfig.sh Michaels-MacBook-Pro:tktreectrl-2.4.1 mmuratet$ ./configure --with-tk=/anaconda/pkgs/tk-8.5.13-1/lib --with-tcl=/anaconda/pkgs/tk-8.5.13-1/lib checking for correct TEA configuration... ok (TEA 3.9) configure: configuring treectrl 2.4 checking for Tcl configuration... found /anaconda/pkgs/tk-8.5.13-1/lib/tclConfig.sh checking for existence of /anaconda/pkgs/tk-8.5.13-1/lib/tclConfig.sh... loading checking for Tk configuration... found /anaconda/pkgs/tk-8.5.13-1/lib/tkConfig.sh checking for existence of /anaconda/pkgs/tk-8.5.13-1/lib/tkConfig.sh... loading configure: --prefix defaulting to TCL_PREFIX /opt/anaconda1anaconda2anaconda3 configure: --exec-prefix defaulting to TCL_EXEC_PREFIX /opt/anaconda1anaconda2anaconda3 checking for a BSD-compatible install... /usr/bin/install -c checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking how to run the C preprocessor... gcc -E checking whether make sets $(MAKE)... yes checking for ranlib... ranlib checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking if the compiler understands -pipe... yes checking whether byte ordering is bigendian... no checking for sin... yes checking for main in -lieee... no checking for main in -linet... no checking net/errno.h usability... no checking net/errno.h presence... no checking for net/errno.h... no checking for connect... yes checking for gethostbyname... yes checking dirent.h... yes checking errno.h usability... yes checking errno.h presence... yes checking for errno.h... yes checking float.h usability... yes checking float.h presence... yes checking for float.h... yes checking values.h usability... no checking values.h presence... no checking for values.h... no checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking sys/wait.h usability... yes checking sys/wait.h presence... yes checking for sys/wait.h... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking sys/param.h usability... yes checking sys/param.h presence... yes checking for sys/param.h... yes checking for Tcl public headers... /anaconda/pkgs/tk-8.5.13-1/lib/../include checking for Tcl private include files... Using -I"-------src-dir--------/tcl8.5.13/generic" -I"-------src-dir--------/tcl8.5.13/unix" checking for Tk public headers... /anaconda/pkgs/tk-8.5.13-1/lib/../include checking for Tk private include files... Using -I"-------src-dir--------/tk8.5.13/generic" -I"-------src-dir--------/tk8.5.13/unix" checking for X... libraries /usr/X11/lib, headers checking for X11 header files... checking whether byte ordering is bigendian... (cached) no checking for intptr_t... yes checking for pthread_mutex_init in -lpthread... yes checking for building with threads... yes (default) configure: WARNING: --enable-threads requested, but building against a Tcl that is NOT thread-enabled. This is an OK configuration that will also run in a thread-enabled core. checking how to build libraries... shared checking if 64bit support is requested... no checking if 64bit Sparc VIS support is requested... no checking if compiler supports visibility "hidden"... yes checking if rpath support is requested... yes checking system version... Darwin-11.4.2 checking for ar... ar checking if ld accepts -single_module flag... yes checking if ld accepts -search_paths_first flag... yes checking for required early compiler flags... none checking for 64-bit integer type... using long checking for build with symbols... no checking for tclsh... /anaconda/pkgs/tk-8.5.13-1/bin/tclsh8.5 checking for wish... /anaconda/pkgs/tk-8.5.13-1/bin/wish8.5 configure: creating ./config.status config.status: creating Makefile But make fails Michaels-MacBook-Pro:tktreectrl-2.4.1 mmuratet$ sudo make Password: gcc -DPACKAGE_NAME=\"treectrl\" -DPACKAGE_TARNAME=\"treectrl\" -DPACKAGE_VERSION=\"2.4\" -DPACKAGE_STRING=\"treectrl\ 2.4\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE_PATCHLEVEL=\"2.4.1\" -DBUILD_treectrl=/\*\*/ -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 -DHAVE_INTPTR_T=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_THREADS=1 -DMODULE_SCOPE=extern\ __attribute__\(\(__visibility__\(\"hidden\"\)\)\) -DTCL_WIDE_INT_IS_LONG=1 -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1 -I. -I"./generic" -I"-------src-dir--------/tcl8.5.13/generic" -I"-------src-dir--------/tcl8.5.13/unix" -I"-------src-dir--------/tk8.5.13/generic" -I"-------src-dir--------/tk8.5.13/unix" -pipe -Os -Wall -fno-common -c `echo ./generic/qebind.c` -o qebind.o gcc -DPACKAGE_NAME=\"treectrl\" -DPACKAGE_TARNAME=\"treectrl\" -DPACKAGE_VERSION=\"2.4\" -DPACKAGE_STRING=\"treectrl\ 2.4\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE_PATCHLEVEL=\"2.4.1\" -DBUILD_treectrl=/\*\*/ -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 -DHAVE_INTPTR_T=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_THREADS=1 -DMODULE_SCOPE=extern\ __attribute__\(\(__visibility__\(\"hidden\"\)\)\) -DTCL_WIDE_INT_IS_LONG=1 -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1 -I. -I"./generic" -I"-------src-dir--------/tcl8.5.13/generic" -I"-------src-dir--------/tcl8.5.13/unix" -I"-------src-dir--------/tk8.5.13/generic" -I"-------src-dir--------/tk8.5.13/unix" -pipe -Os -Wall -fno-common -c `echo ./generic/tkTreeColumn.c` -o tkTreeColumn.o In file included from ./generic/tkTreeColumn.c:11:0: ./generic/tkTreeCtrl.h:11:20: fatal error: tkPort.h: No such file or directory compilation terminated. make: *** [tkTreeColumn.o] Error 1 I'm not sure where to go from here. If tkConfig.sh and tclConfig.sh don't know where the headers are, where would you look for headers? I've never seen configure generate include paths with a lot of hyphens. Is that coming from tkConf.sh or tclConf.sh? Thanks Mike |