Subject: problem with lang/tcl-expect?
To: None <tech-pkg@NetBSD.org>
From: Ronald van der Pol <Ronald.vanderPol@rvdp.org>
List: tech-pkg
Date: 07/19/2005 09:33:20
lang/tcl-expect fails to link on NetBSD 3.99.6/i386:

[...]
ranlib libexpect543.a
libtool  --mode=link cc -pipe -O2 -I/usr/pkg/include -I/usr/include -O2
-I/usr/include -DDFLT_STTY="\"sane\"" -L/usr/lib -Wl,-R/usr/lib
-Wl,-R/usr/pkg/lib -o expect exp_main_exp.o libexpect543.a -L/usr/pkg/lib
-ltcl84 -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib  
-lpthread -lm -lutil -Wl,-rpath,
cc -pipe -O2 -I/usr/pkgsrc/lang/tcl-expect/work/.buildlink/include -O2
-DDFLT_STTY=\"sane\" -Wl,-R/usr/pkg/lib -o expect exp_main_exp.o -Wl,-rpath 
libexpect543.a -L/usr/pkgsrc/lang/tcl-expect/work/.buildlink/lib
/usr/pkgsrc/lang/tcl-expect/work/.buildlink/lib/libtcl84.so -lpthread -lm
-lutil -Wl,--rpath -Wl,/usr/pkgsrc/lang/tcl-expect/work/.buildlink/lib
-Wl,--rpath -Wl,/usr/pkgsrc/lang/tcl-expect/work/.buildlink/lib
exp_main_exp.o(.text+0x39): In function `main':
: undefined reference to `Expect_Init'
exp_main_exp.o(.text+0x4a): In function `main':
: undefined reference to `exp_parse_argv'
exp_main_exp.o(.text+0x50): In function `main':
: undefined reference to `exp_interactive'
exp_main_exp.o(.text+0x5c): In function `main':
: undefined reference to `exp_cmdfile'
exp_main_exp.o(.text+0x65): In function `main':
: undefined reference to `exp_cmdfilename'
exp_main_exp.o(.text+0x96): In function `main':
: undefined reference to `exp_interpret_cmdfilename'
exp_main_exp.o(.text+0xaa): In function `main':
: undefined reference to `exp_interpret_cmdfile'
exp_main_exp.o(.text+0xb7): In function `main':
: undefined reference to `exp_interpreter'
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/lang/tcl-expect/work/expect-5.43
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/lang/tcl-expect
===> 
===> There was an error during the ``build'' phase.
===> Please investigate the following for more information:
===>      * log of the build
===>      * /usr/pkgsrc/lang/tcl-expect/work/.work.log
===> 
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/lang/tcl-expect


===========================================================================

bones# ls -l work/.buildlink/lib/
total 1
lrwxr-xr-x  1 root  wheel   23 Jul 19 08:56 libtcl84.a -> /usr/pkg/lib/libtcl84.a
-rw-r--r--  1 root  wheel  878 Jul 19 08:56 libtcl84.la
lrwxr-xr-x  1 root  wheel   24 Jul 19 08:56 libtcl84.so -> /usr/pkg/lib/libtcl84.so
lrwxr-xr-x  1 root  wheel   26 Jul 19 08:56 libtcl84.so.1 -> /usr/pkg/lib/libtcl84.so.1
lrwxr-xr-x  1 root  wheel   30 Jul 19 08:56 libtcl84.so.1.0.0 -> /usr/pkg/lib/libtcl84.so.1.0.0
lrwxr-xr-x  1 root  wheel   27 Jul 19 08:56 libtclstub84.a -> /usr/pkg/lib/libtclstub84.a
bones#

	rvdp