Subject: tcl-expect and Mac OS X and ld: Undefined symbols
To: None <>
From: Jeremy C. Reed <>
List: tech-pkg
Date: 11/29/2004 16:28:22
The Mac OS X uname -a says:
Darwin belgium.local 7.6.0 Darwin Kernel Version 7.6.0: Sun Oct 10
12:05:27 PDT 2004; root:xnu/xnu-517.9.4.obj~1/RELEASE_PPC  Power Macintosh

Buidling lang/tcl-expect fails with:

rm -f libexpect542.dylib
libtool  gcc -pipe --mode=link -rpath /usr/pkg/lib -o libexpect542.dylib
exp_command.lo expect.lo pty_termios.lo exp_inter.lo exp_regexp.lo
exp_tty.lo exp_log.lo exp_main_sub.lo exp_pty.lo exp_trap.lo
exp_console.lo exp_strf.lo exp_glob.lo exp_win.lo exp_clib.lo
exp_closetcl.lo exp_memmove.lo exp_tty_comm.lo exp_select.lo exp_event.lo
exp_chan.lo Dbg.lo  -L/opt/pkgsrc/lang/tcl/work.belgium/tcl8.4.8/unix
-ltcl84   -lc -version-info 1:0
*** Warning: inferring the mode of operation is deprecated.
*** Future versions of Libtool will require -mode=MODE be specified.
libtool: link: warning: `-version-info' is ignored for programs
gcc -pipe --mode=link -o libexpect542.dylib .libs/exp_command.o
.libs/expect.o .libs/pty_termios.o .libs/exp_inter.o .libs/exp_regexp.o
.libs/exp_tty.o .libs/exp_log.o .libs/exp_main_sub.o .libs/exp_pty.o
.libs/exp_trap.o .libs/exp_console.o .libs/exp_strf.o .libs/exp_glob.o
.libs/exp_win.o .libs/exp_clib.o .libs/exp_closetcl.o .libs/exp_memmove.o
.libs/exp_tty_comm.o .libs/exp_select.o .libs/exp_event.o .libs/exp_chan.o
/opt/pkgsrc/lang/tcl-expect/work.belgium/.buildlink/lib/libtcl84.dylib -lc
ld: Undefined symbols:
*** Error code 1

I have tcl-8.4.8 installed.

Any ideas would be appreciated. I'll be researching this later too, but
wanted to post a note now about it.

 Jeremy C. Reed

 	  	 	 BSD News, BSD tutorials, BSD links