Subject: Re: problem with lang/tcl-expect?
To: Ronald van der Pol <Ronald.vanderPol@rvdp.org>
From: Adam Ciarcinski <adam@albedo.art.pl>
List: tech-pkg
Date: 07/19/2005 14:55:31
> 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

The problem is that something puts "-Wl,-rpath," instead of "-Wl,-rpath".
A buildlink/wrapper script? Can someone, please, take a look?
Thanks,
Adam