Opened 16 years ago

Last modified 8 months ago

#14888 new defect

Problems with otcl installation with MacPorts

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)
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 (17)

comment:1 Changed 16 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 16 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 15 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 15 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 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

comment:7 Changed 13 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 9 months ago by ryandesign (Ryan Carsten Schmidt)

Cc: mouse07410 added

Has duplicate #67728.

comment:19 Changed 8 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???

Note: See TracTickets for help on using tickets.