Red Hat Bugzilla – Bug 113385
[icc] `make test` for expect should test local libraries
Last modified: 2007-11-30 17:07:00 EST
Description of problem:
Trying to build tcltk from source rpm by Intel compiler Iâve got such an
error during `make test` in expect directory:
8.3.5/tcl8.3.5/library ; \
export TCL_LIBRARY ; \
root/usr/lib:$LD_LIBRARY_PATH ./expect ./fixline1 /usr/bin
< ./example/timed-run > timed-run
./expect: relocation error: ./expect: undefined symbol:
make: *** [timed-run] Error 127
make: Leaving directory
The issue is in LD_LIBRARY_PATH declaration: if previous version of
tcltk is already installed, libraries required for expect will be taken
from /usr/lib during run-time link instead freshly built ones. This is an
mistake especially if I try to build expect by another compiler. Directory
order in LD_LIBRARY_PATH must be changed to:
Iâd rather remove /usr/lib from LD_LIBRARY_PATH because system
libraries are usually found by linker through different mechanism.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Get Intel compiler
2. Try to build expect from tcltk package by Intel compiler
run-time error issued by run-time linker
smoothly passed `make test`
Any better with tcl-8.4.5 in Fedora Core devel (rawhide):
it looks so to me.
I didn't catch your point, but I tried tcl-8.4.5 from Fedora Core devel and
it passed. Probably it is because tcltk package in EL3.0 has not only
tcl but tclx, expect and other components and I've got an error in expect
subdirectory and tclx, while there are no such in standalone tcl-8.4.5
from Fedora. Could you point where can I get latest full tcltk to recheck ?
Sorry, the above comment was intended for bug 113382.
I guess you still see this with the expect package in FC devel?
You may also want to test the separate tclx package that has
been added very recently.
(tcltk has been split up into separate src packages after FC1.)
I couldn't start any expect tests from expect-5.39.0-96 because I have
tcl-8.3 installed and tests expect tcl-8.4:
Expect_Init failed: version conflict for package "Tcl": have 8.3, need 8.4
But I suppose expect-5.39 won't have the described bug because it is
now separated from tcl and so do not have local tcl library.
Good point: so closing this now then.
[Btw I don't think expect requires tcl/tk 8.4, it should build
fine with tcl/tk 8.3 too as far as I know.]