Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Mar 2003 17:05:59 -0500 (EST)
From:      Greg Prosser <gregp@noc.tht.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/50058: lang/expect port fails to build; tclConfig.sh wrong 
Message-ID:  <20030316220559.98C2E562B@thud.office.tht.net>

next in thread | raw e-mail | index | archive | help

>Number:         50058
>Category:       ports
>Synopsis:       lang/expect port fails to build; tclConfig.sh wrong
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 16 14:10:10 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Greg Prosser
>Release:        FreeBSD 4.8-PRERELEASE i386
>Organization:
>Environment:
System: FreeBSD thud.office.tht.net 4.8-PRERELEASE FreeBSD 4.8-PRERELEASE #4: Thu Feb 20 19:48:22 EST 2003 gregp@thud.office.tht.net:/usr/obj/usr/src/sys/THUD i386


	
>Description:

When executing 'make WITHOUT_X11=YES' in /usr/ports/lang/expect, I receive this error:

[gregp@thud] /usr/ports/lang/expect# make
===>  Building for expect-5.38.0_1
rm -f libexpect538.so.1
ld -shared -x -o libexpect538.so.1 shared/exp_command.o shared/expect.o shared/pty_termios.o  shared/exp_inter.o shared/exp_regexp.o shared/exp_tty.o  shared/exp_log.o shared/exp_main_sub.o shared/exp_pty.o  shared/exp_trap.o  shared/exp_console.o shared/exp_strf.o shared/exp_glob.o  shared/exp_win.o shared/exp_clib.o  shared/exp_closetcl.o shared/exp_memmove.o shared/exp_tty_comm.o  shared/exp_select.o shared/exp_event.o  shared/exp_chan.o shared/Dbg.o -Wl,-rpath,/usr/local/lib -L/usr/local/lib -ltcl83   -lm -lutil -lc
/usr/libexec/elf/ld: unrecognized option '-Wl,-rpath,/usr/local/lib'
/usr/libexec/elf/ld: use the --help option for usage information
*** Error code 1

Stop in /usr/ports/lang/expect/work/expect-5.38.
*** Error code 1

Stop in /usr/ports/lang/expect.
[gregp@thud] /usr/ports/lang/expect# 

I am told this results because expect's build is trying to use ld with the flags it gets from tclConfig.sh, while TCL's build tree expects to pass those to gcc.  Those are gcc options, and not ld options, and hence the breakage.

	
>How-To-Repeat:

Try to install/build lang/expect port.

	
>Fix:

I have gotten expect to build, by editing the variable TCL_LD_SEARCH_FLAGS in /usr/local/lib/tcl8.3/tclConfig.sh as follows:

previous:
TCL_LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
corrected:
TCL_LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'

After doing so, the port builds without issue.
	


>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030316220559.98C2E562B>