Menu

#17 Fix tcl private header path on OS X Mountain Lion

None
closed-fixed
None
5
2014-08-03
2013-09-23
manphiz
No

The private header path of tcl on Mountain Lion has changed from ${TCL_BIN_DIR}/PrivateHeaders to ${TCL_BIN_DIR}/Headers/tcl-private. This causes building failure on Mountain Lion due to missing headers. The last lines of build log looks like following:

cc -DPACKAGE_NAME=\"expect\" -DPACKAGE_TARNAME=\"expect\" -DPACKAGE_VERSION=\"5.45\" -DPACKAGE_STRING=\"expect\ 5.45\" -DPACKAGE_BUGREPORT=\"\" -DBUILD_expect= -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 -DMODULE_SCOPE=extern\ __attribute__\(\(__visibility__\(\"hidden\"\)\)\) -DTCL_WIDE_INT_IS_LONG=1 -DUSE_TCL_STUBS=1 -DUSE_TCL_STUBS=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_FCNTL_H=1 -DRETSIGTYPE=void -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_STRUCT_TM_TM_ZONE=1 -DHAVE_TM_ZONE=1 -DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1 -DHAVE_TM_GMTOFF=1 -DHAVE_TIMEZONE_VAR=1 -DHAVE_OPENPTY=1 -DHAVE_MEMMOVE=1 -DHAVE_SYSCONF=1 -DHAVE_STRFTIME=1 -DHAVE_STRCHR=1 -DHAVE_TIMEZONE=1 -DHAVE_SIGLONGJMP=1 -DHAVE_MEMCPY=1 -DWNOHANG_BACKUP_VALUE=1 -DSELECT_MASK_TYPE=fd_set -DHAVE_TCSETATTR=1 -DPOSIX=1 -DHAVE_SGTTYB=1 -DHAVE_TERMIOS=1 -DHAVE_TIOCGWINSZ_IN_TERMIOS_H=1 -DSETPGRP_VOID=1 -DHAVE_SV_TIMEZONE=1 -DHAVE_LONG_FILE_NAMES=1  -DTCL_DEBUGGER -DUSE_NON_CONST -DSCRIPTDIR=\"/usr/local/Cellar/expect/5.45/lib/expect5.45\" -DEXECSCRIPTDIR=\"/usr/local/Cellar/expect/5.45/lib/expect5.45\" -DSTTY_BIN=\"/bin/stty\" -DDFLT_STTY="\"sane\"" -I. -I"." -I"/SourceCache/tcl/tcl-97.1/tcl/tcl/generic" -I"/SourceCache/tcl/tcl-97.1/tcl/tcl/unix" -I/System/Library/Frameworks/Tcl.framework/Versions/8.5/Headers -I/System/Library/Frameworks/Tcl.framework/Versions/8.5/PrivateHeaders    -pipe  -arch x86_64 -Os -Wall -fno-common   -c `echo expect.c` -o expect.o
expect.c:28:10: fatal error: 'tclInt.h' file not found
#include "tclInt.h"
         ^
1 error generated.
make: *** [expect.o] Error 1
make: *** Waiting for unfinished jobs....
exp_command.c:61:10: fatal error: 'tclInt.h' file not found
#include "tclInt.h"             /* need OpenFile */
         ^
1 error generated.
make: *** [exp_command.o] Error 1

The attached patch adds detection for the new location in addition to the original logics.

1 Attachments

Discussion

  • Andreas Kupries

    Andreas Kupries - 2013-11-04
    • status: open --> closed-fixed
    • assigned_to: Andreas Kupries
    • Group: -->
     
  • Andreas Kupries

    Andreas Kupries - 2013-11-04

    Accepted, applied, and committed.
    Thank you for report and fix.

     

Log in to post a comment.