Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#40476 closed defect (worksforme)

configure: autodetection Tcl config variables fail on 10.9

Reported by: Serge3leo (Serguei E. Leontiev) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: base Version: 2.2.99
Keywords: Cc: jeremyhu (Jeremy Huddleston Sequoia), raimue (Rainer Müller), nerdling (Nerdling), stromnov (Andrew Stromnov), ttsuchi@…, computers57@…, bhadder@…, mp@…
Port:

Description

$ ./configure --enable-readline
checking build system type... x86_64-apple-darwin13.0.0
...
checking whether completion_matches is declared... yes
checking for Tcl configuration... configure: error: Can't find Tcl configuration definitions
$ 

configure try to find and use 'tclConfig.sh'

Mac OSX 10.9 Mavericks Preview 6 and Xcode don't have 'tclConfig.sh'.

Attachments (1)

config.log (59.5 KB) - added by Serge3leo (Serguei E. Leontiev) 3 years ago.

Download all attachments as: .zip

Change History (21)

Changed 3 years ago by Serge3leo (Serguei E. Leontiev)

comment:1 Changed 3 years ago by larryv (Lawrence Velázquez)

  • Cc jeremyhu@… added
  • Keywords configure tcl tclsh removed
  • Summary changed from configure: autodetection Tcl config variables fail to configure: autodetection Tcl config variables fail on 10.9

comment:2 Changed 3 years ago by Serge3leo (Serguei E. Leontiev)

Workaround: use private tcl, for example:

$ ./configure --with-tcl=/opt/local/lib --with-tclinclude=/opt/local/include
$ make
$ sudo make install

comment:3 Changed 3 years ago by raimue (Rainer Müller)

  • Cc raimue@… added

Cc Me!

comment:4 follow-up: Changed 3 years ago by rob@…

tcl headers and config have been moved into Xcode.

Try this:

./configure \
  --with-tcl=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/Tcl.framework/ \
  --with-tclinclude=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/Tcl.framework/Versions/8.5/Headers/

comment:5 Changed 3 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Mavericks is still behind an NDA. Please discuss over email with disclosed developers and not in a public forum.

comment:6 Changed 3 years ago by jeremyhu (Jeremy Huddleston Sequoia)

  • Resolution set to worksforme
  • Status changed from new to closed

comment:7 Changed 3 years ago by Serge3leo (Serguei E. Leontiev)

OK. Xcode 5.0.1 & OS X 10.9 GM seeds revert undocumented 'tclConfig.sh' in the hierarchy /usr/lib

comment:8 Changed 3 years ago by nerdling (Nerdling)

  • Cc snc@… added

Cc Me!

comment:9 in reply to: ↑ 4 ; follow-up: Changed 3 years ago by nerdling (Nerdling)

10.9 has released but Xcode 5.0.1 has not.

By trying to use the previously mentioned flags—but for 10.8 SDK—I get an error that tclConfig.sh can still not be found.

./configure --with-tcl=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Tcl.framework --with-tclinclude=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Tcl.framework/Versions/8.5/Headers/
checking for Tcl configuration... configure: error: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Tcl.framework directory doesn't contain tclConfig.sh
xcodebuild -version
Xcode 5.0
Build version 5A1413

comment:10 Changed 3 years ago by stromnov (Andrew Stromnov)

  • Cc stromnov@… added

Cc Me!

comment:11 in reply to: ↑ 9 Changed 3 years ago by ttsuchi@…

Last edited 3 years ago by ttsuchi@… (previous) (diff)

comment:12 Changed 3 years ago by ttsuchi@…

  • Cc ttsuchi@… added

Cc Me!

comment:13 Changed 3 years ago by bonoba@…

  • Cc bonoba@… added

Cc Me!

comment:14 follow-up: Changed 3 years ago by jmroot (Joshua Root)

You need the command line tools. Run

xcode-select --install

comment:15 in reply to: ↑ 14 Changed 3 years ago by ttsuchi@…

Replying to jmr@…:

You need the command line tools. Run

xcode-select --install

Thanks, that put the tclConfig.sh in /System/Library/Frameworks/Tcl.framework, so

./configure --with-tclpackage=/Library/Tcl \
--with-tcl=/System/Library/Frameworks/Tcl.framework \
--with-tclinclude=/System/Library/Frameworks/Tcl.framework/Headers

worked for me on 10.9 (with Xcode 5.0).

Last edited 3 years ago by ttsuchi@… (previous) (diff)

comment:16 Changed 3 years ago by raimue (Rainer Müller)

No special configure options are necessary, the configure script will find Tcl after installing the Command Line Tools with the defaults.

comment:17 Changed 3 years ago by bonoba@…

  • Cc bonoba@… removed

Cc Me!

comment:18 Changed 3 years ago by computers57@…

  • Cc computers57@… added

Cc Me!

comment:19 Changed 3 years ago by bhadder@…

  • Cc bhadder@… added

Cc Me!

comment:20 Changed 3 years ago by mp@…

  • Cc mp@… added

Cc Me!

Note: See TracTickets for help on using tickets.