Sun linker is invoked incorrectly in Tcl 8.1's tclConfig.sh
Closed / Fixed218141ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:53:38
OriginalBugID: 2083 Bug
Version: 8.1
SubmitDate: '1999-05-17'
LastModified: '1999-12-03'
Severity: MED
Status: Closed
Submitter: pat
ChangedBy: hobbs
OS: Solaris
OSVersion: Sparc Solaris 5.6
Machine: Other
FixedDate: '2000-10-25'
ClosedDate: '1999-12-03'
Name:
mo
ReproducibleScript:
I tried to compile Tcl Blend with Tcl 8.1 but I got an error from
the linker. The problem is that the configure script places gnu
specific linker info into the tclConfig.sh file. When I compiled
Tcl 8.1 I used these options, --enable-gcc --enable-threads
--enable-symbols --enable-shared.
ObservedBehavior:
gcc -pipe -c -g -D_REENTRANT -DTCL_MEM_DEBUG -I.
-I/home/grad03/dejong/tcl/tcljava/unix/../src/native
-I/tmp/mo/tcl8.1/generic -I/soft/java/JDK-1.1.6/include
-I/soft/java/JDK-1.1.6/include/solaris -fPIC
/home/grad03/dejong/tcl/tcljava/unix/../unix/unixNotifier.c
/usr/ccs/bin/ld -G -z text -o libtclblend.so javaCmd.o javaIdle.o
javaInterp.o javaObj.o javaList.o javaNotifier.o javaTimer.o javaUtil.o
tclResult.o unixNotifier.o
-Wl,-R,/soft/java/JDK-1.1.6/lib/sparc/native_threads:/tmp/mo/tcl8.1/unix
-L/soft/java/JDK-1.1.6/lib/sparc/native_threads -lthread -ljava
-L/tmp/mo/tcl8.1/unix -ltcl8.1g -ldl -lsocket -lnsl -lpthread -lm
/usr/ccs/bin/ld: illegal option -- W
usage: ld [-abd:e:f:h:il:mo:rstu:z:B:D:F:GI:L:M:N:Q:R:S:VY:] file(s)
Here is the incorrect output from the generated tcoConfig.sh file.
TCL_LD_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
DesiredBehavior:
The output for the sun linker should be link this:
TCL_LD_SEARCH_FLAGS='-R,${LIB_RUNTIME_DIR}' (ie. remove the -W,)
This is a standard an accepted limitation of tclConfig.sh.
It expects that you build extensions in the same way you
built the Tcl that generated the .sh.
-- 12/03/1999 hobbs
welch Closed ticket [218141ffff].
[History diff]2000-10-26 08:15:55
dgp Ticket [218141ffff]: 3 changes
[History diff]2001-04-05 06:54:28
Log in (anonymous is fine) to add a comment.