Opened 16 years ago

Closed 15 years ago

Last modified 11 years ago

#13827 closed defect (fixed)

expect fails to build with tcl 8.5

Reported by: liontooth@… Owned by: markd@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: leopard Cc: ryandesign (Ryan Carsten Schmidt), bretthoerner@…, max@…, JeNeSuisPasDave (Dave Hein), cooljeanius (Eric Gallager)
Port: expect

Description (last modified by jmroot (Joshua Root))

I was happy to see expect in macports, but it has a build problem on Leopard:

port install expect
--->  Fetching tcl
--->  Attempting to fetch tcl8.5.0-src.tar.gz from http://downloads.sourceforge.net/tcl
--->  Attempting to fetch tcl8.5.0-src.tar.gz from http://easynews.dl.sourceforge.net/tcl
--->  Verifying checksum(s) for tcl
--->  Extracting tcl
--->  Configuring tcl
--->  Building tcl with target all
--->  Staging tcl into destroot
--->  Installing tcl 8.5.0_0
--->  Activating tcl 8.5.0_0
--->  Cleaning tcl
--->  Fetching expect
--->  Attempting to fetch expect-5.43.0.tar.gz from http://expect.nist.gov/src/
--->  Attempting to fetch tcl8.4.14-src.tar.gz from http://downloads.sourceforge.net/tcl
--->  Verifying checksum(s) for expect
--->  Extracting expect
--->  Configuring expect
--->  Building expect with target all
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_expect/work/expect-5.43" && make all " returned error 2
Command output:            else true; fi ; \
           /usr/bin/gcc-4.0 -c  -I. -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_expect/work/tcl8.4.14/generic   -DEXP_VERSION=\"5.43.0\" -DSCRIPTDIR=\"/opt/local/lib/expect5.43\" -DEXECSCRIPTDIR=\"/opt/local/lib/expect5.43\" -DTCL_DEBUGGER -DUSE_NON_CONST -DSTTY_BIN=\"/bin/stty\" -O2 -O2 -pipe  -I/opt/local/include   -DDFLT_STTY="\"sane\""  exp_chan.c -o shared/exp_chan.o ; \
        fi
/usr/bin/gcc-4.0 -c  -I. -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_expect/work/tcl8.4.14/generic   -DEXP_VERSION=\"5.43.0\" -DSCRIPTDIR=\"/opt/local/lib/expect5.43\" -DEXECSCRIPTDIR=\"/opt/local/lib/expect5.43\" -DTCL_DEBUGGER -DUSE_NON_CONST -DSTTY_BIN=\"/bin/stty\" -O2 -O2 -pipe  -I/opt/local/include  -DDFLT_STTY="\"sane\""  Dbg.c
Dbg.c: In function 'PrintStackBelow':
Dbg.c:469: warning: passing argument 3 of 'print_objv' discards qualifiers from pointer target type
if [ "xlibexpect5.43.a" != "xlibexpect5.43.a" ] ; then \
           if [ ! -d shared ] ; then \
                mkdir shared ; \
           else true; fi ; \
           /usr/bin/gcc-4.0 -c  -I. -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_expect/work/tcl8.4.14/generic   -DEXP_VERSION=\"5.43.0\" -DSCRIPTDIR=\"/opt/local/lib/expect5.43\" -DEXECSCRIPTDIR=\"/opt/local/lib/expect5.43\" -DTCL_DEBUGGER -DUSE_NON_CONST -DSTTY_BIN=\"/bin/stty\" -O2 -O2 -pipe  -I/opt/local/include   -DDFLT_STTY="\"sane\""  Dbg.c -o shared/Dbg.o ; \
        fi
rm -f libexpect5.43.a
ar cr libexpect5.43.a exp_command.o expect.o pty_termios.o exp_inter.o exp_regexp.o exp_tty.o exp_log.o exp_main_sub.o exp_pty.o exp_trap.o exp_console.o exp_strf.o exp_glob.o exp_win.o exp_clib.o exp_closetcl.o exp_memmove.o exp_tty_comm.o exp_select.o exp_event.o exp_chan.o Dbg.o
ranlib: file: libexpect5.43.a(exp_regexp.o) has no symbols
ranlib: file: libexpect5.43.a(exp_closetcl.o) has no symbols
ranlib: file: libexpect5.43.a(exp_memmove.o) has no symbols
ranlib libexpect5.43.a
ranlib: file: libexpect5.43.a(exp_regexp.o) has no symbols
ranlib: file: libexpect5.43.a(exp_closetcl.o) has no symbols
ranlib: file: libexpect5.43.a(exp_memmove.o) has no symbols
/usr/bin/gcc-4.0 -O2 -O2 -pipe  -I/opt/local/include  -L/opt/local/lib -prebind -headerpad_max_install_names -Wl,-search_paths_first  -o expect exp_main_exp.o libexpect5.43.a -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_tcl/work/tcl8.5.0/unix -ltcl8.5 -L/opt/local/lib   -framework CoreFoundation  
Undefined symbols:
  "_Tcl_CloseObjCmd", referenced from:
      _Exp_CloseObjCmd in libexpect5.43.a(exp_command.o)
  "_Tcl_ReturnObjCmd", referenced from:
      _Exp_InterReturnObjCmd in libexpect5.43.a(exp_command.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [expect] Error 1

Error: Status 1 encountered during processing.

Cheers, Dave

Change History (11)

comment:1 Changed 16 years ago by afb@…

Keywords: leopard added
Summary: expect fails to buildexpect fails to build on Leopard

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

Cc: markd@… removed
Owner: changed from macports-tickets@… to markd@…

Assigning to maintainer.

comment:3 Changed 16 years ago by markd@…

Cc: liontooth@… markd@… added

Tcl 8.5.0 seems to have broken expect. I could install it fine until I upgraded Tcl. Not sure what the solution is right now.

comment:4 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… bretthoerner@… added
Summary: expect fails to build on Leopardexpect fails to build with tcl 8.5

Has duplicate #14771.

I experience the same error on Tiger.

FYI: Mac OS X already includes expect in /usr/bin/expect (though at least on Tiger it's the older version 5.42.0).

comment:5 Changed 16 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Cc: max@… added

comment:6 Changed 16 years ago by JeNeSuisPasDave (Dave Hein)

Cc: dhein@… added

Cc Me!

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

Cc: liontooth@… markd@… removed
Description: modified (diff)
Port: expect added

comment:8 Changed 15 years ago by markd@…

I found a patch for Tcl 8.5 and applied it in revision 4 of expect. Please try selfupdate and try again.

comment:9 Changed 15 years ago by markd@…

Resolution: fixed
Status: newclosed

Tcl patch confirmed to work. Closing.

comment:10 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

comment:11 Changed 11 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

Note: See TracTickets for help on using tickets.