Opened 17 years ago

Last modified 7 weeks ago

#14888 new defect

otcl @1.9: configure: error: Installation of tk seems incomplete or can't be found automatically

Reported by: raiyan.kabir@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc: ryandesign (Ryan Carsten Schmidt), s_t_e_v_e@…, jursonovicst@…, gustafn, kurthindenburg (Kurt Hindenburg), mouse07410 (Mouse), barracuda156
Port: otcl

Description

Dear all, I found no helping site for this problem with otcl installation on Mac OS X 10.5.2. I'm using Macport. When ever I try to install otcl I found that the configure script failed to find the the tk installation. But is I try to install tk again Macport says that its already installed.

Actually I'll trying to install ns-2. To do that otcl is must. I need to install ns-2. a few days ago I installed ns-2 on Ubuntu 7.10. That was not also smooth. And the culprit was otcl. I had to download several patches and apply them on otcl to make the package work. port is giving me the following error massages.

Last login: Sun Mar 23 12:34:49 on ttys000
Xcore:~ raiyan$ open /opt
Xcore:~ raiyan$ sudo port install otcl
Password:
Portfile changed since last build; discarding previous state.
--->  Fetching otcl
--->  Verifying checksum(s) for otcl
--->  Extracting otcl
--->  Applying patches to otcl
--->  Configuring otcl
Error: Target org.macports.configure returned: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_otcl/work/otcl-1.9" && ./configure --prefix=/opt/local --with-Tcl=/opt/local --with-Tcl-ver=8.4 --with-tk=/opt/local --with-tk-ver=8.4 --prefix=/opt/local CPPFLAGS='-I/usr/X11R6/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_otcl/work/tcl8.4.9/generic/' CFLAGS='-I/usr/X11R6/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_otcl/work/tcl8.4.9/generic/' LDFLAGS='-L/usr/X11R6/lib' " returned error 1
Command output: checking how to run the C preprocessor... /usr/bin/cpp-4.0
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 for string.h... (cached) yes
checking for main in -lXbsd... no
checking for socket in -lsocket... no
checking for gethostbyname in -lnsl... no
checking for dcgettext in -lintl... yes
checking for getnodebyname in -ldnet_stub... no
checking standard STL is available... no
checking for Tcl.h... -I/opt/local/include
checking for libTcl... -L/opt/local/lib -lTcl
checking for tk.h... -I/opt/local/include
checking for libtk8.4... -L/opt/local/lib -ltk
checking for tk.tcl... no
configure: error: Installation of tk seems incomplete or can't be found automatically.
Please correct the problem by telling configure where tk is
using the argument --with-tk=/path/to/package
(perhaps after installing it),
or the package is not required, disable it with --with-tk=no.

Error: Status 1 encountered during processing.
Xcore:~ raiyan$

Is their any body in the forum who can help me to figure out what to do? I'm running 10.5.2 on MacBook 2.0GHz and 1GB ram.

Please let me know what to do?

Raiyan

Attachments (4)

otcl-port.diff (3.1 KB) - added by gustafn 12 years ago.
otcl-port.tar.gz (1.3 KB) - added by gustafn 12 years ago.
tclcl-port.diff (3.8 KB) - added by gustafn 12 years ago.
tclcl-port.tar.gz (859 bytes) - added by gustafn 12 years ago.

Download all attachments as: .zip

Change History (19)

comment:1 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)

ns-2, tclcl and otcl are very old and busted in MacPorts and may not work at all; see #13535.

comment:2 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added; raiyan.kabir@… removed

comment:3 Changed 16 years ago by blb@…

Cc: s_t_e_v_e@… added

Cc reporter of dup #16461.

comment:4 Changed 16 years ago by pyrios@…

Trying to get the current version of otcl (1.13) configured and eventually compiled. It is currently failing because it is looking for tclInt.h. I am only using tcl-8.5 because that is what port installed. The otcl web page for ns-2 recommends tcl8.4-14. It doesn't look like the tcl port installs the header which is used by otcl. The existing otcl port downloads the source for tcl-8.4.

sudo ./configure --with-tcl=/opt/local --with-tcl-ver=8.5
...
checking for tclInt.h... no
checking for libtcl8.5... -L/opt/local/lib -ltcl8.5
checking for init.tcl... /opt/local/lib/tcl8.5
checking for http.tcl... /opt/local/lib/tcl8.5/http1.0
checking Tcl http.tcl library... yes
checking for tclsh8.5... /opt/local/bin/tclsh8.5
configure: error: Installation of tcl seems incomplete or can't be found automatically.
Please correct the problem by telling configure where tcl is
using the argument --with-tcl=/path/to/package
(perhaps after installing it),
or the package is not required, disable it with --with-tcl=no.

comment:5 in reply to:  4 Changed 16 years ago by blb@…

Replying to pyrios@…:

Trying to get the current version of otcl (1.13) configured and eventually compiled. It is currently failing because it is looking for tclInt.h.

If that is a private Tcl header, then that's probably covered by ticket #17189.

comment:6 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

comment:7 Changed 14 years ago by jmroot (Joshua Root)

Port: otcl added

comment:8 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: jursonovicst@… added

Has duplicate #34664.

comment:9 Changed 12 years ago by gustafn

Dear all,

i have updated (and simplified) the portfiles and patches to work with tcl 8.5 and fixed the bugs mentioned above.

The uploaded files contain the diffs for the portfile of otcl and tclcl and tar files of porth ports (to avoid confusions about deleted patch files).

comment:10 Changed 12 years ago by gustafn

Cc: neumann@… added

Cc Me!

Changed 12 years ago by gustafn

Attachment: otcl-port.diff added

Changed 12 years ago by gustafn

Attachment: otcl-port.tar.gz added

Changed 12 years ago by gustafn

Attachment: tclcl-port.diff added

Changed 12 years ago by gustafn

Attachment: tclcl-port.tar.gz added

comment:17 Changed 10 years ago by kurthindenburg (Kurt Hindenburg)

Cc: khindenburg@… added

Cc Me!

comment:18 Changed 17 months ago by ryandesign (Ryan Carsten Schmidt)

Cc: mouse07410 added

Has duplicate #67728.

comment:19 Changed 16 months ago by mouse07410 (Mouse)

I cloned the Macports macports-ports tree, applied the necessary patches to lang/otcl/Portfile, and tried to build (and hopefully install) the otcl port. I'm getting this stupid error, which I totally don't understand:

$ pwd
/Users/ur20980/src/macports-ports/lang/otcl
$ sudo port install
Error: Unable to execute port: Could not open file: /Users/ur20980/src/macports-ports/lang/otcl/Portfile
$ sudo port -v install
Error: Unable to execute port: Could not open file: /Users/ur20980/src/macports-ports/lang/otcl/Portfile
$ ll -@ /Users/ur20980/src/macports-ports/lang/otcl/Portfile
-rw-r--r--  1 ur20980  staff  1743 Jul 24 23:15 /Users/ur20980/src/macports-ports/lang/otcl/Portfile
$ 

What am I doing wrong, or what stymies port executable???

comment:20 Changed 6 months ago by barracuda156

Still broken with the same error reported originally:

Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_otcl/otcl/work/otcl-1.9" && ./configure --prefix=/opt/local --with-Tcl=/opt/local --with-Tcl-ver=8.4 --with-tk=/opt/local --with-tk-ver=8.4 --prefix=/opt/local CPPFLAGS='-I/opt/local/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_otcl/otcl/work/tcl8.4.9/generic/' CFLAGS='-I/opt/local/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_otcl/otcl/work/tcl8.4.9/generic/' LDFLAGS='-L/opt/local/lib' 
configure: WARNING: unrecognized options: --with-Tcl-ver
No .configure file found in current directory
Continuing with default options...
checking build system type... powerpc-apple-darwin10.0.0d2
checking host system type... powerpc-apple-darwin10.0.0d2
checking target system type... powerpc-apple-darwin10.0.0d2
checking for gcc... /usr/bin/gcc-4.2
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 the compiler supports GNU C... yes
checking whether /usr/bin/gcc-4.2 accepts -g... yes
checking for /usr/bin/gcc-4.2 option to enable C11 features... unsupported
checking for /usr/bin/gcc-4.2 option to enable C99 features... -std=gnu99
checking whether the compiler supports GNU C++... yes
checking whether /usr/bin/g++-4.2 accepts -g... yes
checking for /usr/bin/g++-4.2 option to enable C++11 features... unsupported
checking for /usr/bin/g++-4.2 option to enable C++98 features... unsupported
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for grep that handles long lines and -e... /opt/local/bin/ggrep
checking for egrep... /opt/local/bin/ggrep -E
checking for string.h... (cached) yes
checking for main in -lXbsd... no
checking for socket in -lsocket... no
checking for gethostbyname in -lnsl... no
checking for dcgettext in -lintl... yes
checking for getnodebyname in -ldnet_stub... no
checking standard STL is available... no
checking for Tcl.h... -I/opt/local/include
checking for libTcl... -L/opt/local/lib -lTcl
checking for tk.h... -I/opt/local/include
checking for libtk8.4... -L/opt/local/lib -ltk
checking for tk.tcl... no
configure: error: Installation of tk seems incomplete or can't be found automatically.
Please correct the problem by telling configure where tk is
using the argument --with-tk=/path/to/package
(perhaps after installing it),
or the package is not required, disable it with --with-tk=no.
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_otcl/otcl/work/otcl-1.9" && ./configure --prefix=/opt/local --with-Tcl=/opt/local --with-Tcl-ver=8.4 --with-tk=/opt/local --with-tk-ver=8.4 --prefix=/opt/local CPPFLAGS='-I/opt/local/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_otcl/otcl/work/tcl8.4.9/generic/' CFLAGS='-I/opt/local/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_otcl/otcl/work/tcl8.4.9/generic/' LDFLAGS='-L/opt/local/lib' 
Exit code: 1

comment:21 Changed 7 weeks ago by ryandesign (Ryan Carsten Schmidt)

Cc: barracuda156 added
Summary: Problems with otcl installation with MacPortsotcl @1.9: configure: error: Installation of tk seems incomplete or can't be found automatically

Has duplicate #70991.

Note: See TracTickets for help on using tickets.